pub enum ToolErrorAction {
Stop,
Retry,
}Expand description
Action taken by the runtime after a tool execution failure
Variants§
Stop
Stop the current run with a failed outcome
Retry
Feed the error back to the LLM and continue reasoning
Trait Implementations§
Source§impl Clone for ToolErrorAction
impl Clone for ToolErrorAction
Source§fn clone(&self) -> ToolErrorAction
fn clone(&self) -> ToolErrorAction
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 ToolErrorAction
impl Debug for ToolErrorAction
Source§impl PartialEq for ToolErrorAction
impl PartialEq for ToolErrorAction
Source§fn eq(&self, other: &ToolErrorAction) -> bool
fn eq(&self, other: &ToolErrorAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ToolErrorAction
impl StructuralPartialEq for ToolErrorAction
Auto Trait Implementations§
impl Freeze for ToolErrorAction
impl RefUnwindSafe for ToolErrorAction
impl Send for ToolErrorAction
impl Sync for ToolErrorAction
impl Unpin for ToolErrorAction
impl UnsafeUnpin for ToolErrorAction
impl UnwindSafe for ToolErrorAction
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.