AiToolResult class

The outcome of executing an AiToolCall, fed back to the model.

Constructors

AiToolResult({required String callId, required String name, required String content, bool isError = false})
const

Properties

callId String
The AiToolCall.id this result answers.
final
content String
The textual result content (e.g. command output, or a blocked notice).
final
hashCode int
The hash code for this object.
no setterinherited
isError bool
Whether the result represents an error/refusal.
final
name String
The tool name (some providers require it on the result).
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