Error during tool execution.
Raised when a tool function fails during execution.
Summary
Functions
Render any tool failure for the model: a one-line summary for logs and
telemetry, and a response that goes back as the tool result.
Types
@type t() :: %Nous.Errors.ToolError{ __exception__: true, attempt: non_neg_integer() | nil, message: String.t(), original_error: any(), tool_name: String.t() | nil }
Functions
Render any tool failure for the model: a one-line summary for logs and
telemetry, and a response that goes back as the tool result.
A ToolError keeps its structure (attempt count, original cause); any
other exception contributes its message; anything else is inspected.