ageraustine commited on
Commit
bacecae
·
verified ·
1 Parent(s): c522da9

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -2
agent.py CHANGED
@@ -4,7 +4,6 @@ from langchain_openai import OpenAI
4
  from langchain_community.tools import DuckDuckGoSearchResults
5
  from langchain.tools import tool
6
 
7
-
8
  class ReActAgent:
9
  """
10
  A LangChain agent class with conversation history for contextual processing.
@@ -14,7 +13,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
 
 
4
  from langchain_community.tools import DuckDuckGoSearchResults
5
  from langchain.tools import tool
6
 
 
7
  class ReActAgent:
8
  """
9
  A LangChain agent class with conversation history for contextual processing.
 
13
  """
14
  Initializes the agent with default tools, OpenAI LLM, and an empty history.
15
  """
16
+ search = DuckDuckGoSearchResults()
17
+ self.tools = [search]
18
  self.prompt_template = '''
19
  Answer the following questions as best you can, considering the conversation history:
20