Skip to content

feat(showcase/spring-ai): bring Spring AI showcase closer to langgraph-python parity - #4257

Closed
AlemTuzlak wants to merge 5 commits into
mainfrom
feat/showcase-spring-ai-parity
Closed

AlemTuzlak wants to merge 5 commits into
mainfrom
feat/showcase-spring-ai-parity

Conversation

@AlemTuzlak

Copy link
Copy Markdown
Contributor

Summary

Raises the Spring AI showcase package from 8 demos to 21, porting every
cell from the canonical langgraph-python parity list whose behavior
fits 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 SpringAIAgent
bean via HttpAgent and differentiate themselves on the frontend.

Demos that require Spring-AI primitives unavailable in the
ag-ui:spring-ai integration — LangGraph-style interrupt, multi-agent
orchestration, 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)

  • 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
  • auth (with dedicated 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 compile passes against the existing Java
    agent (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)
  • Spot-check each new page renders at /demos/<id> against the
    local Spring AI agent
  • pnpm test:e2e Playwright stubs smoke-test page loads for every
    newly-added demo

…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.
@vercel

vercel Bot commented Apr 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat-with-your-data Ready Ready Preview, Comment Apr 24, 2026 5:14pm
docs Ready Ready Preview, Comment Apr 24, 2026 5:14pm
form-filling Ready Ready Preview, Comment Apr 24, 2026 5:14pm
research-canvas Ready Ready Preview, Comment Apr 24, 2026 5:14pm
travel Ready Ready Preview, Comment Apr 24, 2026 5:14pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

AlemTuzlak and others added 2 commits April 24, 2026 18:35
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.
@jpr5

jpr5 commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Superseded by #4280 (omnibus parity PR)

@jpr5 jpr5 closed this Apr 25, 2026
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`)
@jpr5
jpr5 deleted the feat/showcase-spring-ai-parity branch June 1, 2026 18:49
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

5 active deployments
Preview – travel — 3219f1ee Deployed Apr 24, 2026 by vercel[bot]
Preview – chat-with-your-data — 3219f1ee Deployed Apr 24, 2026 by vercel[bot]
Preview – research-canvas — 3219f1ee Deployed Apr 24, 2026 by vercel[bot]
Preview – docs — 3219f1ee Deployed Apr 24, 2026 by vercel[bot]
Preview – form-filling — 3219f1ee Deployed Apr 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants