Spaces:
Sleeping
Sleeping
Download web_search_tool.py from Tahasaif3/agentforge: direct link, hf CLI and curl.
- Browser
- Download file 274 Bytes
-
https://huggingface.co/spaces/Tahasaif3/agentforge/resolve/main/web_search_tool.py
- Command line
-
hf download hf://spaces/Tahasaif3/agentforge/web_search_tool.py
-
curl -L -o web_search_tool.py https://huggingface.co/spaces/Tahasaif3/agentforge/resolve/main/web_search_tool.py
274 Bytes
| from agents import function_tool | |
| from confg import tavily_client | |
| def web_search(query: str): | |
| """ | |
| Perform a deep web search using Tavily and return structured results. | |
| """ | |
| response =tavily_client.search(query) | |
| return f"Response {response}" |