AgentStep class sealed

One step of an AgentScript.

Constructors

AgentStep.absorbFollowup()
The runtime absorbed the follow-up: followups/<id>/state absorbed.
const
factory
AgentStep.awaitFollowup()
Waits until the triggering person sent a follow-up into the thread.
const
factory
AgentStep.awaitInteraction()
Waits until a component of the last card of the run was used (an interaction).
const
factory
AgentStep.card(String text, List<JsonMap> components)
The agent posts a card with text and components bound to the run (09 11; M4-21); see FakeAgentInterface.postCard for the component maps.
const
factory
AgentStep.deliverFollowup()
The follow-up reached the runtime: followups/<id>/state delivered and trigger_state followup_delivered on the follow-up message.
const
factory
AgentStep.finish({String state})
The run ends with state (completed, failed) and trigger_state done or failed.
const
factory
AgentStep.patch(List<JsonMap> ops)
The adapter patches the run document with ops (run.update, 04 11.2).
const
factory
AgentStep.queue()
The agent took the invocation: trigger_state queued (04 16.5).
const
factory
AgentStep.reply(String text)
The agent posts text into the thread (origin agent).
const
factory
AgentStep.start()
The run starts: run.state_changed running and trigger_state working.
const
factory
AgentStep.until(Future<void> gate())
Waits until gate completes: a test holds the run at a state it wants to observe.
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