ToolResponseResult<Output> class final

A normal tool response carrying structured output and optional multipart parts and metadata.

Inheritance

Constructors

ToolResponseResult(Output output, {List<Part>? parts, Map<String, dynamic>? metadata})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasInterrupt → bool
Whether this is a ToolInterruptResult that halted the generation loop.
no setterinherited
hasResponse → bool
Whether this is a normal ToolResponseResult carrying structured output.
no setterinherited
interruptData → Object?
The interrupt data payload of an interrupt result.
no setterinherited
metadata → Map<String, dynamic>?
Optional metadata attached to the resulting tool response part.
final
output → Output
The structured output of the tool.
final
parts → List<Part>?
Optional multipart content (images, media, etc.) returned alongside the structured output.
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
toJson() → Map<String, dynamic>
Serializes this result to the multipart tool.v2 shape ({output, content?, metadata?} or {interrupt}). Used at the reflection boundary so the Dev UI can render tool results.
override
toString() → String
A string representation of this object.
inherited

Operators

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