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.
- AgentRequest
- Reads the context, offered tools and latest answers of a scripted run. raw stays available for assertions about the wire format.
- AgentStep
- One step of an AgentTurn.
- AgentToolResult
-
A tool answer joined to its call. No status is inferred from its content:
a returned application value can itself contain a
statuskey. - PressedAction
- An action of a view the agent drew that the user pressed, which called tool with arguments.
- ScriptedAgent
- An AgentConnection that plays a script in the event shapes of ag-ui-adk, for tests without a model.
Extension Types
- ScriptedErrorCode
- The codes a ScriptedAgent fails its runs with.
- ToolStatus
-
What came of a call, as the
statusof its answer, or where a call that waits for the user stands.