Package-level declarations
Types
Translation layer sitting between AguiEvents and A2CUI's own abstractions.
One event from the AG-UI protocol stream. Discriminated by type at the top level, matching the wire format from docs.ag-ui.com.
Parse a stream of JSON strings (one AG-UI event per element) into typed AguiEvents.
Applies AG-UI STATE_SNAPSHOT and STATE_DELTA events to a DataModel. This is the agent-level state channel, separate from A2UI's per-surface data model — apps that use CoAgent-style shared state should instantiate one reducer per logical state store.
Outcome of parsing a single AG-UI event frame.
Suspends until the next RUN_FINISHED { outcome = "interrupt" } arrives on events, then exposes the interrupts and a resolver so the UI can collect the user's decision.
Minimal RFC 6902 JSON Patch applier. Supports the three load-bearing operations that AG-UI STATE_DELTA emits in practice: add, replace, remove. move, copy, and test are accepted but fall back to replace-like semantics; they can be fleshed out when real-world traffic demands them.
State of one streaming tool call, assembled from TOOL_CALL_START / TOOL_CALL_ARGS / TOOL_CALL_END / TOOL_CALL_RESULT events.
Properties
Functions
Bidirectionally bind a Compose MutableState to a slot inside an AG-UI AguiStateReducer.