Skip to content

Commit 98c8c9b

Browse files
committed
fix: use context_schema instead of state_schema for create_deep_agent
The deepagents API uses `context_schema` parameter instead of `state_schema` from the old create_agent API.
1 parent 1cb7ac9 commit 98c8c9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/agent/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
model=ChatOpenAI(model=os.environ.get("LLM_MODEL", "gpt-5.4-2026-03-05")),
2020
tools=[query_data, *todo_tools, generate_form, *template_tools],
2121
middleware=[CopilotKitMiddleware()],
22-
state_schema=AgentState,
22+
context_schema=AgentState,
2323
skills=[str(Path(__file__).parent / "skills")],
2424
system_prompt="""
2525
You are a helpful assistant that helps users understand CopilotKit and LangGraph used together.

0 commit comments

Comments
 (0)