#[non_exhaustive]pub enum ModelFault {
Pass,
FailOpen(ModelError),
DisconnectAfterEvents(usize),
DisconnectAfterToolCall,
}Expand description
Fault applied to one model invocation.
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.
Pass
Executes the invocation without injection.
FailOpen(ModelError)
Fails before a canonical stream is opened.
DisconnectAfterEvents(usize)
Ends the stream after the specified number of canonical events.
DisconnectAfterToolCall
Ends the stream immediately after the first completed Tool call.
Trait Implementations§
Source§impl Clone for ModelFault
impl Clone for ModelFault
Source§fn clone(&self) -> ModelFault
fn clone(&self) -> ModelFault
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 moreAuto Trait Implementations§
impl Freeze for ModelFault
impl RefUnwindSafe for ModelFault
impl Send for ModelFault
impl Sync for ModelFault
impl Unpin for ModelFault
impl UnsafeUnpin for ModelFault
impl UnwindSafe for ModelFault
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