pub enum BeforeModelResult {
Continue(LlmRequest),
Skip(LlmResponse),
}Expand description
Result from a BeforeModel callback
Variants§
Continue(LlmRequest)
Continue with the (possibly modified) request
Skip(LlmResponse)
Skip the model call and use this response instead
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BeforeModelResult
impl RefUnwindSafe for BeforeModelResult
impl Send for BeforeModelResult
impl Sync for BeforeModelResult
impl Unpin for BeforeModelResult
impl UnwindSafe for BeforeModelResult
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