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}"