pub enum ToolRouterError {
ToolNotFound(String),
ServiceNotRunning {
tool_name: String,
service_id: ServiceId,
status: ServiceStatus,
},
NoServicesRegistered,
RoutingFailed(String),
InvalidParams {
tool: String,
reason: String,
},
Internal(String),
}Expand description
Error type for tool routing operations
Variants§
ToolNotFound(String)
Tool not found in any registered service
ServiceNotRunning
Service that provides the tool is not running
NoServicesRegistered
No services registered
RoutingFailed(String)
Routing failed
InvalidParams
Invalid tool parameters
Internal(String)
Internal error
Trait Implementations§
Source§impl Debug for ToolRouterError
impl Debug for ToolRouterError
Source§impl Display for ToolRouterError
impl Display for ToolRouterError
Source§impl Error for ToolRouterError
impl Error for ToolRouterError
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 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 ToolRouterError
impl RefUnwindSafe for ToolRouterError
impl Send for ToolRouterError
impl Sync for ToolRouterError
impl Unpin for ToolRouterError
impl UnsafeUnpin for ToolRouterError
impl UnwindSafe for ToolRouterError
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