testing library

To run without a model, in a test or to try a screen: ScriptedAgent plays a script in place of the agent, and AgentListing shows what a class gives the agent.

Classes

AgentListing
A class's agent list read once, for one run of the agent, in the shape AG-UI sends it. A new run reads the list again.
AgentStep
One step of an AgentTurn.
ScriptedAgent
An AgentConnection that plays a script in the event shapes of ag-ui-adk, for tests without a model.

Typedefs

AgentTurn = List<AgentStep> Function(Map<String, Object?> request)
What the agent does in one run of a ScriptedAgent, given the body of the run.