ScriptedAgent class final
An AgentConnection that plays a script in the event shapes of ag-ui-adk, for tests without a model.
The n-th run plays turns[n]; a run beyond the script ends with a
RUN_ERROR. Events arrive one at a time, asynchronously, so
await pumpEventQueue() or pumpAndSettle plays a whole run.
- Implemented types
Constructors
-
ScriptedAgent(List<
AgentTurn> turns)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
Map< String, Object?> input) → Stream<Map< String, Object?> > -
Starts a run with
inputand streams it as decoded JSON.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited