Repository navigation
feat(showcase/pydantic-ai): bring to feature parity with langgraph-python - #4267
AlemTuzlak wants to merge 22 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
Follow-up pass: closed-gap demosAppended 6 commits to this branch (head
Backend architecture change
Dependency additions
Remaining PARITY_NOTES skips (genuinely framework-limited)
Partial-parity notes
Verification
|
Ports prebuilt-sidebar, prebuilt-popup, chat-slots, chat-customization-css, headless-simple from langgraph-python. All wire to the existing single-agent backend via agent-name registration in the copilotkit route.
Wires the newly-ported demos into manifest.yaml (features + demos lists with matching highlight paths) and adds PARITY_NOTES.md explaining which demos were skipped from the langgraph-python baseline (beautiful-chat, headless-complete, mcp-apps, reasoning variants, interrupt-based demos, A2UI demos, open-gen-ui variants) and why.
BLITZ B1'' update — 6 post-#4271 demos portedFresh commits on top of this branch add the six new demos introduced in reference by PR #4271 (langgraph-python), adapted to PydanticAI:
Verification
Files touched (pydantic-ai only)
Seven commits on the branch, |
|
Superseded by #4280 (omnibus parity PR) |
…demos (#4280) ## Summary Consolidates 13 showcase parity PRs into a single omnibus PR. Each integration framework has been brought to near-parity with the LangGraph Python reference (~37 demos each). ### Frameworks added/expanded (8 -> 30+ demos each): - ag2, strands, claude-sdk-typescript, spring-ai, agno, langroid - crewai-crews, mastra, llamaindex, claude-sdk-python, pydantic-ai - langgraph-fastapi, langgraph-typescript (new packages, 29 demos each) - ms-agent-python, ms-agent-dotnet (new packages, 38 demos each) ### Additional fixes included: - Lefthook `sync-lockfile` glob scoped to pnpm workspace members only - Python test regression fix (langroid `create_agent` kwargs) - Missing feature IDs added to feature-registry.json (hitl-in-chat-booking, hitl) - Manifest highlight path fixes (langgraph-fastapi, langgraph-python, langgraph-typescript, ms-agent-dotnet) - Fixture tool surface validator updated for wildcard renderers (useDefaultRenderTool) - Constraints allowlist updated for new feature IDs - Starters regenerated for all 17 frameworks - fail-baseline.json ratcheted (112 -> 127) for new framework pin FAILs ### Supersedes PRs: #4254, #4255, #4257, #4260, #4261, #4262, #4263, #4264, #4265, #4267, #4268, #4270, #4273 All PRs by @AlemTuzlak — runtime fixes from #4271 (already merged) propagated to all frameworks. ## Test plan - [ ] CI green on this PR - [ ] `pnpm dev` spot-check on 2-3 frameworks (byoc-hashbrown, voice, auth demos) - [ ] Dashboard cells tab shows new framework rows populated - [ ] Feature registry validation passes - [ ] Starters generate cleanly (`npx tsx showcase/scripts/generate-starters.ts`) - [ ] Registry generates cleanly (`npx tsx showcase/scripts/generate-registry.ts`) - [ ] Demo content bundles cleanly (`npx tsx showcase/scripts/bundle-demo-content.ts`)
…demos (CopilotKit#4280) ## Summary Consolidates 13 showcase parity PRs into a single omnibus PR. Each integration framework has been brought to near-parity with the LangGraph Python reference (~37 demos each). ### Frameworks added/expanded (8 -> 30+ demos each): - ag2, strands, claude-sdk-typescript, spring-ai, agno, langroid - crewai-crews, mastra, llamaindex, claude-sdk-python, pydantic-ai - langgraph-fastapi, langgraph-typescript (new packages, 29 demos each) - ms-agent-python, ms-agent-dotnet (new packages, 38 demos each) ### Additional fixes included: - Lefthook `sync-lockfile` glob scoped to pnpm workspace members only - Python test regression fix (langroid `create_agent` kwargs) - Missing feature IDs added to feature-registry.json (hitl-in-chat-booking, hitl) - Manifest highlight path fixes (langgraph-fastapi, langgraph-python, langgraph-typescript, ms-agent-dotnet) - Fixture tool surface validator updated for wildcard renderers (useDefaultRenderTool) - Constraints allowlist updated for new feature IDs - Starters regenerated for all 17 frameworks - fail-baseline.json ratcheted (112 -> 127) for new framework pin FAILs ### Supersedes PRs: CopilotKit#4254, CopilotKit#4255, CopilotKit#4257, CopilotKit#4260, CopilotKit#4261, CopilotKit#4262, CopilotKit#4263, CopilotKit#4264, CopilotKit#4265, CopilotKit#4267, CopilotKit#4268, CopilotKit#4270, CopilotKit#4273 All PRs by @AlemTuzlak — runtime fixes from CopilotKit#4271 (already merged) propagated to all frameworks. ## Test plan - [ ] CI green on this PR - [ ] `pnpm dev` spot-check on 2-3 frameworks (byoc-hashbrown, voice, auth demos) - [ ] Dashboard cells tab shows new framework rows populated - [ ] Feature registry validation passes - [ ] Starters generate cleanly (`npx tsx showcase/scripts/generate-starters.ts`) - [ ] Registry generates cleanly (`npx tsx showcase/scripts/generate-registry.ts`) - [ ] Demo content bundles cleanly (`npx tsx showcase/scripts/bundle-demo-content.ts`)
Summary
Brings
showcase/packages/pydantic-ai/closer to feature parity withshowcase/packages/langgraph-python/by porting the portable,PydanticAI-compatible slice of the langgraph-python demo catalogue: chat-UI
variants, frontend-tool demos, in-app HITL, readonly-state-agent-context,
and the default + custom catch-all tool-rendering demos. All new demos
wire into the existing single-agent PydanticAI backend via agent-name
registration in
src/app/api/copilotkit/route.ts, so no new Python agentcode is required.
Lands alongside parallel PRs for
claude-sdk-pythonandclaude-sdk-typescript.Ported demos
prebuilt-sidebar— Docked sidebar chat via<CopilotSidebar />.prebuilt-popup— Floating popup chat via<CopilotPopup />.chat-slots— CustomwelcomeScreen,input.disclaimer, andmessageView.assistantMessageslots.chat-customization-css— Scoped re-theme viaCopilotKitCSSProperties.headless-simple— Minimal custom chat surface built onuseAgentanduseComponent(show_card tool rendered viauseRenderToolCall).frontend-tools—change_backgroundviauseFrontendTool.frontend-tools-async—query_noteswith an async handler over a localmock notes DB; renders via
NotesCard.hitl-in-app— Support-console-style approval flow. The agent invokesrequest_user_approvalviauseFrontendToolwith an async handler thatpops an app-level modal; the user's decision resolves the pending tool
Promise.
readonly-state-agent-context— Frontend-provided read-only context(name, timezone, recent activity) via
useAgentContext.tool-rendering-default-catchall— Out-of-the-box default tool-callrendering via
useDefaultRenderTool().tool-rendering-custom-catchall— Single branded wildcard renderer viauseDefaultRenderTool({ render }).cli-start— Manifest-only demo entry (copy-paste init command).Skipped demos
Documented in
showcase/packages/pydantic-ai/PARITY_NOTES.md:beautiful-chat— Large flagship demo with A2UI catalogs, multi-schematools, and StateStreamingMiddleware; out of scope for this initial pass.
headless-complete— Depends on MCP Apps routing.mcp-apps— Requires MCP Apps middleware; no documented path throughPydanticAI's
agent.to_ag_ui()yet.agentic-chat-reasoning,reasoning-default-render,tool-rendering-reasoning-chain— Depend ondeepagentsreasoningtoken emission; PydanticAI does not stream reasoning through AG-UI yet.
gen-ui-interrupt,interrupt-headless— Built on LangGraph'sinterrupt()primitive; PydanticAI has no equivalent.declarative-gen-ui,a2ui-fixed-schema,open-gen-ui,open-gen-ui-advanced— Need dedicated per-demo A2UI / OGUI agentwiring; the shared
generate_a2uitool on the base agent exercises thepath partially but faithful per-demo schemas were out of scope.
See
PARITY_NOTES.mdfor details and follow-up candidates.Test plan
npx tsc --noEmit— all newly-added pages / components / teststypecheck clean (4 pre-existing errors in shared-state and subagents
pages are unrelated to this PR).
no new Python modules were added. All new demos reuse the existing
src/agents/agent.py.qa/for each new demo.