Commit Graph

196 Commits

Author SHA1 Message Date
github-actions[bot] 204f2fc7ec style: auto-fix formatting 2026-05-13 04:43:51 +00:00
Tyler Slaton 8966ef4f91 chore(showcase/google-adk/declarative-{hashbrown,json-render}): sed internal URL refs to declarative-*
QA3's sed pass missed making it into the consolidated commit. Landing
now so the e2e specs target the demo's current URL after the
byoc→declarative rename.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 21:41:06 -07:00
Tyler Slaton e6e50165e4 fix(showcase/google-adk/declarative-{hashbrown,json-render}): pull LP-verbatim page + suggestions
QA3's `byoc-hashbrown/page.tsx` (which got renamed into the
declarative-hashbrown dir during the orchestrator pass) imported a
`useHashBrownMessageRenderer` hook that doesn't exist in any
`hashbrown-renderer.tsx` — neither LP's nor the one we already had —
which broke the Next.js prerender step with `(0 , d.useHashBrownMessageRenderer) is not a function`.
The QA agent had drafted a custom page.tsx that diverged from LP's
canonical version. Per north-star rule, replaced both page.tsx +
suggestions.ts with LP-verbatim for both demos.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 18:02:29 -07:00
Tyler Slaton ef1ca9808c feat(showcase/google-adk): QA-blitz parity ports — agent prompts, tool surface, e2e specs
Result of 10 parallel QA agents auditing all 30 active demos against
langgraph-python (north-star). Each agent ported drift back to LP-verbatim
across three axes:

