Scott Cogan commited on
Commit
fd5ac7f
·
1 Parent(s): d6b1315
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +1 -1
app.py CHANGED
@@ -194,7 +194,7 @@ class BasicAgent:
194
  - Never make up information - if you can't find it, say so''')
195
 
196
  # Create the graph
197
- self.workflow = StateGraph(AgentState)
198
 
199
  # Add nodes
200
  self.workflow.add_node("agent", self.call_model)
@@ -207,8 +207,8 @@ class BasicAgent:
207
  # Set entry point
208
  self.workflow.set_entry_point("agent")
209
 
210
- # Compile the graph with recursion limit
211
- self.app = self.workflow.compile(recursion_limit=50)
212
 
213
  logger.info("BasicAgent initialized.")
214
 
 
194
  - Never make up information - if you can't find it, say so''')
195
 
196
  # Create the graph
197
+ self.workflow = StateGraph(AgentState, config={"recursion_limit": 50})
198
 
199
  # Add nodes
200
  self.workflow.add_node("agent", self.call_model)
 
207
  # Set entry point
208
  self.workflow.set_entry_point("agent")
209
 
210
+ # Compile the graph
211
+ self.app = self.workflow.compile()
212
 
213
  logger.info("BasicAgent initialized.")
214
 
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.2.20,<0.3
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