ToolResult class

What a tool returned, on its way back to the model.

Constructors

ToolResult({required String id, required String content, bool isError = false})
Creates a result.
const

Properties

content → String
Text the model will read.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The ToolCall.id this answers.
final
isError → bool
Whether the tool failed. The model is told, so it can adapt.
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
toString() → String
A string representation of this object.
inherited

Operators

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