naman1102 commited on
Commit
e4d192b
·
1 Parent(s): c44c00f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -52,8 +52,11 @@ class BasicAgent:
52
 
53
  def _create_workflow(self) -> Graph:
54
  """Create the agent workflow using LangGraph."""
55
- # Create the workflow with direct state schema
56
- workflow = StateGraph(AgentState)
 
 
 
57
 
58
  # Add nodes
59
  workflow.add_node("analyze", self._analyze_question)
 
52
 
53
  def _create_workflow(self) -> Graph:
54
  """Create the agent workflow using LangGraph."""
55
+ # Create the workflow with input and output types
56
+ workflow = StateGraph(
57
+ input_type=AgentState,
58
+ output_type=AgentState
59
+ )
60
 
61
  # Add nodes
62
  workflow.add_node("analyze", self._analyze_question)