OpenAIChatCompletionChoiceMessageModel class final
This represents the message of the OpenAIChatCompletionChoiceModel model of the OpenAI API, which is used and get returned while using the OpenAIChat
methods.
Constructors
- OpenAIChatCompletionChoiceMessageModel({required OpenAIChatMessageRole role, required String content})
-
This represents the message of the OpenAIChatCompletionChoiceModel model of the OpenAI API, which is used and get returned while using the
OpenAIChat
methods.const -
OpenAIChatCompletionChoiceMessageModel.fromMap(Map<
String, dynamic> json) -
This is used to convert a Map<String, dynamic> object to a OpenAIChatCompletionChoiceMessageModel object.
factory
Properties
- content → String
-
The content of the message.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- role → OpenAIChatMessageRole
-
The role of the message.
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> - This method used to convert the OpenAIChatCompletionChoiceMessageModel to a Map<String, dynamic> object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override