pub enum ToolCallError {
CapabilityDenied(String),
CapabilityExpired,
CapabilityRevoked,
PolicyDenied {
guard: String,
reason: String,
},
ToolServerError(String),
InternalError(String),
}Expand description
Errors that can occur during tool call processing.
Variants§
CapabilityDenied(String)
The capability token was rejected (invalid signature, wrong subject, etc.).
CapabilityExpired
The capability token has expired.
CapabilityRevoked
The capability token has been revoked.
PolicyDenied
A policy guard denied the action.
ToolServerError(String)
The tool server returned an error.
InternalError(String)
An internal error in the Kernel.
Trait Implementations§
Source§impl Clone for ToolCallError
impl Clone for ToolCallError
Source§fn clone(&self) -> ToolCallError
fn clone(&self) -> ToolCallError
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolCallError
impl Debug for ToolCallError
Source§impl<'de> Deserialize<'de> for ToolCallError
impl<'de> Deserialize<'de> for ToolCallError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolCallError
impl PartialEq for ToolCallError
Source§impl Serialize for ToolCallError
impl Serialize for ToolCallError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ToolCallError
impl StructuralPartialEq for ToolCallError
Auto Trait Implementations§
impl Freeze for ToolCallError
impl RefUnwindSafe for ToolCallError
impl Send for ToolCallError
impl Sync for ToolCallError
impl Unpin for ToolCallError
impl UnsafeUnpin for ToolCallError
impl UnwindSafe for ToolCallError
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