AI-Agentic / src /tools /web_search_tool.py
efeperro's picture
Update src/tools/web_search_tool.py
2d5a5ed verified
raw
history blame contribute delete
492 Bytes
# tools/web_search_tool.py
from agents import WebSearchTool
from openai import OpenAI
#from agents import SearchTool
def get_web_search_tool():
"""
Retorna una instancia del WebSearchTool que permite al agente buscar en la web.
"""
return WebSearchTool()
# def get_search_tool(client):
# search_tool = SearchTool(
# client=client,
# name="web_search",
# description="Useful for up-to-date web lookups"
# )
# return search_tool