Skip to main content

Crate evolve_mutators

Crate evolve_mutators 

Source
Expand description

Mutation operators: take an AgentConfig and produce a varied “challenger”.

Each generation, MutatorPicker chooses ONE mutator probabilistically and applies it. The result differs from the parent in exactly one axis.

Structs§

BehavioralRulesMutator
Adds, removes, or rephrases ONE behavioral rule from the curated pool.
LlmRewriteMutator
Asks the LLM to propose a small variation of the system prompt prefix.
ModelPrefMutator
Swaps model preference to a neighboring model within the adapter’s pool.
MutationCtx
Ambient context passed to every mutator invocation.
MutatorPicker
Weighted random selection of a mutator.
ResponseStyleMutator
Cycles response style to a neighbor of the current one.
ToolPermissionsMutator
Toggles one tool permission (add if absent, remove if present).

Enums§

MutationError
Mutator-specific error.

Traits§

Mutator
Takes an AgentConfig, returns a varied challenger.