#[non_exhaustive]pub enum ToolInvocationError {
NotFound(String),
ArgumentInvalid(String),
ExecutionFailed(String),
Unavailable(String),
Denied(String),
}Expand description
Failure modes the child can surface from a tool.invoke
handler. Each variant maps onto the -33401..-33405 JSON-RPC
error band the host’s RemoteToolHandler decodes (see
nexo_core::agent::tool_remote::parse_tool_error_string).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotFound(String)
-33401 — tool name not advertised by this plugin.
Surfaces when the host dispatched a tool the manifest
allows but the runtime handler doesn’t recognise.
ArgumentInvalid(String)
-33402 — args failed handler-side validation. The host
already ran JSON-Schema validation; this branch covers
semantic checks the schema can’t express.
ExecutionFailed(String)
-33403 — handler ran but failed (network blip, browser
crash, downstream API 5xx). LLM sees a soft failure and
can route around.
-33404 — tool exists but cannot run right now (e.g.,
missing binary on disk, dependency offline).
Denied(String)
-33405 — tool exists but the caller is not authorised.
Reserved for future capability-aware ACLs (81.28.b).
Implementations§
Trait Implementations§
Source§impl Debug for ToolInvocationError
impl Debug for ToolInvocationError
Source§impl Display for ToolInvocationError
impl Display for ToolInvocationError
Source§impl Error for ToolInvocationError
impl Error for ToolInvocationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ToolInvocationError
impl RefUnwindSafe for ToolInvocationError
impl Send for ToolInvocationError
impl Sync for ToolInvocationError
impl Unpin for ToolInvocationError
impl UnsafeUnpin for ToolInvocationError
impl UnwindSafe for ToolInvocationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.