OpenAIStreamChatCompletionChoiceDeltaModel class final
Constructors
-
OpenAIStreamChatCompletionChoiceDeltaModel({required OpenAIChatMessageRole? role, required List<
OpenAIChatCompletionChoiceMessageContentItemModel> ? content, List<OpenAIResponseToolCall> ? toolCalls}) -
This represents the message of the OpenAIChatCompletionChoiceModel model of the OpenAI API, which is used and get returned while using the
OpenAIChat
methods.const -
OpenAIStreamChatCompletionChoiceDeltaModel.fromMap(Map<
String, dynamic> json) -
This is used to convert a Map<String, dynamic> object to a OpenAIChatCompletionChoiceMessageModel object.
factory
Properties
-
content
→ List<
OpenAIChatCompletionChoiceMessageContentItemModel> ? -
The content of the message.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- haveContent → bool
-
Weither the message have a content or not.
no setter
- haveRole → bool
-
Weither the message have a role or not.
no setter
- haveToolCalls → bool
-
Weither the message have a role or not.
no setter
- role → OpenAIChatMessageRole?
-
The role of the message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toolCalls
→ List<
OpenAIResponseToolCall> ? -
The toolCalls of the message.
final
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