File size: 274 Bytes
fd1a435
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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}"