Skip to content

feat(examples/ag-ui): local-runnable standalone ag-ui chat example (Part 2a)#613

Open
blove wants to merge 5 commits into
mainfrom
claude/examples-ag-ui-local
Open

feat(examples/ag-ui): local-runnable standalone ag-ui chat example (Part 2a)#613
blove wants to merge 5 commits into
mainfrom
claude/examples-ag-ui-local

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Jun 7, 2026

Summary

Standalone examples/ag-ui/ — a single-conversation chat app over the AG-UI transport + a uvicorn ag-ui-langgraph backend running the (duplicated) a2ui graph. Demonstrates LangGraph↔AG-UI transport + a2ui parity. Runnable via nx serve + uvicorn.

  • examples/ag-ui/python/ — chat a2ui graph duplicated verbatim (transport-agnostic) + server.py (ag-ui-langgraph, token-optional auth, /ok, local MemorySaver checkpointer for the standalone path).
  • examples/ag-ui/angular/ — simplified single-conversation <chat> host via provideAgent({ url: '/agent' }). No @threadplane/langgraph — the entire delta from examples/chat is the transport provider.
  • Scope note: simplified shell (no thread sidebar) — LangGraphThreadsAdapter (thread CRUD) has no AG-UI equivalent. Relies on the customEvents signal (feat(ag-ui): customEvents signal for live a2ui streaming parity #606) for live a2ui.

Verified locally: uvicorn/ok 200; POST /agent ran end-to-end emitting the render_a2ui_surface tool-call cycle (RUN_STARTED → TOOL_CALL_* → RUN_FINISHED) — a2ui parity proven. nx build examples-ag-ui-angular clean; zero langgraph references.

Part 2a of docs/superpowers/specs/2026-06-06-examples-ag-ui-standalone-design.md. e2e/smoke = Part 2b; deploy (Railway + ag-ui-demo.threadplane.ai) = Part 3.

Test plan

  • uvicorn /ok 200; POST /agent streams an AG-UI a2ui run (tool-call cycle).
  • nx build examples-ag-ui-angular clean; no langgraph refs.
  • CI green.

🤖 Generated with Claude Code

blove and others added 5 commits June 6, 2026 20:29
…ex/main)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…/ok + a2ui run)

The standalone ag-ui-langgraph endpoint calls graph.aget_state, which requires
a checkpointer; the copied chat graph compiles without one (Platform manages
persistence). Compile a local MemorySaver-backed copy in server.py for the
standalone uvicorn path, leaving the deployed graph export untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@blove blove enabled auto-merge (squash) June 7, 2026 04:32
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 7, 2026

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

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment Jun 7, 2026 5:00am

Request Review

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.

1 participant