pub enum CompletionAction {
Continue,
Modify {
messages: Vec<Message>,
},
Reject {
reason: String,
},
}Expand description
Action to take for a completion (LLM call).
Variants§
Continue
Allow the completion to proceed.
Modify
Modify the messages before the LLM call.
Reject
Reject the LLM call entirely.
Trait Implementations§
Source§impl Clone for CompletionAction
impl Clone for CompletionAction
Source§fn clone(&self) -> CompletionAction
fn clone(&self) -> CompletionAction
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 CompletionAction
impl RefUnwindSafe for CompletionAction
impl Send for CompletionAction
impl Sync for CompletionAction
impl Unpin for CompletionAction
impl UnsafeUnpin for CompletionAction
impl UnwindSafe for CompletionAction
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