ChatRole class

Represents the role of a chat message author.

Constructors

ChatRole(String value)
Creates a new ChatRole with the given value.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The role value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

assistant → const ChatRole
The assistant role, used for messages generated by the model.
system → const ChatRole
The system role, used for providing instructions to the model.
tool → const ChatRole
The tool role, used for messages containing tool/function results.
user → const ChatRole
The user role, used for messages sent by the user.