pub enum StringMutatorKind {
LlmRewrite,
TemplateSlot {
slots: BTreeMap<String, Vec<String>>,
},
}Expand description
How a String-typed field is mutated.
Variants§
LlmRewrite
Use a cheap LLM to rewrite the prompt with small variations.
TemplateSlot
Treat the prompt as a template with named slots; mutation swaps a slot’s value for another from the slot’s pool.
Trait Implementations§
Source§impl Clone for StringMutatorKind
impl Clone for StringMutatorKind
Source§fn clone(&self) -> StringMutatorKind
fn clone(&self) -> StringMutatorKind
Returns a duplicate of the value. Read more
1.0.0 · 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 StringMutatorKind
impl Debug for StringMutatorKind
Source§impl<'de> Deserialize<'de> for StringMutatorKind
impl<'de> Deserialize<'de> for StringMutatorKind
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 StringMutatorKind
impl PartialEq for StringMutatorKind
Source§impl Serialize for StringMutatorKind
impl Serialize for StringMutatorKind
impl StructuralPartialEq for StringMutatorKind
Auto Trait Implementations§
impl Freeze for StringMutatorKind
impl RefUnwindSafe for StringMutatorKind
impl Send for StringMutatorKind
impl Sync for StringMutatorKind
impl Unpin for StringMutatorKind
impl UnsafeUnpin for StringMutatorKind
impl UnwindSafe for StringMutatorKind
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