#[non_exhaustive]pub enum ToolOutcome {
Success,
Blocked {
reason: String,
},
GuardHalt {
reason: String,
},
Timeout,
ToolError {
message: String,
},
}Expand description
Resolved outcome for a single tool call.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Success
Tool ran and returned a non-error result (may be empty).
Blocked
Blocked pre-execution (loop-guard duplicate or approval rejected).
GuardHalt
Loop guard halted the turn during or after execution.
Timeout
Tool process or network timed out.
ToolError
Tool returned a tool-level error (not kernel error).
Trait Implementations§
Source§impl Clone for ToolOutcome
impl Clone for ToolOutcome
Source§fn clone(&self) -> ToolOutcome
fn clone(&self) -> ToolOutcome
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 ToolOutcome
impl Debug for ToolOutcome
Source§impl<'de> Deserialize<'de> for ToolOutcome
impl<'de> Deserialize<'de> for ToolOutcome
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 ToolOutcome
Source§impl PartialEq for ToolOutcome
impl PartialEq for ToolOutcome
Source§fn eq(&self, other: &ToolOutcome) -> bool
fn eq(&self, other: &ToolOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolOutcome
impl Serialize for ToolOutcome
impl StructuralPartialEq for ToolOutcome
Auto Trait Implementations§
impl Freeze for ToolOutcome
impl RefUnwindSafe for ToolOutcome
impl Send for ToolOutcome
impl Sync for ToolOutcome
impl Unpin for ToolOutcome
impl UnsafeUnpin for ToolOutcome
impl UnwindSafe for ToolOutcome
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