Summary
Upgrade the LangGraph agent backend from the current create_agent pattern to LangChain deep agents, which provide enhanced reasoning, multi-step planning, and tool-use capabilities.
Current State
- Agent is defined in
apps/agent/main.py using langchain.agents.create_agent with ChatOpenAI
- Uses
CopilotKitMiddleware for frontend state sync
- Tools: todo management, data queries, form generation, templates, visualization skills
Proposed Changes
Motivation
Deep agents offer improved reasoning and multi-step planning which would make the demo more compelling — especially for complex todo organization, multi-tool workflows, and richer generative UI responses.
Summary
Upgrade the LangGraph agent backend from the current
create_agentpattern to LangChain deep agents, which provide enhanced reasoning, multi-step planning, and tool-use capabilities.Current State
apps/agent/main.pyusinglangchain.agents.create_agentwithChatOpenAICopilotKitMiddlewarefor frontend state syncProposed Changes
langchain/langgraphpackages to versions supporting deep agentsapps/agent/main.pyto use the deep agent APIpyproject.toml, lock files)Motivation
Deep agents offer improved reasoning and multi-step planning which would make the demo more compelling — especially for complex todo organization, multi-tool workflows, and richer generative UI responses.