ChatRole class
Represents the role of a chat message author.
Properties
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.