Spaces:
Runtime error
Runtime error
Debugging the tool web_query
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ def web_query(query:str)-> str: #it's import to specify the return type
|
|
| 15 |
Args:
|
| 16 |
query: User query to search the web
|
| 17 |
"""
|
|
|
|
| 18 |
query_result=DuckDuckGoSearchTool.forward(query)
|
| 19 |
return query_result
|
| 20 |
|
|
@@ -55,7 +56,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 55 |
|
| 56 |
agent = CodeAgent(
|
| 57 |
model=model,
|
| 58 |
-
tools=[final_answer], ## add your tools here (don't remove final answer)
|
| 59 |
max_steps=6,
|
| 60 |
verbosity_level=1,
|
| 61 |
grammar=None,
|
|
|
|
| 15 |
Args:
|
| 16 |
query: User query to search the web
|
| 17 |
"""
|
| 18 |
+
print("RK test inside function")
|
| 19 |
query_result=DuckDuckGoSearchTool.forward(query)
|
| 20 |
return query_result
|
| 21 |
|
|
|
|
| 56 |
|
| 57 |
agent = CodeAgent(
|
| 58 |
model=model,
|
| 59 |
+
tools=[final_answer,web_query], ## add your tools here (don't remove final answer)
|
| 60 |
max_steps=6,
|
| 61 |
verbosity_level=1,
|
| 62 |
grammar=None,
|