pub enum FallbackStrategy {
NextBestProvider,
LlmFallback,
Retry {
max_attempts: u32,
},
FailFast,
}Expand description
Fallback strategy when primary provider fails
Variants§
NextBestProvider
Try next best provider from routing
LlmFallback
Fall back to LLM if agent fails
Retry
Retry same provider
FailFast
Fail immediately
Trait Implementations§
Source§impl Clone for FallbackStrategy
impl Clone for FallbackStrategy
Source§fn clone(&self) -> FallbackStrategy
fn clone(&self) -> FallbackStrategy
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 FallbackStrategy
impl Debug for FallbackStrategy
Source§impl Default for FallbackStrategy
impl Default for FallbackStrategy
Source§fn default() -> FallbackStrategy
fn default() -> FallbackStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for FallbackStrategy
impl PartialEq for FallbackStrategy
impl Copy for FallbackStrategy
impl Eq for FallbackStrategy
impl StructuralPartialEq for FallbackStrategy
Auto Trait Implementations§
impl Freeze for FallbackStrategy
impl RefUnwindSafe for FallbackStrategy
impl Send for FallbackStrategy
impl Sync for FallbackStrategy
impl Unpin for FallbackStrategy
impl UnsafeUnpin for FallbackStrategy
impl UnwindSafe for FallbackStrategy
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.