Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -50,12 +50,12 @@ class TestAgent:
|
|
| 50 |
wikipedia_tool, # tool from langchain with extra parmaeters
|
| 51 |
#youtube_tools, # tool from MCP server
|
| 52 |
FinalAnswerTool()],
|
| 53 |
-
additional_authorized_imports=["pandas","markdownify","requests"],
|
| 54 |
model=model,
|
| 55 |
-
max_steps=4,
|
| 56 |
-
planning_interval=2,
|
| 57 |
verbosity_level=2,
|
| 58 |
-
use_structured_outputs_internally=True
|
| 59 |
)
|
| 60 |
# V3. add Guidance
|
| 61 |
prompt_for_guidance = "\n10. Provide the answer axactly as it is asked, be concise and precise\n\nNow Begin!"
|
|
|
|
| 50 |
wikipedia_tool, # tool from langchain with extra parmaeters
|
| 51 |
#youtube_tools, # tool from MCP server
|
| 52 |
FinalAnswerTool()],
|
| 53 |
+
additional_authorized_imports=["pandas","markdownify","requests"], # V2 add markdownify & requests
|
| 54 |
model=model,
|
| 55 |
+
max_steps=4, # V3 increase steps
|
| 56 |
+
planning_interval=2, # V3 add structure
|
| 57 |
verbosity_level=2,
|
| 58 |
+
use_structured_outputs_internally=True # V3. Adds structure
|
| 59 |
)
|
| 60 |
# V3. add Guidance
|
| 61 |
prompt_for_guidance = "\n10. Provide the answer axactly as it is asked, be concise and precise\n\nNow Begin!"
|