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, witharguments. The session runs it when the run ends. A run that does not offernameends withRUN_ERRORand ScriptedErrorCode.notOffered.constfactory - AgentStep.fail(String message)
-
Ends the run with
RUN_ERRORandmessage.constfactory - AgentStep.say(String text)
-
Streams
textas one message of the agent.constfactory -
AgentStep.showView(List<
Map< components)String, Object?> > -
Draws
componentsin the screen'sTandemView, by callingtandem_show_view.factory -
AgentStep.stateDelta(List<
Map< delta)String, Object?> > -
Changes the agent's state with the JSON Patch operations of
delta, asSTATE_DELTA.constfactory -
AgentStep.stateSnapshot(Map<
String, Object?> snapshot) -
Sends the agent's whole state,
session.agentState, asSTATE_SNAPSHOT.constfactory -
AgentStep.waitFor(Future<
void> signal) -
Waits for
signalbefore the next step, such as to keep a run open in a test.constfactory
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