Skip to main content

Module board

Module board 

Source
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§

Board
Everything the user and the agent share.
Task
One item on the board.

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.