bstraehle commited on
Commit
403ae8c
·
verified ·
1 Parent(s): e9d8143

Update agent_langchain.py

Browse files
Files changed (1) hide show
  1. agent_langchain.py +2 -0
agent_langchain.py CHANGED
@@ -31,6 +31,8 @@ def agent_langchain(config, prompt):
31
  llm,
32
  agent = AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,
33
  handle_parsing_errors = True,
 
 
34
  verbose = True
35
  )
36
 
 
31
  llm,
32
  agent = AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,
33
  handle_parsing_errors = True,
34
+ max_iterations = 10,
35
+ max_execution_time = 60,
36
  verbose = True
37
  )
38