StaticUserSimulator class

Replays a fixed conversation as simulator output.

Inheritance

Constructors

StaticUserSimulator({required StaticConversation staticConversation})
Creates a simulator that replays staticConversation in order.

Properties

config → BaseUserSimulatorConfig
Typed simulator configuration.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staticConversation → StaticConversation
Ordered scripted user invocations.
final

Methods

getNextUserMessage(List<Event> events) → Future<NextUserMessage>
Returns the next scripted user message, or stop when exhausted.
override
getSimulationEvaluator() → Evaluator?
Returns null because static simulation does not provide extra scoring.
override
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