NextUserMessage class
Represents the next user message generated by a simulator.
Constructors
- NextUserMessage({required Status status, Content? userMessage, String? errorMessage})
- Creates a next-user-message payload.
-
NextUserMessage.fromJson(Map<
String, Object?> json) -
Decodes a next-user-message payload from JSON.
factory
Properties
- errorMessage → String?
-
Optional error message when message generation did not succeed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → Status
-
Simulator status for this step.
final
- userMessage → Content?
-
User message to feed into the next turn when status is success.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Encodes this payload for persistence or transport.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited