#[non_exhaustive]pub enum MutationPoint {
AfterToolResult,
AfterTurnEnded,
}Expand description
Where in the loop a LoopMutator is given a chance to modify the
transcript. Mutators run synchronously at these points; mid-stream
mutation (e.g. between content deltas) is intentionally not supported
because the assistant item is not yet fully constructed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AfterToolResult
A tool result has just been appended; the next loop step will be another inference call.
AfterTurnEnded
A turn has fully ended (assistant final, interrupt, or cancellation) and any new user input has not yet been dispatched.
Trait Implementations§
Source§impl Clone for MutationPoint
impl Clone for MutationPoint
Source§fn clone(&self) -> MutationPoint
fn clone(&self) -> MutationPoint
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 MutationPoint
impl Debug for MutationPoint
Source§impl<'de> Deserialize<'de> for MutationPoint
impl<'de> Deserialize<'de> for MutationPoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MutationPoint
impl PartialEq for MutationPoint
Source§fn eq(&self, other: &MutationPoint) -> bool
fn eq(&self, other: &MutationPoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MutationPoint
impl Serialize for MutationPoint
impl Copy for MutationPoint
impl Eq for MutationPoint
impl StructuralPartialEq for MutationPoint
Auto Trait Implementations§
impl Freeze for MutationPoint
impl RefUnwindSafe for MutationPoint
impl Send for MutationPoint
impl Sync for MutationPoint
impl Unpin for MutationPoint
impl UnsafeUnpin for MutationPoint
impl UnwindSafe for MutationPoint
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