pub enum ToolCallError {
Failed {
message: String,
},
Denied {
message: String,
},
TimedOut,
QuotaExceeded {
message: String,
},
Cancelled,
}Expand description
Why the harness did not return a value. Each maps to a catchable guest error,
except ToolCallError::Cancelled, which ends the run.
Variants§
Failed
The tool ran and failed. Thrown as Error(message).
Denied
The harness, or a person it asked, refused the call. Thrown as
PermissionDeniedError, reported with source harness.
TimedOut
The harness did not answer in time. Thrown as TimeoutError.
QuotaExceeded
The embedder could not hold another waiting call. Thrown as
QuotaExceededError.
Cancelled
The wait was abandoned, as when the session ends. The run ends with it.
Trait Implementations§
Source§impl Clone for ToolCallError
impl Clone for ToolCallError
Source§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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolCallError
Source§impl PartialEq for ToolCallError
impl PartialEq for ToolCallError
Source§impl Serialize for ToolCallError
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.