ageraustine commited on
Commit
6569c29
·
verified ·
1 Parent(s): b4827ee

add 'search' variable in ReactAgent Class

Browse files
Files changed (1) hide show
  1. agent.py +2 -1
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
- self.tools = [DuckDuckGoSearchResults()]
 
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