Scott Cogan commited on
Commit
531964a
·
1 Parent(s): ed10014
Files changed (2) hide show
  1. app.py +4 -1
  2. requirements.txt +1 -1
app.py CHANGED
@@ -210,9 +210,12 @@ class BasicAgent:
210
  # Set entry point
211
  self.workflow.set_entry_point("agent")
212
 
213
- # Compile the graph
214
  self.app = self.workflow.compile()
215
 
 
 
 
216
  logger.info("BasicAgent initialized.")
217
 
218
  @retry(stop=stop_after_attempt(3), wait=wait_exponential(multiplier=1, min=4, max=60))
 
210
  # Set entry point
211
  self.workflow.set_entry_point("agent")
212
 
213
+ # Compile the graph with a higher recursion limit
214
  self.app = self.workflow.compile()
215
 
216
+ # Set recursion limit after compilation
217
+ self.app.config["recursion_limit"] = 50
218
+
219
  logger.info("BasicAgent initialized.")
220
 
221
  @retry(stop=stop_after_attempt(3), wait=wait_exponential(multiplier=1, min=4, max=60))
requirements.txt CHANGED
@@ -3,7 +3,7 @@ langchain-core>=0.3,<0.4
3
  langchain-community>=0.3,<0.4
4
  langchain-experimental>=0.3,<0.4
5
  langchain-google-genai>=2,<3
6
- langgraph==0.1.0
7
  gradio>=4.44.1
8
  requests
9
  openpyxl
 
3
  langchain-community>=0.3,<0.4
4
  langchain-experimental>=0.3,<0.4
5
  langchain-google-genai>=2,<3
6
+ langgraph==0.2.20
7
  gradio>=4.44.1
8
  requests
9
  openpyxl