pub struct ExperimentConfig {
pub enabled: bool,
pub eval_provider: ProviderName,
pub benchmark_file: Option<PathBuf>,
pub max_experiments: u32,
pub max_wall_time_secs: u64,
pub min_improvement: f64,
pub eval_budget_tokens: u64,
pub auto_apply: bool,
pub schedule: ExperimentSchedule,
pub tolerate_subject_errors: bool,
}Expand description
Configuration for the autonomous self-experimentation engine ([experiments] TOML section).
When enabled = true, Zeph periodically runs A/B experiments on its own skill and
prompt configurations to find improvements automatically.
§Example (TOML)
[experiments]
enabled = false
max_experiments = 20
auto_apply = falseFields§
§enabled: boolEnable autonomous self-experimentation. Default: false.
eval_provider: ProviderNameProvider name (from [[llm.providers]]) used as the LLM-as-judge for experiment
evaluation. An empty value falls back to the primary provider. Prefer a capable,
low-self-judge-bias model (e.g. a different provider than the one being evaluated).
benchmark_file: Option<PathBuf>Path to a benchmark JSONL file for evaluating experiments.
max_experiments: u32§max_wall_time_secs: u64§min_improvement: f64§eval_budget_tokens: u64§auto_apply: bool§schedule: ExperimentSchedule§tolerate_subject_errors: boolWhen true, a subject call failure (LLM error or timeout) excludes the case from
scoring instead of aborting the entire evaluation run.
Default: false (preserves existing abort-on-error semantics). Set to true when
running parallel evaluations where a single subject timeout should not discard all
already-billed responses from other in-flight futures — at the cost of producing a
partial result rather than a guaranteed complete evaluation.
Implementations§
Trait Implementations§
Source§impl Clone for ExperimentConfig
impl Clone for ExperimentConfig
Source§fn clone(&self) -> ExperimentConfig
fn clone(&self) -> ExperimentConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExperimentConfig
impl Debug for ExperimentConfig
Source§impl Default for ExperimentConfig
impl Default for ExperimentConfig
Source§fn default() -> ExperimentConfig
fn default() -> ExperimentConfig
Source§impl<'de> Deserialize<'de> for ExperimentConfigwhere
ExperimentConfig: Default,
impl<'de> Deserialize<'de> for ExperimentConfigwhere
ExperimentConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExperimentConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExperimentConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ExperimentConfig
impl Serialize for ExperimentConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for ExperimentConfig
impl RefUnwindSafe for ExperimentConfig
impl Send for ExperimentConfig
impl Sync for ExperimentConfig
impl Unpin for ExperimentConfig
impl UnsafeUnpin for ExperimentConfig
impl UnwindSafe for ExperimentConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request