AgentStep class sealed
One step of an AgentScript.
Constructors
- AgentStep.absorbFollowup()
-
The runtime absorbed the follow-up:
followups/<id>/stateabsorbed.constfactory - AgentStep.awaitFollowup()
-
Waits until the triggering person sent a follow-up into the thread.
constfactory
- AgentStep.awaitInteraction()
-
Waits until a component of the last card of the run was used (an interaction).
constfactory
-
AgentStep.card(String text, List<
JsonMap> components) -
The agent posts a card with
textandcomponentsbound to the run (09 11; M4-21); seeFakeAgentInterface.postCardfor the component maps.constfactory - AgentStep.deliverFollowup()
-
The follow-up reached the runtime:
followups/<id>/statedeliveredandtrigger_statefollowup_deliveredon the follow-up message.constfactory - AgentStep.finish({String state})
-
The run ends with
state(completed,failed) andtrigger_statedoneorfailed.constfactory -
AgentStep.patch(List<
JsonMap> ops) -
The adapter patches the run document with
ops(run.update, 04 11.2).constfactory - AgentStep.queue()
-
The agent took the invocation:
trigger_statequeued(04 16.5).constfactory - AgentStep.reply(String text)
-
The agent posts
textinto the thread (originagent).constfactory - AgentStep.start()
-
The run starts:
run.state_changedrunningandtrigger_stateworking.constfactory -
AgentStep.until(Future<
void> gate()) -
Waits until
gatecompletes: a test holds the run at a state it wants to observe.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