struct

Crig::Tool::ToolExecutionError

Inherits Struct < Value < Object

Constructors

cancelled(message : String) : self
Source
from_error(error : self) : self
Source
from_error(error : Exception) : self
Source
invalid_args(message : String) : self
Source
network(message : String) : self
Source
new(kind : ToolErrorKind, message : String, retryable : Bool | Nil = nil, code : String | Nil = nil, http_status : Int32 | Nil = nil, refusal : Bool = false, model_output : ToolOutput | Nil = nil, source : Exception | Nil = nil)
Source
not_found(message : String) : self
Source
other(message : String) : self
Source
permission_denied(message : String) : self
Source
provider(message : String) : self
Source
rate_limited(message : String) : self
Source
refused(message : String) : self
Source
timeout(message : String) : self
Source

Instance methods

code
Source
http_status
Source
kind
Source
message
Source
model_feedback
Source
model_output
Source
redact_model_feedback
Source
refusal?
Source
retryable
Source
source
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
with_code(code : String) : self
Source
with_http_status(status : Int32) : self
Source
with_model_feedback(feedback : String) : self
Source
with_model_output(output : ToolOutput) : self
Source
with_retryable(retryable : Bool) : self
Source
with_source(source : Exception) : self
Source