Spaces:
Sleeping
Sleeping
Daksh Chaudhary commited on
Updated WebSearchTool.py
Browse filesCommented Tavily_API_Key out from code.
agent_tools/WebSearchTool.py
CHANGED
|
@@ -6,6 +6,6 @@ from llama_index.tools.tavily_research import TavilyToolSpec
|
|
| 6 |
def web_search_tools()->List[FunctionTool]:
|
| 7 |
"Tool to search the web with Tavily (search + scraping)"
|
| 8 |
|
| 9 |
-
os.environ["TAVILY_API_KEY"] = ""
|
| 10 |
tavily_spec = TavilyToolSpec(api_key=os.getenv("TAVILY_API_KEY"))
|
| 11 |
return tavily_spec.to_tool_list()
|
|
|
|
| 6 |
def web_search_tools()->List[FunctionTool]:
|
| 7 |
"Tool to search the web with Tavily (search + scraping)"
|
| 8 |
|
| 9 |
+
#os.environ["TAVILY_API_KEY"] = ""
|
| 10 |
tavily_spec = TavilyToolSpec(api_key=os.getenv("TAVILY_API_KEY"))
|
| 11 |
return tavily_spec.to_tool_list()
|