Spaces:
Runtime error
Runtime error
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -20,8 +20,8 @@ class ReActAgent:
|
|
| 20 |
"""
|
| 21 |
Initializes the agent with default tools, OpenAI LLM, and an empty history.
|
| 22 |
"""
|
| 23 |
-
|
| 24 |
-
self.tools = [DuckDuckGoSearchResults()]
|
| 25 |
self.prompt = hub.pull("hwchase17/react-chat")
|
| 26 |
self.llm = OpenAI()
|
| 27 |
agent = self.create_agent()
|
|
|
|
| 20 |
"""
|
| 21 |
Initializes the agent with default tools, OpenAI LLM, and an empty history.
|
| 22 |
"""
|
| 23 |
+
self.tools = [TavilySearchResults(max_results=15)]
|
| 24 |
+
# self.tools = [DuckDuckGoSearchResults()]
|
| 25 |
self.prompt = hub.pull("hwchase17/react-chat")
|
| 26 |
self.llm = OpenAI()
|
| 27 |
agent = self.create_agent()
|