Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,9 @@ search_tool = DuckDuckGoSearchTool(max_results=5)
|
|
| 11 |
|
| 12 |
@tool
|
| 13 |
def search_web(query:str)-> str:
|
| 14 |
-
"""A tool that runs a DuckDuckGo search and returns a formatted result.
|
| 15 |
Args:
|
| 16 |
-
query:
|
| 17 |
"""
|
| 18 |
try:
|
| 19 |
results = search_tool(query)
|
|
@@ -59,7 +59,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 59 |
|
| 60 |
agent = CodeAgent(
|
| 61 |
model=model,
|
| 62 |
-
tools=[final_answer, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
|
| 63 |
max_steps=6,
|
| 64 |
verbosity_level=1,
|
| 65 |
grammar=None,
|
|
|
|
| 11 |
|
| 12 |
@tool
|
| 13 |
def search_web(query:str)-> str:
|
| 14 |
+
"""A tool that runs a DuckDuckGo search and returns a formatted result.
|
| 15 |
Args:
|
| 16 |
+
query: A string representing the query to search for.
|
| 17 |
"""
|
| 18 |
try:
|
| 19 |
results = search_tool(query)
|
|
|
|
| 59 |
|
| 60 |
agent = CodeAgent(
|
| 61 |
model=model,
|
| 62 |
+
tools=[final_answer, get_current_time_in_timezone, search_tool], ## add your tools here (don't remove final answer)
|
| 63 |
max_steps=6,
|
| 64 |
verbosity_level=1,
|
| 65 |
grammar=None,
|