OpenAIToolModel class
This class is used to represent an OpenAI tool.
- Annotations
-
- @immutable
Constructors
- OpenAIToolModel({required String type, required OpenAIFunctionModel function})
-
This class is used to represent an OpenAI tool.
const
-
OpenAIToolModel.fromMap(Map<
String, dynamic> map) -
This method is used to convert a Map<String, dynamic> object to a OpenAIToolModel object.
factory
Properties
- function → OpenAIFunctionModel
-
The function of the tool.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The type of the tool.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - This method is used to convert a OpenAIToolModel object to a Map<String, dynamic> object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant OpenAIToolModel other) → bool -
The equality operator.
override