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.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.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