ToolCall class

One function call the model produced.

Constructors

ToolCall({required String name, required Map<String, dynamic> arguments, String? id})
Creates a call. id is generated when omitted.

Properties

arguments Map<String, dynamic>
The arguments, decoded.
final
argumentsJson String
The arguments as OpenAI carries them — a JSON string, not an object.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
Correlation id, in OpenAI's call_… shape.
final
name String
Which function to run.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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