NoSuchToolError class

The model called a tool that is not in the supplied tool set.

Inheritance

Constructors

NoSuchToolError(String message, {int status = -1, int retryMs = -1, bool retryable = false, String toolName = '', List<String>? availableTools})

Properties

availableTools → List<String>?
The available tool names, or null when no tool set was supplied.
final
code → int
Machine-readable error code (AimuxErrorCode constants).
finalinherited
codeName → String
Core error_type() name for code.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String
Human-readable failure text.
finalinherited
retryable → bool
Whether retrying may help — the AiMuxError verdict, carried across the C ABI. Not derivable from status: a transport failure (request went out, connection reset) and a missing API key (request never went out) both report status == -1 and disagree here.
finalinherited
retryMs → int
Rate-limit hint in ms; -1 if none; 0 means retry immediately.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int
HTTP status when known; otherwise -1.
finalinherited
toolName → String
The tool name the model called.
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