agentforge / web_search_tool.py
Tahasaif3's picture
'code'
fd1a435
from agents import function_tool
from confg import tavily_client
@function_tool
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}"