Skip to main content

Crate board_watch

Crate board_watch 

Source
Expand description

A terminal client for any AG-UI agent — and the awkward agent it is aimed at.

Round two of dogfooding this SDK, from the consuming side. task-board was an agent with a client attached; this is a client, and the server here exists only to give it something hostile to read.

  • watch is the application: send a line, render the run, answer what it pauses on, draw the board.
  • view is what it prints, including a small A2UI renderer.
  • trace is the same conversation one level down — events exactly as they arrived, and a resume built without a session.
  • fake is the backend: chunked text, tool arguments split mid-escape, parallel calls, a run that never finishes, and hand-framed streams the protocol forbids.
  • board is the client’s own model of the agent’s state, declared independently of the server’s.

Nothing needs a key or a network beyond loopback.

Re-exports§

pub use board::Board;
pub use watch::Console;
pub use watch::Policy;
pub use watch::Watch;

Modules§

board
The client’s own view of the agent’s state.
fake
The awkward agent: a backend that produces the shapes real providers do.
trace
The low level: events exactly as the agent sent them.
view
Turning what the client assembled into lines a person reads.
watch
The driver: one line in, one run out, and everything the client assembled printed as it arrives.

Functions§

load_tools
Reads the tools this client is willing to have called.
replay_fixture
Reads a recorded run — a JSON array of events — into a transport.