Repository navigation
feat(showcase/spring-ai): bring Spring AI showcase closer to langgraph-python parity - #4257
Closed
AlemTuzlak wants to merge 5 commits into
Closed
AlemTuzlak wants to merge 5 commits into
AlemTuzlak wants to merge 5 commits into
Conversation
…hon parity list Adds 13 additional showcase cells wired to the single Spring-AI agent: chat-customization-css, tool-rendering-default-catchall, tool-rendering-custom-catchall, frontend-tools, frontend-tools-async, hitl-in-chat, hitl-in-app, prebuilt-sidebar, prebuilt-popup, chat-slots, headless-simple, readonly-state-agent-context, and auth (with a dedicated onRequest-gated runtime route). Registers new agent names in the NextJS proxy route, updates the manifest, adds qa and e2e stubs for each page. Documents demos that require Spring-AI primitives unavailable in the ag-ui:spring-ai integration (interrupt, multi-agent orchestration, streaming structured output, per-token state deltas, MCP client, multimodal media, voice) in PARITY_NOTES.md.
AlemTuzlak
requested review from
jpr5,
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
April 24, 2026 14:18
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
Ports 13 additional demos from the langgraph-python parity manifest and cuts the skip list from 18 down to 6 primitive-level gaps. Ported this run: - open-gen-ui + open-gen-ui-advanced — dedicated /api/copilotkit-ogui runtime with openGenerativeUI flag; advanced variant adds sandbox-function bridge - voice — dedicated /api/copilotkit-voice runtime mounts TranscriptionServiceOpenAI (Whisper); sample audio button bundled - agent-config — new AgentConfigController reads forwardedProps (tone/expertise/responseLength) from the AG-UI envelope and rebuilds a per-request SpringAIAgent with a composed system prompt - a2ui-fixed-schema — new A2uiFixedSchemaController + DisplayFlightTool emit the fixed flight-card component tree plus a data model - declarative-gen-ui — dedicated runtime with injectA2UITool: false; reuses the existing generate_a2ui Spring tool - multimodal — AttachmentsConfig plumbing with sample image + PDF - mcp-apps — dedicated runtime wires the Excalidraw MCP server via mcpApps.servers - headless-complete — full useAgent + low-level render hook chat, wired to the shared /api/copilotkit route - beautiful-chat — polished brand surface over the shared Spring agent - agentic-chat-reasoning + reasoning-default-render + tool-rendering-reasoning-chain — reasoning UI patterns wired so the cells light up when the ag-ui:spring-ai adapter begins forwarding REASONING_MESSAGE_* events Adds @copilotkit/voice + openai dependencies, bundles sample.wav and sample.pdf/png demo assets, registers new agent names on the shared copilotkit route, extends the manifest with the new feature + demo entries, and ships qa + e2e stubs for every new cell. Skipped (6, each citing a specific missing primitive in PARITY_NOTES.md): gen-ui-interrupt, interrupt-headless, subagents (no LangGraph graph-control primitives in Spring AI), shared-state-streaming (no mid-stream state-delta emission), byoc-json-render + byoc-hashbrown (no streaming partial structured-output in Spring AI). cli-start is a command-only snippet, not a runnable demo.
Propagates the four applicable fixes from the upstream langgraph-python showcase (#4271) into the spring-ai parity port. - auth: invert default to authenticated-on-load, add ChatErrorBoundary that resets on auth flip, rename banner labels to Sign out / Sign in, and update the Playwright spec + QA doc to the new flow. Preserves spring-ai's own agent slug ("auth") and route wiring. - multimodal: port the LFS-pointer + magic-byte guard into sample-attachment-buttons.tsx so deployments that skipped `git lfs pull` fail loudly with an actionable error instead of rendering a broken PNG. LegacyConverterShim from upstream is langgraph-specific (fixes an @ag-ui/[email protected] converter bug) and is skipped for spring-ai, which proxies via HttpAgent. - voice: wrap TranscriptionServiceOpenAI in GuardedOpenAITranscriptionService so a missing OPENAI_API_KEY returns a typed AUTH_FAILED -> 401 instead of an opaque 503, and write the service onto the V2 runtime instance directly (bypassing the V1 wrapper's silent drop of transcriptionService). - agent-config: no change required. The upstream fix addressed a LangGraphAgent-specific bug where non-config forwardedProps keys were dropped; spring-ai uses HttpAgent (which forwards the full envelope) and AgentConfigController.java already reads tone/expertise/ responseLength directly off forwardedProps.
7 tasks
Contributor
|
Superseded by #4280 (omnibus parity PR) |
jpr5
added a commit
that referenced
this pull request
Apr 25, 2026
…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`)
zeekay
pushed a commit
to Dream-AI-4444/CopilotKit
that referenced
this pull request
Sep 11, 2026
…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`)
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Raises the Spring AI showcase package from 8 demos to 21, porting every
cell from the canonical
langgraph-pythonparity list whose behaviorfits inside Spring AI's current primitive surface (frontend hooks,
per-request tool calling, tool rendering, agent context, HTTP auth gate,
prebuilt chat shells, slot overrides, headless chat). The Java backend is
unchanged — all new demos proxy to the existing single
SpringAIAgentbean via
HttpAgentand differentiate themselves on the frontend.Demos that require Spring-AI primitives unavailable in the
ag-ui:spring-aiintegration — LangGraph-style interrupt, multi-agentorchestration, per-token state deltas, streaming structured output,
MCP client, multimodal media forwarding, voice — are documented as
skipped in
showcase/packages/spring-ai/PARITY_NOTES.md.Ported (13 new)
onRequest-gated runtime route)Already present
agentic-chat, hitl, tool-rendering, gen-ui-tool-based, gen-ui-agent,
shared-state-read-write, shared-state-streaming (stub), subagents (stub)
Skipped (see
PARITY_NOTES.md)gen-ui-interrupt, interrupt-headless, mcp-apps, subagents (full),
shared-state-streaming (full), tool-rendering-reasoning-chain,
agentic-chat-reasoning, reasoning-default-render, byoc-hashbrown,
byoc-json-render, voice, multimodal, open-gen-ui, open-gen-ui-advanced,
agent-config, a2ui-fixed-schema, headless-complete, beautiful-chat
Lands alongside parallel PRs for agno, ag2, llamaindex, and langroid.
Test plan
mvn -q -DskipTests compilepasses against the existing Javaagent (unchanged in this PR)
pnpm typecheck/ Next build passes in the showcase package(some pre-existing stub-level errors remain in shared-state-* /
subagents stubs — out of scope)
/demos/<id>against thelocal Spring AI agent
pnpm test:e2ePlaywright stubs smoke-test page loads for everynewly-added demo