Scott Cogan
commited on
Commit
·
5125078
1
Parent(s):
a3b2e01
debug
Browse files
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
|
| 211 |
self.app = self.workflow.compile()
|
| 212 |
|
| 213 |
-
# Set recursion limit
|
| 214 |
-
|
| 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 |
|