d19bd0f81c
Agent.to_ag_ui(), AGUIApp and the pydantic_ai.ag_ui module were removed in Pydantic AI v2. The docs installed pydantic-ai unpinned, so anyone following the quickstart got 2.22.0 and failed first at dependency resolution (starlette==0.45.3 conflicts with the >=0.46.2 the ag-ui extra needs) and then at AttributeError. - 8 doc pages under showcase/shell-docs .../integrations/pydantic-ai serve the agent from a Starlette route via AGUIAdapter.dispatch_request - StateDeps moves from pydantic_ai.ag_ui to pydantic_ai.ui - stateful snippets build StateDeps per request; dispatch_request writes the client's state into deps.state, so a shared instance leaks state between users - install commands exact-pin pydantic-ai-slim==2.22.0 and ag-ui-protocol==0.1.19 - examples/canvas/pydantic-ai and examples/showcases/pydantic-ai-todos ported and pinned, todos relocked - skills/copilotkit-integrations reference updated to the same shape showcase/integrations/pydantic-ai is deliberately untouched; it is tracked separately.