Spaces:
Sleeping
Sleeping
Update src/tools/web_search_tool.py
Browse files
src/tools/web_search_tool.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
from agents import WebSearchTool
|
| 4 |
from openai import OpenAI
|
| 5 |
-
from agents import SearchTool
|
| 6 |
|
| 7 |
def get_web_search_tool():
|
| 8 |
"""
|
|
@@ -12,14 +12,14 @@ def get_web_search_tool():
|
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
-
def get_search_tool(client):
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
|
|
|
|
| 2 |
|
| 3 |
from agents import WebSearchTool
|
| 4 |
from openai import OpenAI
|
| 5 |
+
#from agents import SearchTool
|
| 6 |
|
| 7 |
def get_web_search_tool():
|
| 8 |
"""
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
+
# def get_search_tool(client):
|
| 16 |
|
| 17 |
+
# search_tool = SearchTool(
|
| 18 |
+
# client=client,
|
| 19 |
+
# name="web_search",
|
| 20 |
+
# description="Useful for up-to-date web lookups"
|
| 21 |
+
# )
|
| 22 |
|
| 23 |
+
# return search_tool
|
| 24 |
|
| 25 |
|