Update app.py
Browse files
app.py
CHANGED
@@ -52,10 +52,8 @@ class BasicAgent:
|
|
52 |
|
53 |
def _create_workflow(self) -> Graph:
|
54 |
"""Create the agent workflow using LangGraph."""
|
55 |
-
# Create the workflow with
|
56 |
-
|
57 |
-
workflow = StateGraph(AgentState)
|
58 |
-
|
59 |
|
60 |
# Add nodes
|
61 |
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 state schema
|
56 |
+
workflow = StateGraph(state_schema=AgentState)
|
|
|
|
|
57 |
|
58 |
# Add nodes
|
59 |
workflow.add_node("analyze", self._analyze_question)
|