ToolCall class

A tool call requested by the model. Mirrors ToolCall.ts.

Annotations
  • @JsonSerializable.new()

Constructors

ToolCall({required String toolCallId, required String toolName, required dynamic input, bool? providerExecuted, bool? isDynamic, String? thoughtSignature, dynamic providerMetadata, bool? invalid, dynamic error})
ToolCall.fromJson(Map<String, dynamic> json)
factory

Properties

error → dynamic
The typed lookup, parse, schema, or repair failure for an invalid call.
final
hashCode → int
The hash code for this object.
no setterinherited
input → dynamic
final
invalid → bool?
Set by Core when the tool call stays invalid after optional repair.
final
isDynamic → bool?
final
providerExecuted → bool?
final
providerMetadata → dynamic
Additional provider-specific metadata associated with this call.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thoughtSignature → String?
final
toolCallId → String
final
toolName → String
final

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