1. Agent layer
   - tool_rendering_common.py: rebuilt to LP's surface — get_weather,
     search_flights(origin, destination), get_stock_price, roll_d20,
     roll_dice. Removed the ADK-only query_data.
   - tool_rendering_*_agent.py (4 variants): ported LP's travel/concierge
     prompt; reasoning-chain variant got LP's chain-two-tools prompt.
   - beautiful_chat_agent.py: ported LP's per-tool system prompt; added
     manage_sales_todos / get_sales_todos / generate_a2ui; dropped the
     redundant schedule_meeting (frontend HITL handles it).
   - open_gen_ui_agents.py: ported LP's full SYSTEM_PROMPT for both
     variants, including the Websandbox.connection.remote.* contract
     for the advanced sandbox demo (was `window.sandbox.*`, which the
     LP frontend's Websandbox bridge silently no-ops).
   - byoc_agents.py: fused LP's hashbrown + json-render prompts so the
     single ADK byoc_agent emits both wire shapes. Aliases exported for
     a future per-route split.
   - declarative_gen_ui_agent.py: ported LP's a2ui_dynamic SYSTEM_PROMPT.
   - a2ui_fixed_agent.py: picked up LP's #4734 regression guard
     ("exactly ONCE", "do NOT call again").
   - agent_config_agent.py: rewrote to read useAgentContext (was
     state["config"]); reconciled schema to LP's 3-field camelCase
     {tone, expertise, responseLength} with LP's value enums.
   - subagents_agent.py: dropped the "running" placeholder; returns
     plain str so the LP-verbatim frontend's `result?.trim()` works.
   - hitl_in_app_agent.py / hitl_in_chat_book_call_agent.py: prompts +
     tool-result shape ({approved, reason}) aligned to LP.
   - AGUIToolset() added wherever it was missing on the bespoke agents
     (multimodal, mcp_apps, a2ui_fixed) so frontend-registered tools
     reach the model.

2. Dedicated runtime routes
   - copilotkit-multimodal/route.ts (new) — mirrors LP shape with
     ADK's HttpAgent + AGENT_URL pattern.
   - copilotkit-agent-config/route.ts (new) — same pattern.
   - copilotkit-mcp-apps/route.ts — refreshed.

3. Frontend ports (ADK frontend brought to LP-verbatim where it had
   drifted from the parity blitz state)
   - tool-rendering family (4 demos): full re-port — WeatherCard,
     FlightListCard, StockCard, D20Card, ReasoningBlock, CatchallRenderer,
     suggestions, and the page wiring with all useRenderTool /
     useDefaultRenderTool / reasoningMessage registrations.
   - a2ui-fixed-schema, mcp-apps, multimodal: full frontend re-ports
     with their _components/ Tailwind primitives.
   - frontend-tools, frontend-tools-async, agent-config: ported LP's
     component structure (separate Background, NotesCard with query_notes,
     config-context-relay).
   - shared-state-read, shared-state-read-write, readonly-state-agent-context:
     ported LP's demo-layout + _components + suggestions. recipe-card.tsx
     pulled directly from LP (one QA agent had adapted to Unicode glyphs
     thinking ADK lacked lucide-react — it doesn't, after the parity blitz).
   - shared-state-streaming, subagents, hitl-in-app: ported LP's
     DocumentView / supervisor-activity / TicketsPanel structure.
     hitl-in-app/page.tsx pulled directly from LP to keep the hyphenated
     agent slug aligned with the renamed registry key.
   - auth, hitl-in-chat: ported LP's SignInCard-first auth UX and the
     time-picker Tailwind port.
   - prebuilt-popup: pulled LP's main-content + suggestions split.

4. Test fixtures
   - 30 tests/e2e/<slug>.spec.ts ported from LP, several overwriting
     stale stubs (shared-state-streaming, subagents, auth, hitl-in-chat,
     shared-state-read, agent-config).
   - 30 qa/<slug>.md ported from LP with ADK env-var and registry
     references substituted (GOOGLE_API_KEY, AGENT_URL, registry.py).
   - QA3's byoc-hashbrown / byoc-json-render specs renamed to
     declarative-hashbrown / declarative-json-render with internal
     URL references substituted (the orchestrator pass had already
     renamed the demo dirs + manifest entries).

Frontend changes from QA agents were filtered: kept where they ported
LP-verbatim into ADK, replaced with direct LP pulls where the agent
had made ADK-specific adaptations (one Unicode-glyph case, one
stale-registry-slug case).

Not touched per blitz rules: shared_chat.py, registry.py, manifest.yaml,
src/app/api/copilotkit/route.ts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 17:58:06 -07:00
Tyler Slaton ac36b01aed feat(showcase/google-adk/open-gen-ui+beautiful-chat): port agent prompts, tool surface, and e2e specs
- open_gen_ui_agents.py: port LP's minimal + advanced system prompts
  verbatim. Advanced prompt now tells Gemini to call
  `Websandbox.connection.remote.<fn>` (matching the LP frontend's
  websandbox bridge — the prior `window.sandbox.*` prompt produced UIs
  that silently no-op'd) and includes the full sandbox-iframe restriction
  set (no `<form>`, no `type="submit"`, addEventListener / keydown only),
  CDN script guidance, and the return-shape contract.
- beautiful_chat_agent.py: add `manage_sales_todos`, `get_sales_todos`,
  and `generate_a2ui` (mirrors `agents/main.py.generate_a2ui` — forced
  Gemini tool call, full `_A2uiError` shape) so the Task Manager and
  Sales Dashboard pills exercise their backend tools end-to-end. Drop
  `schedule_meeting` — the frontend handles meeting scheduling via the
  `scheduleTime` `useFrontendTool` HITL renderer.
- Copy LP's `tests/e2e/{open-gen-ui,open-gen-ui-advanced,beautiful-chat}.spec.ts`
  and `qa/{open-gen-ui,open-gen-ui-advanced,beautiful-chat}.md` fixtures
  into the ADK integration, retitled for Google ADK and adjusted for
  ADK env-var names (`GOOGLE_API_KEY`, `AGENT_URL`).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 17:33:54 -07:00
Tyler Slaton 79599de615 revert(showcase/google-adk): remove _clean_schema_for_genai monkeypatch
The schema-strip patch was an incorrect diagnosis. Subsequent end-to-end
testing through the real ADKAgent → Gemini path (curl test below)
confirms nested `required` works fine without any schema stripping:

  $ curl -X POST /gen-ui-tool-based \
      -d '{"tools":[{... "data": {"items": {"required":["label","value"]}}}]}'
  data: {"type":"TOOL_CALL_START","toolCallName":"render_bar_chart"}
  data: {"type":"TOOL_CALL_ARGS","delta":"{\"title\":\"Quarterly Sales\",...}"}
  data: {"type":"TOOL_CALL_END",...}

The original silent-failure observation was a bisection artifact: when
the silent failure first cleared, I credited the monkeypatch — but the
same rebuild had also refreshed `/app/agents/gen_ui_tool_based_agent.py`
with the `AGUIToolset()` addition (Dockerfile COPYs src/agents/ into /app/agents/,
which PYTHONPATH=/app loads ahead of the volume-mounted /app/src/agents/).
The AGUIToolset propagation was the only real fix; the schema-strip was
masking nothing.

Stripping `required` would have dropped semantic information Gemini does
use to constrain tool arg generation, so removing the patch also avoids a
subtle behavior degradation.

The 17-file AGUIToolset propagation from 112e53d9a stays in place — that
is the actual fix for the "demo appears frozen" symptom.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 16:58:38 -07:00
Tyler Slaton 112e53d9ae fix(showcase/google-adk): wire AGUIToolset + strip nested-required so gen-UI demos render
Two compounding root causes were silently breaking every generative-UI demo
that depended on frontend-registered tools (useFrontendTool, useComponent,
useHumanInTheLoop):

1) Missing AGUIToolset() in bespoke agents
   The ag_ui_adk middleware injects the frontend's tool registrations by
   *replacing* AGUIToolset instances in the agent's `tools` list with a
   ClientProxyToolset that wraps `input.tools`. If no AGUIToolset is
   present, the frontend tools are dropped silently and the model never
   sees render_bar_chart / render_pie_chart / etc. Bespoke agents (the ones
   built directly with LlmAgent(...) instead of via build_simple_chat_agent
   in shared_chat.py) all had `tools=[]` or `tools=[backend_only]`.
   Appended AGUIToolset() to every bespoke agent.

2) Nested `required` in tool parameter schemas
   Gemini's function-calling API silently rejects function declarations
   whose parameter schema contains a `required` field below the top-level
   object — e.g. on the items.properties of an array, or on a nested
   property's own properties. The Zod-generated schema for render_bar_chart
   has exactly that shape (items.properties with required: [label, value]).
   The model emits no TOOL_CALL_* events, no TEXT_MESSAGE_*, just RUN_STARTED
   → STATE_SNAPSHOT → RUN_FINISHED. ag_ui_adk's _clean_schema_for_genai
   doesn't strip nested required.

   agent_server.py now monkey-patches _clean_schema_for_genai at startup so
   nested `required` is stripped before tool definitions reach the model.
   Top-level required is preserved (Gemini accepts it there). The patch is
   defensive and per-process — no upstream dependency change needed.

Verification: curl test against /gen-ui-tool-based with the LP-shaped tool
schema now emits TOOL_CALL_START + TOOL_CALL_ARGS containing the chart
payload. Browser test renders the bar chart in the chat with Q1/Q2/Q3/Q4
data. Sanity-checked gen-ui-agent (set_steps state-streaming) — fully
working, live "All 3 steps complete" card rendered.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 14:20:53 -07:00
Tyler Slaton 5eac8ef7b1 feat(showcase/google-adk): pin CPK packages, retire interrupt demos as not_supported
Two requested changes in one pass:

1. Pin CopilotKit package versions
   - All @copilotkit/* in package.json: "next" → "1.57.1"
     (a2ui-renderer, react-core, runtime, shared, voice)
   - ag-ui-adk in requirements.txt: unpinned → "==0.6.1"
   Verified in the running container: pip shows ag_ui_adk 0.6.1,
   package.json shows the five CPK packages at 1.57.1.

2. Retire interrupt demos (Strategy B was the only available adaptation
   and the user asked for them to show as X in the dashboard):
   - Delete src/app/demos/gen-ui-interrupt/ and interrupt-headless/
   - Delete src/agents/interrupt_agent.py (no other consumers)
   - Drop the registry.py + route.ts entries
   - Move both feature ids from features: into not_supported_features:
     so the dashboard renders them as an explicit grey X (intentional
     opt-out) rather than red ? (unshipped). Drop the corresponding
     demos: entries.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:44:14 -07:00
Tyler Slaton 51c8e0524e fix(showcase/google-adk): port LP body rules so <CopilotSidebar /> pushes content
ADK's globals.css had `html, body { width: 100%; overflow: hidden }` as a
combined rule, which gave <body> a fixed full-viewport width. The CopilotKit
v2 <CopilotSidebar /> docks itself by setting `margin-inline-end` on <body>,
which only shrinks the layout when body's width is free to recompute — a
fixed `width: 100%` defeats the mechanism, so the sidebar ends up overlapping
the page content instead of pushing it.

LP's globals.css splits the rule and intentionally omits `width: 100%` on
<body> (the comment in their CSS explains the exact reason). Port the same
split. Also adds the LP `body[data-scroll-locked]` neutralizer to prevent
Radix overlays from injecting a phantom `padding-right` that would shrink
the page on every dropdown open.

Verified in browser: /demos/prebuilt-sidebar now pushes the "Sidebar demo"
content into the left ~70% of the viewport while the chat takes the right
~30%, matching showcase.copilotkit.ai/integrations/langgraph-python/prebuilt-sidebar.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:39:10 -07:00
Tyler Slaton e714f58a7b feat(showcase/google-adk): add missing shadcn ui primitives (input, select, spinner)
The shared-state-read demo (and others) port from LP imports these
shadcn primitives, but the orchestrator pass missed copying them from
LP's src/components/ui/. Webpack build failed with "Can't resolve
@/components/ui/{input,select,spinner}". Copied verbatim from LP. deps
(lucide-react, radix-ui) already in package.json.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:23:22 -07:00
Tyler Slaton 7c3b80e695 feat(showcase/google-adk): reconcile registry, route, manifest for parity blitz
Orchestrator pass after 37 parallel slot ports of google-adk demos to
match langgraph-python (north-star). Slot commits ported each demo's
frontend verbatim; this commit reconciles the cross-cutting wiring that
slot agents were forbidden from touching:

- registry.py: rename agent keys to match LP frontend agent= props
  (10+ underscore→hyphen renames for demos using the main copilotkit
  route; demos with dedicated routes keep their underscored backend
  keys since the dedicated route handles frontend→backend translation).
- route.ts: agentNames array updated to match registry.
- manifest.yaml: features list now matches the demos that actually
  exist; renamed agentic-chat-reasoning→reasoning-custom,
  reasoning-default-render→reasoning-default,
  byoc-hashbrown→declarative-hashbrown,
  byoc-json-render→declarative-json-render; added shared-state-read
  (was a working demo dir but not declared); moved shared-state-streaming
  out of not_supported_features (it works on Gemini Studio via chunk-
  level fallback); retired the standalone hitl demo and the duplicate
  hitl-in-chat-booking entry.
- src/app/demos/hitl/ and src/app/demos/shared-state-write/: deleted
  (orphaned dirs not in LP's surface).
- src/app/page.tsx: integration dev landing — drop deleted demos.
- src/app/demos/prebuilt-sidebar/page.tsx: revert slot 01's
  hyphen→underscore swap; LP's verbatim hyphenated agent= is the
  source of truth (registry was renamed to match).
- shared-state-read agent: registry entry swapped from
  shared_state_read_agent (had a set_recipe tool, turning it into
  read+write) to _simple_chat (matches LP's neutral default agent —
  read-only contract).

Known follow-ups (deferred — tracked separately):
- Tool-rendering family backend: ADK currently exposes
  get_weather + search_flights(flights list) + query_data; LP
  exposes get_weather + search_flights(origin, destination) +
  get_stock_price + roll_d20. The 4 tool-rendering demos render
  correctly for weather but the LP suggestion pills referencing
  stocks and d20 rolls will not produce backend tool calls.
- Subagents agent: emits running/completed/failed; LP frontend
  expects completed-only. Mid-flight rows render as raw badge text.
- Agent-config agent: reads state["config"] but LP frontend now
  publishes via useAgentContext; agent will receive nothing.
- Beautiful-chat agent: missing manage_todos + generate_a2ui tools
  that the LP frontend exercises.
- Open-gen-ui-advanced agent prompt: tells Gemini to call
  window.sandbox.* but the LP frontend wires Websandbox.connection.
  remote.* — generated UIs will reference a nonexistent API.
- gen-ui-interrupt and interrupt-headless: confirmed BLOCKED.
  Gemini/ADK has no interrupt() primitive; the existing ADK Strategy
  B (useFrontendTool with async Promise) is the only available
  adaptation and cannot match LP's useInterrupt 1:1.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:19:01 -07:00
Tyler Slaton 92a48b82df feat(showcase/google-adk/declarative-json-render): rename from byoc-json-render and port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:12:53 -07:00
Tyler Slaton 532198b14c feat(showcase/google-adk/declarative-hashbrown): rename from byoc-hashbrown and port frontend from langgraph-python
Renames the ADK byoc-hashbrown demo to declarative-hashbrown to match the
LP naming, and ports the LP declarative-hashbrown frontend (page + chat +
hashbrown renderer + charts + suggestions + types + metric card) verbatim.

Also renames the dedicated API route from copilotkit-byoc-hashbrown to
copilotkit-declarative-hashbrown, keeping the existing HttpAgent + AGENT_URL
pattern (URL now points at /declarative-hashbrown on the Python backend).

The runtime-side agent ID remains "declarative-hashbrown-demo" (matching
LP); the backend registry / agentNames rename (byoc_hashbrown -> declarative-
hashbrown), the manifest slug rename, and main route.ts agentNames update
are out of scope per the task and are reported separately.
2026-05-12 13:12:52 -07:00
Tyler Slaton e86ecdef66 feat(showcase/google-adk/reasoning-default): rename from reasoning-default-render and port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:12:52 -07:00
Tyler Slaton 99429e6355 feat(showcase/google-adk/reasoning-custom): rename from agentic-chat-reasoning and port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:12:51 -07:00
Tyler Slaton c0a0216a70 feat(showcase/google-adk/hitl-in-app): port frontend from langgraph-python
Copies the hitl-in-app demo verbatim from langgraph-python (north-star):
page.tsx, approval-dialog.tsx, suggestions.ts, tickets-panel.tsx. Updates
the ADK agent instruction to match the LP support-operations prompt and
the {approved, reason} tool-return shape.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:12:51 -07:00
Tyler Slaton 34f53d402a feat(showcase/google-adk/hitl-in-chat): port frontend from langgraph-python
Copy page.tsx and time-picker-card.tsx verbatim from the langgraph-python
north-star demo. Delete README.md (not present upstream). Frontend now uses
agent="hitl-in-chat" / agentId="hitl-in-chat" exactly as LP — registry and
route.ts currently key on "hitl_in_chat", which will need a follow-up
rename to wire end-to-end.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:08:01 -07:00
Tyler Slaton 9d8870a018 feat(showcase/google-adk/open-gen-ui-advanced): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:08:01 -07:00
Tyler Slaton 3c9a6f3eb0 feat(showcase/google-adk/open-gen-ui): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:08:01 -07:00
Tyler Slaton d5f360ebc1 feat(showcase/google-adk/a2ui-fixed-schema): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:08:00 -07:00
Tyler Slaton 6fc8e4859a feat(showcase/google-adk/declarative-gen-ui): port frontend from langgraph-python
Replace the inline-styled brand-palette version with a 1:1 verbatim copy of
the langgraph-python north-star demo: ShadCN-flavoured Card/Badge/Button
primitives under _components/, neutral zinc chart palette, and the
chat.tsx + suggestions.ts split out of page.tsx.

The ADK agent already emits the same a2ui_operations container shape
(via build_a2ui_operations_from_tool_call in agents/main.py) so no
backend changes are needed; the frontend swap is sufficient.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:08:00 -07:00
Tyler Slaton 8ffc94ed6e feat(showcase/google-adk/gen-ui-agent): port frontend from langgraph-python
Copy LP gen-ui-agent demo verbatim: page.tsx now uses InlineAgentStateCard
in messageView.children (subscribing to live state via useAgent v2 +
UseAgentUpdate.OnStateChanged), plus the supporting
InlineAgentStateCard.tsx, message-list-with-state.tsx, suggestions.ts, and
README.md.

Update the ADK gen_ui_agent to emit the same Step shape the LP frontend
reads — {id, title, status} with the three-state lifecycle pending ->
in_progress -> completed, driven by a six-call sequence so the card
animates through every step. Without this, the card would render empty
titles and never show the in_progress marker.

Delete the orphan agent.py stub from the demo dir — the real backend
agent lives in src/agents/gen_ui_agent.py and is wired through the
shared registry.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:08:00 -07:00
Tyler Slaton 070dcd74e0 feat(showcase/google-adk/gen-ui-tool-based): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:02:57 -07:00
Tyler Slaton 43535219bb feat(showcase/google-adk/tool-rendering-custom-catchall): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:02:56 -07:00
Tyler Slaton 184507fa3b feat(showcase/google-adk/tool-rendering): port frontend from langgraph-python
Verbatim copy of the langgraph-python tool-rendering demo frontend to
google-adk: page.tsx + weather-card + flight-list-card + stock-card +
d20-card + custom-catchall-renderer + suggestions + README. Also adds
the _shared/parse-json-result helper required by page.tsx. Removes the
stale agent.py stub and render-flight-tool.snippet.tsx that don't exist
in the LP north-star.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:02:56 -07:00
Tyler Slaton c9b8158049 feat(showcase/google-adk/mcp-apps): port frontend from langgraph-python
Mirror the north-star (langgraph-python) mcp-apps demo verbatim: split the
single-file page.tsx into page.tsx + chat.tsx + suggestions.ts, and switch
the agent identifier from "mcp_apps" to "mcp-apps" to match LP exactly.
Update copilotkit-mcp-apps/route.ts to register the HttpAgent under the
"mcp-apps" key so the LP-verbatim frontend resolves. Delete the demo-local
README.md (no LP equivalent).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:02:55 -07:00
Tyler Slaton 6479439e39 feat(showcase/google-adk/tool-rendering-reasoning-chain): port frontend from langgraph-python
Copy LP's tool-rendering-reasoning-chain frontend verbatim: page.tsx with
useRenderTool registrations for get_weather + search_flights and a
useDefaultRenderTool catchall, plus ReasoningBlock, WeatherCard,
FlightListCard, and CustomCatchallRenderer components. Keeps the LP
agent/agentId values ("tool-rendering-reasoning-chain") as required by
the parity north-star.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:00:16 -07:00
Tyler Slaton f4820a7bc7 feat(showcase/google-adk/tool-rendering-default-catchall): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:00:08 -07:00
Tyler Slaton 6782f65d4b feat(showcase/google-adk/multimodal): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:57:24 -07:00
Tyler Slaton f6dabeb22f feat(showcase/google-adk/subagents): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:57:24 -07:00
Tyler Slaton 5aa55d5a21 feat(showcase/google-adk/shared-state-streaming): port frontend from langgraph-python
Bring shared-state-streaming demo frontend to 1:1 parity with the
langgraph-python north-star: split page.tsx into demo-layout.tsx +
suggestions.ts modules, swap CopilotChat-in-aside for
CopilotSidebar+DemoLayout, and adopt LP's DocumentView styling +
testids (document-view, document-live-badge, document-char-count,
document-content).

The ADK agent (shared_state_streaming_agent.py) is already wired with
streaming_function_call_arguments=True on the ADKAgent middleware and
PredictStateMapping(stream_tool_call=True), so per-token (or chunk-level
fallback on Gemini Studio) state-delta streaming into state["document"]
works end-to-end. The 2026-05-07 not_supported_features bucket was
conservative — the wiring is complete and the LIVE badge / growing
document UX functions even on the chunk-level fallback path.

README adjusted from LangGraph's StateStreamingMiddleware to ADK's
PredictStateMapping + streaming_function_call_arguments wording.

Manifest change needed (not in this commit): remove
shared-state-streaming from not_supported_features and add to features.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:57:24 -07:00
Tyler Slaton 9da794112b feat(showcase/google-adk/shared-state-read): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:57:23 -07:00
Tyler Slaton 6b5832c31a feat(showcase/google-adk/shared-state-read-write): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:57:23 -07:00
Tyler Slaton e44eb274f8 feat(showcase/google-adk/readonly-state-agent-context): port frontend from langgraph-python
Copy the readonly-state-agent-context demo frontend verbatim from
langgraph-python (the north-star) into google-adk. The ADK demo
previously had a different layout (sidebar + CopilotChat with 3 simple
fields); replace it with the LP layout (identity card + activity card +
published-context JSON viewer + CopilotPopup, all on a neutral-50
background with the indigo accent system).

Adds local _components/ shadcn primitives (Badge, Card, Checkbox, Input,
Label, Select), demo-layout.tsx, and suggestions.ts. The page.tsx is
identical to LP — agent="readonly-state-agent-context" and
agentId="readonly-state-agent-context" (dash form) are kept verbatim per
the parity rules; the orchestrator will rename the registry key so the
backend matches.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:57:22 -07:00
Tyler Slaton b2ec0427c3 feat(showcase/google-adk/agent-config): port frontend from langgraph-python
Verbatim port of langgraph-python's agent-config demo frontend:
page.tsx, config-card.tsx, config-context-relay.tsx, config-types.ts,
demo-layout.tsx, use-agent-config.ts. Keeps agent="agent-config-demo"
and runtimeUrl="/api/copilotkit-agent-config" as in LP.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:46:02 -07:00
Tyler Slaton cd26c8be80 feat(showcase/google-adk/auth): port frontend from langgraph-python
Copy the auth demo verbatim from langgraph-python (the parity north-star).
The demo now uses an unauthenticated-first UX with a dedicated SignInCard
landing page; <CopilotKit> mounts only after the user signs in at least
once, sidestepping the transport 401 that would crash <CopilotChat /> on
its initial /info handshake. Once mounted, it persists across the
sign-out -> sign-in cycle so the post-sign-out state actually demonstrates
the runtime rejecting unauthenticated requests in the chat surface.

Workspace plumbing required to make the verbatim port runnable:
- Add shadcn primitives (button, card) and `cn` util at
  src/components/ui/* + src/lib/utils.ts.
- Add class-variance-authority, clsx, radix-ui, tailwind-merge to
  package.json.
- Extend globals.css with Tailwind v4 @theme tokens that map onto the
  shadcn CSS variables (background/foreground/card/muted/border/etc.) so
  utilities like `bg-muted` and `text-muted-foreground` actually generate
  styles.

The ADK auth API route already had the onRequest bearer-token gate
mirroring LP's pattern; it points at the `_simple_chat`-backed `/auth`
agent path, which is correct per the auth-at-route-level model. No
backend (registry / agent) changes required.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:46:02 -07:00
Tyler Slaton 06b6253e7b feat(showcase/google-adk/beautiful-chat): port frontend from langgraph-python
Verbatim copy of the LP beautiful-chat frontend — page.tsx, home-page.tsx,
showcase.json, declarative-generative-ui/, components/ (example-layout,
example-canvas, generative-ui, ui, tool-rendering), hooks/, lib/. The demo
now uses ThemeProvider + CopilotKit with a2ui catalog + openGenerativeUI,
ExampleLayout/Canvas with todos, generative UI chart components, and the
full suggestion-pill set.

Add the dedicated ADK runtime route at /api/copilotkit-beautiful-chat
modelled after the LP route shape but adapted for ADK (HttpAgent +
AGENT_URL pattern, mirroring declarative-gen-ui and mcp-apps routes).
Combined runtime: openGenerativeUI + a2ui.injectA2UITool:false + mcpApps
to support all three flagship surfaces simultaneously, matching LP.

Add missing npm deps to package.json: @radix-ui/react-checkbox,
@radix-ui/react-separator, class-variance-authority, clsx, lucide-react,
tailwind-merge — required by the verbatim-copied shadcn primitives.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:45:48 -07:00
Tyler Slaton f008fe8758 feat(showcase/google-adk/frontend-tools-async): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:45:12 -07:00
Tyler Slaton 76a1f1839d feat(showcase/google-adk/frontend-tools): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:45:11 -07:00
Tyler Slaton 1fd848c91f feat(showcase/google-adk/voice): port frontend from langgraph-python
Align google-adk's /demos/voice with the langgraph-python north-star:
- page.tsx now mounts <CopilotKit runtimeUrl="/api/copilotkit-voice"
  agent="voice-demo" useSingleEndpoint={false} enableInspector={false}>
  around a dedicated <VoiceChat /> component (split out of page.tsx).
- voice-chat.tsx (new) hosts the textarea-injection handler and renders
  <CopilotChat agentId="voice-demo" /> alongside the sample-audio button.
- sample-audio-button.tsx is the single-button "Try a sample audio" variant
  with the mic emoji and tooltip-style preview — the surrounding "Sample:"
  wrapper from the old ADK version is gone.
- Drops voice-frontend.snippet.tsx and voice-runtime.snippet.ts (not in LP).

Agent untouched: src/agents/shared_chat._simple_chat already mirrors LP's
main.py simple chat shell. The existing route at
src/app/api/copilotkit-voice/[[...slug]]/route.ts already maps
"voice-demo" → HttpAgent(AGENT_URL + "/voice") which lines up with the
registry key "voice".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:45:11 -07:00
Tyler Slaton ee905c237e feat(showcase/google-adk/headless-complete): port frontend from langgraph-python
Copy the full headless-complete demo verbatim from langgraph-python (the
parity north-star). The demo now exposes the full headless surface
CopilotKit provides: useRenderTool / useDefaultRenderTool, useComponent,
useConfigureSuggestions, useAttachments, plus useRenderToolCall and
useRenderActivityMessage rendered inside a hand-rolled chat shell built on
useAgent + useCopilotKit.

Workspace plumbing required to make the verbatim port runnable:
- Add shadcn primitives (avatar, badge, button, card, scroll-area,
  separator, textarea) and `cn` util at src/components/ui/* + src/lib/utils.ts.
- Add lucide-react, radix-ui, react-markdown, remark-gfm, clsx,
  tailwind-merge, class-variance-authority to package.json.
- Extend globals.css with Tailwind v4 @theme tokens that map onto the
  shadcn CSS variables (background/foreground/card/muted/border/etc.) so
  utilities like `bg-background` actually generate styles.
- Register a `headless-complete` HttpAgent on the existing MCP Apps
  runtime route so the LP frontend's `agent="headless-complete"` resolves
  to the ADK backend path `/headless_complete` (mapped to _simple_chat in
  registry.py).

The ADK `_simple_chat` agent is left unchanged — it already covers the
behaviour the demo exercises (frontend tools, MCP Apps tool calls).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:36:26 -07:00
Tyler Slaton 0c91f14ef0 feat(showcase/google-adk/headless-simple): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:36:25 -07:00
Tyler Slaton d87e86b51b feat(showcase/google-adk/chat-customization-css): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:36:25 -07:00
Tyler Slaton 810d62079c feat(showcase/google-adk/chat-slots): port frontend from langgraph-python 2026-05-12 12:36:24 -07:00
Tyler Slaton 4323b0d3d5 feat(showcase/google-adk/prebuilt-popup): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:36:24 -07:00
Tyler Slaton 7a21b591d4 feat(showcase/google-adk/prebuilt-sidebar): port frontend from langgraph-python
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 12:36:24 -07:00
Tyler Slaton f5741619f0 feat(showcase/google-adk): align agentic-chat with langgraph-python reference
Reduce google-adk's agentic-chat to the minimum-viable CopilotChat surface
matching langgraph-python: vanilla <CopilotChat /> + three starter
suggestion pills. Strip useFrontendTool (change_background), useRenderTool
(get_weather — was silently failing, no backend tool registered), and
useAgentContext (Bob's name). These concepts already have dedicated demos
(frontend-tools, tool-rendering, readonly-state-agent-context).

Also: make GOOGLE_GEMINI_BASE_URL overridable via .env so the same
container can flip between aimock (deterministic D5 probes) and real
Gemini (manual verification) without editing the compose file.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 11:53:35 -07:00
Sam Julien 2467ec567c chore(showcase): mark shared-state-streaming unsupported for remaining 6 frameworks without working demos
Per Sam's clarification 2026-05-07: anything without a working state-streaming demo gets unsupported. Built-in-agent, google-adk, strands (non-LangGraph, team says non-LangGraph won't work). Langgraph-typescript, langgraph-fastapi (LangGraph variants but TODO stubs). Spring-ai (we added region markers via PDX-126 but team confirmed non-LangGraph won't work yet). Only langgraph-python (canonical reference) stays wired. Engineering can flip these back to features once impls land.
2026-05-07 15:05:50 -07:00
Alem Tuzlak 728ed61ce8 feat(showcase/voice): D5 mapping + sample-button bypasses /transcribe
The langgraph-python voice cell sat at D4 even when its d5-voice probe
row was green. Root cause: the dashboard's CATALOG_TO_D5_KEY mirror in
showcase/shell-dashboard/src/lib/live-status.ts was missing voice ->
["voice"], so computeMaxPossible capped voice at D4 regardless of probe
state. The harness REGISTRY_TO_D5 already had the entry; only the
dashboard mirror was out of sync.

Separately, the "Play sample" button used to fetch sample.wav and POST
it to /transcribe. With aimock that meant both the sample button AND
the mic returned the same canned response, which made it impossible to
demo the mic path locally without conflating the two affordances.
Reworked the button into a synchronous static-text injector
(onTranscribed(sampleText)) so:

- Sample button = deterministic test/demo affordance, no runtime calls.
- Mic = real Whisper transcription via /transcribe.

Synced across all 18 voice-enabled integrations. Phrase stays "What is
the weather in Tokyo?" so aimock's "weather in Tokyo" substring fixture
still matches.

Also adds the missing d5-voice.test.ts companion (every other d5-* probe
script has one) and trims the langgraph-python qa/voice.md + e2e steps
that depended on the now-removed async behavior.
2026-05-06 18:11:24 +02:00
Alem Tuzlak 602fb2d190 fix(showcase): trim headless-simple chips to in-surface set + add tool wildcard to google-adk/headless-complete
The validate-fixture-tool-surface check on PR #4669 flagged 18 drift
violations: every headless-simple demo carried 'Weather in Tokyo' /
'AAPL stock price' / 'Highlight a note' / 'Sketch a diagram' chips
that substring-match aimock fixtures returning tool calls
(get_weather / get_stock_price / highlight_note / etc.) — but
headless-simple demos only register 'show_card' via useComponent.
Tool-call dispatch had no matching renderer.

Trim the headless-simple chip list to two in-surface entries:
- 'Profile card' → 'Show me a profile card for Ada Lovelace' (existing
  show_card fixture; show_card is already registered by useComponent).
- 'Largest continent' → 'What is the largest continent?' (text-only
  fixture from Phase 0; no tool dependency).

The chip-click e2e test only asserts on the 'Largest continent' chip,
so the trim is test-compatible.

Headless-complete keeps the canonical 5-chip list (its tool surface
covers weather/stock/highlight/excalidraw via tool-renderers.tsx and
backend agents).

For google-adk/headless-complete: add a useDefaultRenderTool() wildcard
catch-all. The validator looks at page.tsx + hooks/* and a backend
agent file; google-adk's tool registrations live in tool-renderers.tsx
(unparsed) and there's no matching agents/headless_complete.py file,
so the validator saw an empty tool surface. The wildcard registers '*'
which matches every fixture tool — same pattern north-star already
uses in its own tool-renderers.tsx.
2026-05-05 18:03:03 +02:00