OpenAIResponseToolCall class
This represents the tool call of the OpenAIChatCompletionChoiceMessageModel model of the OpenAI API, which is used and get returned while using the OpenAIChat
methods.
- Implementers
Constructors
- OpenAIResponseToolCall({required String? id, required String? type, required OpenAIResponseFunction function})
-
This represents the tool call of the OpenAIChatCompletionChoiceMessageModel model of the OpenAI API, which is used and get returned while using the
OpenAIChat
methods. -
OpenAIResponseToolCall.fromMap(Map<
String, dynamic> map) -
This is used to convert a Map<String, dynamic> object to a OpenAIResponseToolCall object.
factory
Properties
- function → OpenAIResponseFunction
-
The function of the tool call.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- haveId → bool
-
Weither the tool call have an id.
no setter
- haveType → bool
-
Weither the tool call have a type.
no setter
- id → String?
-
The id of the tool call.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String?
-
The type of the tool call.
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 OpenAIResponseToolCall to a Map<String, dynamic> object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant OpenAIResponseToolCall other) → bool -
The equality operator.
override