AIChatMessageToolCall class

A tool that the model wants to call.

Annotations
  • @immutable

Constructors

AIChatMessageToolCall({required String id, required String name, required String argumentsRaw, required Map<String, dynamic> arguments})
A tool that the model wants to call.
const

Properties

arguments Map<String, dynamic>
The arguments to pass to the tool in JSON Map format.
final
argumentsRaw String
The raw arguments JSON string (needed to parse streaming responses).
final
hashCode int
The hash code for this object.
no setteroverride
id String
The id of the tool to call.
final
name String
The name of the tool to call.
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
toMap() Map<String, dynamic>
Converts the AIChatMessageToolCall to a Map.
toString() String
A string representation of this object.
override

Operators

operator ==(covariant AIChatMessageToolCall other) bool
The equality operator.
override