pub enum ToolExecutorError {
TransportError(String),
Timeout {
tool: String,
timeout_ms: u64,
},
RetryExhausted {
tool: String,
attempts: u32,
last_error: String,
},
ServiceNotConnected(ServiceId),
InvalidResponse(String),
ExecutionFailed {
tool: String,
message: String,
data: Option<Value>,
},
RoutingError(ToolRouterError),
Internal(String),
}Expand description
Error type for tool execution operations
Variants§
TransportError(String)
Transport error during execution
Timeout
Execution timeout
RetryExhausted
Retry exhausted
ServiceNotConnected(ServiceId)
Service not connected
InvalidResponse(String)
Invalid response
ExecutionFailed
Tool execution failed
RoutingError(ToolRouterError)
Routing error
Internal(String)
Internal error
Trait Implementations§
Source§impl Debug for ToolExecutorError
impl Debug for ToolExecutorError
Source§impl Display for ToolExecutorError
impl Display for ToolExecutorError
Source§impl Error for ToolExecutorError
impl Error for ToolExecutorError
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 From<ToolRouterError> for ToolExecutorError
impl From<ToolRouterError> for ToolExecutorError
Source§fn from(source: ToolRouterError) -> Self
fn from(source: ToolRouterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToolExecutorError
impl RefUnwindSafe for ToolExecutorError
impl Send for ToolExecutorError
impl Sync for ToolExecutorError
impl Unpin for ToolExecutorError
impl UnsafeUnpin for ToolExecutorError
impl UnwindSafe for ToolExecutorError
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