Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -38,7 +38,7 @@ def search_arxiv(query: str) -> str:
|
|
| 38 |
])
|
| 39 |
return {"arxiv_results": formatted_search_docs}
|
| 40 |
|
| 41 |
-
|
| 42 |
name = "visit_webpage"
|
| 43 |
description = "Visits a webpage at the given url and reads its content as a markdown string. Use this to browse webpages."
|
| 44 |
inputs = {'url': {'type': 'string', 'description': 'The url of the webpage to visit.'}}
|
|
|
|
| 38 |
])
|
| 39 |
return {"arxiv_results": formatted_search_docs}
|
| 40 |
|
| 41 |
+
class VisitWebpageTool(Tool):
|
| 42 |
name = "visit_webpage"
|
| 43 |
description = "Visits a webpage at the given url and reads its content as a markdown string. Use this to browse webpages."
|
| 44 |
inputs = {'url': {'type': 'string', 'description': 'The url of the webpage to visit.'}}
|