pub enum AgentToolFailureMode {
ReturnErrorObject,
Propagate,
}Expand description
Controls how an AgentTool reports delegated execution failures.
Variants§
ReturnErrorObject
Return the legacy JSON error object as a successful tool result.
Propagate
Propagate the failure through the tool’s Result.
Trait Implementations§
Source§impl Clone for AgentToolFailureMode
impl Clone for AgentToolFailureMode
Source§fn clone(&self) -> AgentToolFailureMode
fn clone(&self) -> AgentToolFailureMode
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 moreimpl Copy for AgentToolFailureMode
Source§impl Debug for AgentToolFailureMode
impl Debug for AgentToolFailureMode
Source§impl Default for AgentToolFailureMode
impl Default for AgentToolFailureMode
Source§fn default() -> AgentToolFailureMode
fn default() -> AgentToolFailureMode
Returns the “default value” for a type. Read more
impl Eq for AgentToolFailureMode
Source§impl PartialEq for AgentToolFailureMode
impl PartialEq for AgentToolFailureMode
impl StructuralPartialEq for AgentToolFailureMode
Auto Trait Implementations§
impl Freeze for AgentToolFailureMode
impl RefUnwindSafe for AgentToolFailureMode
impl Send for AgentToolFailureMode
impl Sync for AgentToolFailureMode
impl Unpin for AgentToolFailureMode
impl UnsafeUnpin for AgentToolFailureMode
impl UnwindSafe for AgentToolFailureMode
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