StreamPartToolCall class final

A complete tool call (alternative to the start/delta/end flow).

Inheritance

Constructors

StreamPartToolCall({required String toolCallId, required String toolName, required dynamic input, bool? providerExecuted, bool? isDynamic, String? thoughtSignature, Map<String, dynamic>? providerMetadata, bool? invalid, dynamic error})
StreamPartToolCall.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 → Map<String, dynamic>?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thoughtSignature → String?
final
toolCallId → String
final
toolName → String
final
type → String
The variant tag — the single top-level key on the wire (e.g. 'TextDelta', 'ToolCall', 'ToolResult', 'File', 'Finish', 'Error'). Empty only for a malformed part.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Re-encode to the externally-tagged wire shape ({tag: payload}).
override
toString() → String
A string representation of this object.
inherited

Operators

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