Scott Cogan commited on
Commit
5125078
·
1 Parent(s): a3b2e01
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -207,11 +207,11 @@ class BasicAgent:
207
  # Set entry point
208
  self.workflow.set_entry_point("agent")
209
 
210
- # Compile the graph with a higher recursion limit
211
  self.app = self.workflow.compile()
212
 
213
- # Set recursion limit after compilation
214
- self.app.config["recursion_limit"] = 50
215
 
216
  logger.info("BasicAgent initialized.")
217
 
 
207
  # Set entry point
208
  self.workflow.set_entry_point("agent")
209
 
210
+ # Compile the graph
211
  self.app = self.workflow.compile()
212
 
213
+ # Set recursion limit through environment variable
214
+ os.environ["LANGRAPH_RECURSION_LIMIT"] = "50"
215
 
216
  logger.info("BasicAgent initialized.")
217