RequestFunctionMessage class base

This represents the message of the RequestFunctionMessage model of the OpenAI API, which is used while using the OpenAIChat methods, precisely to send a response function message as a request function message for next requests.

Inheritance

Constructors

RequestFunctionMessage({required OpenAIChatMessageRole role, required List<OpenAIChatCompletionChoiceMessageContentItemModel>? content, required String toolCallId})
This represents the message of the RequestFunctionMessage model of the OpenAI API, which is used while using the OpenAIChat methods, precisely to send a response function message as a request function message for next requests.

Properties

content List<OpenAIChatCompletionChoiceMessageContentItemModel>?
The content of the message.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
haveContent bool
Weither the message have content.
no setterinherited
haveToolCalls bool
Weither the message have tool calls.
no setterinherited
name String?
The message participent name.
finalinherited
role OpenAIChatMessageRole
The role of the message.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toolCallId String
The toolCallId of the message.
final
toolCalls List<OpenAIResponseToolCall>?
The function that the model is requesting to call.
finalinherited

Methods

asRequestFunctionMessage({required String toolCallId}) RequestFunctionMessage
Converts a response function message to a request function message, so that it can be used in the next request.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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