AgentStep class sealed

One step of an AgentTurn.

Constructors

AgentStep.callTool(String name, [Map<String, Object?> arguments])
Calls the app's method name, in snake_case, with arguments. The session runs it when the run ends. A run that does not offer name ends with RUN_ERROR and ScriptedErrorCode.notOffered.
const
factory
AgentStep.fail(String message)
Ends the run with RUN_ERROR and message.
const
factory
AgentStep.say(String text)
Streams text as one message of the agent.
const
factory
AgentStep.showView(List<Map<String, Object?>> components)
Draws components in the screen's TandemView, by calling tandem_show_view.
factory
AgentStep.stateDelta(List<Map<String, Object?>> delta)
Changes the agent's state with the JSON Patch operations of delta, as STATE_DELTA.
const
factory
AgentStep.stateSnapshot(Map<String, Object?> snapshot)
Sends the agent's whole state, session.agentState, as STATE_SNAPSHOT.
const
factory
AgentStep.waitFor(Future<void> signal)
Waits for signal before the next step, such as to keep a run open in a test.
const
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited