pub enum CompletionCallAction {
Continue,
Patch(RequestPatch),
Stop(String),
}Expand description
Action for completion-call hooks.
Variants§
Continue
Send the baseline request.
Patch(RequestPatch)
Merge this per-turn patch into the request.
Stop(String)
Stop the run with a reason.
Implementations§
Source§impl CompletionCallAction
impl CompletionCallAction
Sourcepub fn continue_run() -> Self
pub fn continue_run() -> Self
Creates an action that sends the request without adding a patch.
Sourcepub fn patch(patch: RequestPatch) -> Self
pub fn patch(patch: RequestPatch) -> Self
Creates an action that applies a per-turn request patch.
Trait Implementations§
Source§impl Clone for CompletionCallAction
impl Clone for CompletionCallAction
Source§fn clone(&self) -> CompletionCallAction
fn clone(&self) -> CompletionCallAction
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 CompletionCallAction
impl Debug for CompletionCallAction
Source§impl PartialEq for CompletionCallAction
impl PartialEq for CompletionCallAction
impl StructuralPartialEq for CompletionCallAction
Auto Trait Implementations§
impl Freeze for CompletionCallAction
impl RefUnwindSafe for CompletionCallAction
impl Send for CompletionCallAction
impl Sync for CompletionCallAction
impl Unpin for CompletionCallAction
impl UnsafeUnpin for CompletionCallAction
impl UnwindSafe for CompletionCallAction
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