Spaces:
Runtime error
Runtime error
add 'search' variable in ReactAgent Class
Browse files
agent.py
CHANGED
|
@@ -14,7 +14,8 @@ class ReActAgent:
|
|
| 14 |
"""
|
| 15 |
Initializes the agent with default tools, OpenAI LLM, and an empty history.
|
| 16 |
"""
|
| 17 |
-
|
|
|
|
| 18 |
self.prompt_template = '''
|
| 19 |
Answer the following questions as best you can, considering the conversation history:
|
| 20 |
|
|
|
|
| 14 |
"""
|
| 15 |
Initializes the agent with default tools, OpenAI LLM, and an empty history.
|
| 16 |
"""
|
| 17 |
+
search = DuckDuckGoSearchResults()
|
| 18 |
+
self.tools = [search]
|
| 19 |
self.prompt_template = '''
|
| 20 |
Answer the following questions as best you can, considering the conversation history:
|
| 21 |
|