sqfoo commited on
Commit
ff52e69
·
verified ·
1 Parent(s): 9677b12

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -1
agent.py CHANGED
@@ -204,7 +204,8 @@ class BasicAgent:
204
  llm=self.model,
205
  agent="zero-shot-react-description", # ReAct agent type
206
  verbose=True,
207
- system_prompt=self.prompt
 
208
  )
209
  print("BasicAgent initialized.")
210
 
 
204
  llm=self.model,
205
  agent="zero-shot-react-description", # ReAct agent type
206
  verbose=True,
207
+ system_prompt=self.prompt,
208
+ handle_parsing_errors="Check your output and make sure it conforms, use the Action/Action Input syntax"
209
  )
210
  print("BasicAgent initialized.")
211