pub enum RunStartAction {
Continue,
Rewrite(Message),
Stop(String),
}Expand description
Action for the pre-run RunStart event.
Variants§
Continue
Start the run with the current prompt.
Rewrite(Message)
Replace the prompt and pass it to later hooks.
Stop(String)
Stop the run before any model call, with a reason.
Implementations§
Trait Implementations§
Source§impl Clone for RunStartAction
impl Clone for RunStartAction
Source§impl Debug for RunStartAction
impl Debug for RunStartAction
Source§impl PartialEq for RunStartAction
impl PartialEq for RunStartAction
impl StructuralPartialEq for RunStartAction
Auto Trait Implementations§
impl Freeze for RunStartAction
impl RefUnwindSafe for RunStartAction
impl Send for RunStartAction
impl Sync for RunStartAction
impl Unpin for RunStartAction
impl UnsafeUnpin for RunStartAction
impl UnwindSafe for RunStartAction
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