Spaces:
Sleeping
Sleeping
update response formatting instructions
Browse files- basic_agent.py +2 -1
basic_agent.py
CHANGED
|
@@ -90,7 +90,7 @@ class BasicAgent:
|
|
| 90 |
agent = ToolCallingAgent(
|
| 91 |
tools=agent_tools,
|
| 92 |
model=model,
|
| 93 |
-
max_steps=
|
| 94 |
name="TaskProcessorAgent",
|
| 95 |
description="An agent designed to answer questions by searching the web, processing local files (if a path is provided in 'File Information'), and executing Python code.",
|
| 96 |
verbosity_level=2
|
|
@@ -122,6 +122,7 @@ Key Instructions:
|
|
| 122 |
* If a tool call itself returns an error: analyze the error message, try to correct the input to the tool (e.g., fix code, verify URL). Do not immediately retry the exact same call. Consider if a different tool or approach is more suitable.
|
| 123 |
5. **Formulate Your Response**:
|
| 124 |
* Provide only the final, concise answer. Do not include reasoning, apologies, or conversational filler.
|
|
|
|
| 125 |
* If, after thorough investigation (including careful analysis of direct tool outputs and appropriate error handling), you cannot determine a definitive answer, respond with 'I don't know'.
|
| 126 |
|
| 127 |
--- Start of Question & File Information ---
|
|
|
|
| 90 |
agent = ToolCallingAgent(
|
| 91 |
tools=agent_tools,
|
| 92 |
model=model,
|
| 93 |
+
max_steps=8,
|
| 94 |
name="TaskProcessorAgent",
|
| 95 |
description="An agent designed to answer questions by searching the web, processing local files (if a path is provided in 'File Information'), and executing Python code.",
|
| 96 |
verbosity_level=2
|
|
|
|
| 122 |
* If a tool call itself returns an error: analyze the error message, try to correct the input to the tool (e.g., fix code, verify URL). Do not immediately retry the exact same call. Consider if a different tool or approach is more suitable.
|
| 123 |
5. **Formulate Your Response**:
|
| 124 |
* Provide only the final, concise answer. Do not include reasoning, apologies, or conversational filler.
|
| 125 |
+
* If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
|
| 126 |
* If, after thorough investigation (including careful analysis of direct tool outputs and appropriate error handling), you cannot determine a definitive answer, respond with 'I don't know'.
|
| 127 |
|
| 128 |
--- Start of Question & File Information ---
|