mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
d530592317
`headless_complete` was wired to `_simple_chat` (zero backend tools) in the registry. The d5-gen-ui-headless-complete probe sends prompts that need `get_weather` / `get_stock_price` / `get_revenue_chart` to mount their respective per-tool renderer cards on the frontend (`useRenderTool` keys on tool name), so without the backend tools the fixture's tool-call response had no matching Python function to run and the cards never mounted. Ports the three mock tools verbatim from `langgraph-python/src/agents/headless_complete.py` (same payload shapes, same system-prompt routing rules) onto a dedicated `headless_complete_agent` LlmAgent and re-points the registry slot. The frontend's `highlight_note` is a useComponent-style frontend tool and the Excalidraw MCP tools are injected by the runtime middleware — neither needs a backend Python function, matching the LGP shape. Local D5: google-adk:headless-complete flips from red to green.