pub enum CompletionAction {
Accept,
Reject {
reason: String,
},
}Expand description
What the agent should do with a final text completion.
Variants§
Accept
Accept the completion as-is.
Reject
Reject the completion and retry. The agent appends the rejected assistant message and a correction prompt to history, then continues the loop.
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