Expand description
The board: the shared state, the tools that change it, and the A2UI surface that draws it.
Nothing here knows about AG-UI events. The state is a plain serde struct
that ag_ui::server::RunContext publishes as STATE_SNAPSHOT /
STATE_DELTA, the tools are ag_ui::Tool definitions the client
offers, and the surface is an ag_ui_a2ui component tree. Keeping the
domain free of the protocol is what makes crate::agent short.
Structs§
Constants§
- ADD_
TASK - Adds one task.
- CLEAR_
BOARD - Removes every task. Destructive, so the agent asks first.
- COMPLETE_
TASK - Marks one task done.
- ESTIMATE
- Puts a minute estimate on one task.
- SURFACE_
ID - The A2UI surface every render targets.
Functions§
- data_
model - What the surface’s bindings read.
- surface
- The board as an A2UI surface: a card, a heading, a status line, and one two-way bound checkbox per task.
- tools
- The tools the client offers and the agent executes.