AIToolCall class

Represents a specific invocation of a tool requested by the AI.

Inheritance

Constructors

AIToolCall({required String id, required String name, required Map<String, dynamic> arguments})
AIToolCall.fromJson(Map<String, dynamic> json)
factory

Properties

arguments Map<String, dynamic>
The JSON-formatted arguments provided by the AI.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this specific tool call (required by OpenAI).
final
name String
The name of the tool to be called.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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