ExampleMessage class
Constructors
-
ExampleMessage({Input<
List< ? chunks, Input<ExampleMessageChunk> ?>String?> ? role}) -
Creates a new ExampleMessage.
chunksContent of the message as a series of chunks.roleThe role within the conversation, e.g., user, agent.const -
ExampleMessage.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
chunks
→ Input<
List< ?ExampleMessageChunk> ?> -
Content of the message as a series of chunks.
Structure is documented below.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
role
→ Input<
String?> ? -
The role within the conversation, e.g., user, agent.
final
- 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
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited