ToolResultBlock class final

Mirrors a tool_result content block.

Inheritance

Constructors

ToolResultBlock(Map<String, dynamic> raw)

Properties

content Object?
The result content — either a plain string or a list of nested blocks.
no setter
hashCode int
The hash code for this object.
no setterinherited
isError bool
Whether the tool reported an error (is_error).
no setter
raw Map<String, dynamic>
The full original wire JSON for this block.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toolUseId String
The id of the tool use this result answers (tool_use_id).
no setter
type String
The block type discriminator.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Reproduces the original wire JSON verbatim.
inherited
toString() String
A string representation of this object.
inherited

Operators

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