Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,18 +18,9 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 18 |
"""
|
| 19 |
return "What magic will you build ?"
|
| 20 |
|
| 21 |
-
# @tool
|
| 22 |
-
# def web_search(query:str)-> str:
|
| 23 |
-
# """A tool that performs web searches.
|
| 24 |
-
# Args:
|
| 25 |
-
# query: search query
|
| 26 |
-
# """
|
| 27 |
-
# search = DuckDuckGoSearchTool()
|
| 28 |
-
# result = search.forward(query)
|
| 29 |
-
# return result
|
| 30 |
|
| 31 |
web_search = DuckDuckGoSearchTool()
|
| 32 |
-
|
| 33 |
|
| 34 |
@tool
|
| 35 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
@@ -68,7 +59,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 68 |
|
| 69 |
agent = CodeAgent(
|
| 70 |
model=model,
|
| 71 |
-
tools=[final_answer, web_search], ## add your tools here (don't remove final answer)
|
| 72 |
max_steps=6,
|
| 73 |
verbosity_level=1,
|
| 74 |
grammar=None,
|
|
|
|
| 18 |
"""
|
| 19 |
return "What magic will you build ?"
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
web_search = DuckDuckGoSearchTool()
|
| 23 |
+
visit_webpage = VisitWebpageTool()
|
| 24 |
|
| 25 |
@tool
|
| 26 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 59 |
|
| 60 |
agent = CodeAgent(
|
| 61 |
model=model,
|
| 62 |
+
tools=[final_answer, web_search, visit_webpage], ## add your tools here (don't remove final answer)
|
| 63 |
max_steps=6,
|
| 64 |
verbosity_level=1,
|
| 65 |
grammar=None,
|