ToolCall class

Tool call information per latest ACP specification.

Constructors

ToolCall({required String toolCallId, required ToolCallStatus status, String? title, ToolKind? kind, List? content, List<ToolCallLocation>? locations, dynamic rawInput, dynamic rawOutput})
Creates a tool call.
const
ToolCall.fromJson(Map<String, dynamic> json)
Create from JSON.
factory

Properties

content → List?
Content produced by the tool call.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → ToolKind?
Category of tool being invoked.
final
locations → List<ToolCallLocation>?
File locations affected by this tool call.
final
rawInput → dynamic
Raw input parameters sent to the tool.
final
rawOutput → dynamic
Raw output returned by the tool.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → ToolCallStatus
Current status of the tool call.
final
title → String?
Human‑readable title describing what the tool is doing.
final
toolCallId → String
Unique identifier for this tool call within the session.
final

Methods

merge(Map<String, dynamic> update) → ToolCall
Merge fields from an update into this tool call. Only non-null fields from the update will override existing values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert to JSON.
toString() → String
A string representation of this object.
inherited

Operators

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