Download tools.py from aynot/agents_course_Final_Assignment_Template: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/spaces/aynot/agents_course_Final_Assignment_Template/resolve/main/tools.py
- Command line
-
hf download hf://spaces/aynot/agents_course_Final_Assignment_Template/tools.py
-
curl -L -o tools.py https://huggingface.co/spaces/aynot/agents_course_Final_Assignment_Template/resolve/main/tools.py
299 Bytes
| from smolagents import DuckDuckGoSearchTool, VisitWebpageTool, GoogleSearchTool, WikipediaSearchTool | |
| def initialize_all_available_tools(): | |
| return [ | |
| DuckDuckGoSearchTool(), | |
| # GoogleSearchTool(provider="serper"), | |
| VisitWebpageTool(), | |
| WikipediaSearchTool() | |
| ] | |