Agui A2cui Bridge
Translation layer sitting between AguiEvents and A2CUI's own abstractions.
CopilotKit carries A2UI frames as AG-UI CUSTOM events named "a2ui", with the frame embedded in the value field. This bridge extracts those payloads and re-emits them through the standard A2uiParser path. Tool calls and state events are exposed as separate flows so apps can wire per-concern consumers.
Properties
Functions
Link copied to clipboard
Extract A2UI frames from CUSTOM events whose name matches a2uiCustomEventName.
Link copied to clipboard
Filter only RUN_FINISHED events whose outcome is "interrupt" — ready to present as HITL prompts.
Link copied to clipboard
Streaming tool-call reducer: builds ToolCallEvents out of TOOL_CALL_* events.