ToolExecutionResult class final

Final or partial result produced by a tool execution.

Ported subset of pi's AgentToolResult: content is what goes back to the model; details/addedToolNames arrive with the tool registry.

Constructors

ToolExecutionResult({required List<ContentBlock> content, bool terminate = false})
const
ToolExecutionResult.text(String text, {bool terminate = false})
Convenience constructor for a plain-text result.
factory

Properties

content → List<ContentBlock>
Text or image content returned to the model.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
terminate → bool
Hint that the agent should stop after the current tool batch. Early termination only happens when every finalized tool result in the batch sets this to true (pi semantics).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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