Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ def MyCustomSearch(search_term:str, max_results:int) -> str:
|
|
| 49 |
except Exceiption as e:
|
| 50 |
return f"Error search with duckduck go search '{search_term}' : {str(e)}"
|
| 51 |
|
| 52 |
-
|
| 53 |
|
| 54 |
final_answer = FinalAnswerTool()
|
| 55 |
|
|
@@ -72,7 +72,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 72 |
|
| 73 |
agent = CodeAgent(
|
| 74 |
model=model,
|
| 75 |
-
tools=[final_answer, get_current_time_in_timezone,
|
| 76 |
max_steps=6,
|
| 77 |
verbosity_level=1,
|
| 78 |
grammar=None,
|
|
|
|
| 49 |
except Exceiption as e:
|
| 50 |
return f"Error search with duckduck go search '{search_term}' : {str(e)}"
|
| 51 |
|
| 52 |
+
web_search = DuckDuckGoSearchTool()
|
| 53 |
|
| 54 |
final_answer = FinalAnswerTool()
|
| 55 |
|
|
|
|
| 72 |
|
| 73 |
agent = CodeAgent(
|
| 74 |
model=model,
|
| 75 |
+
tools=[final_answer, get_current_time_in_timezone, web_search], ## add your tools here (don't remove final answer)
|
| 76 |
max_steps=6,
|
| 77 |
verbosity_level=1,
|
| 78 |
grammar=None,
|