pub enum ToolExecutionError {
TimedOut,
Cancelled,
UnknownTool(String),
Unavailable(String),
Protocol(String),
}Expand description
Single-call failure inside a source. The executor’s tool adapter
(ToolBridge in causa_runtime) turns every variant into a structured
tool result the model reads; the status mapping lives there, not here.
Variants§
TimedOut
The call may or may not have run server-side — the outcome is unknown, not failed (the executor marks it accordingly).
Cancelled
Cancelled before completion; the outcome is unknown.
UnknownTool(String)
The name is not in this source’s namespace.
Connection failure or server offline (transient).
Protocol(String)
Protocol-level failure (permanent).
Trait Implementations§
Source§impl Clone for ToolExecutionError
impl Clone for ToolExecutionError
Source§fn clone(&self) -> ToolExecutionError
fn clone(&self) -> ToolExecutionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolExecutionError
impl Debug for ToolExecutionError
Source§impl Display for ToolExecutionError
impl Display for ToolExecutionError
impl Eq for ToolExecutionError
Source§impl Error for ToolExecutionError
impl Error for ToolExecutionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ToolExecutionError
impl PartialEq for ToolExecutionError
impl StructuralPartialEq for ToolExecutionError
Auto Trait Implementations§
impl Freeze for ToolExecutionError
impl RefUnwindSafe for ToolExecutionError
impl Send for ToolExecutionError
impl Sync for ToolExecutionError
impl Unpin for ToolExecutionError
impl UnsafeUnpin for ToolExecutionError
impl UnwindSafe for ToolExecutionError
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
Mutably borrows from an owned value. Read more