pub struct LearningConfig {Show 21 fields
pub enabled: bool,
pub auto_activate: bool,
pub min_failures: u32,
pub improve_threshold: f64,
pub rollback_threshold: f64,
pub min_evaluations: u32,
pub max_versions: u32,
pub cooldown_minutes: u64,
pub correction_detection: bool,
pub correction_confidence_threshold: f32,
pub detector_mode: DetectorMode,
pub judge_model: String,
pub feedback_provider: String,
pub judge_adaptive_low: f32,
pub judge_adaptive_high: f32,
pub correction_recall_limit: u32,
pub correction_min_similarity: f32,
pub auto_promote_min_uses: u32,
pub auto_promote_threshold: f64,
pub auto_demote_min_uses: u32,
pub auto_demote_threshold: f64,
}Fields§
§enabled: bool§auto_activate: bool§min_failures: u32§improve_threshold: f64§rollback_threshold: f64§min_evaluations: u32§max_versions: u32§cooldown_minutes: u64§correction_detection: bool§correction_confidence_threshold: f32§detector_mode: DetectorModeDetector strategy: “regex” (default) or “judge”.
judge_model: StringModel for the judge detector (e.g. “claude-sonnet-4-6”). Empty = use primary provider.
feedback_provider: StringProvider name from [[llm.providers]] for detector_mode = "model" (LlmClassifier).
Empty = use the primary provider. Named but not found in registry = log warning, degrade to regex-only. Never fails startup.
judge_adaptive_low: f32Regex confidence below this value is treated as “not a correction” — judge not invoked.
judge_adaptive_high: f32Regex confidence at or above this value is accepted without judge confirmation.
correction_recall_limit: u32§correction_min_similarity: f32§auto_promote_min_uses: u32§auto_promote_threshold: f64§auto_demote_min_uses: u32§auto_demote_threshold: f64Trait Implementations§
Source§impl Clone for LearningConfig
impl Clone for LearningConfig
Source§fn clone(&self) -> LearningConfig
fn clone(&self) -> LearningConfig
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 LearningConfig
impl Debug for LearningConfig
Source§impl Default for LearningConfig
impl Default for LearningConfig
Source§fn default() -> LearningConfig
fn default() -> LearningConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LearningConfig
impl<'de> Deserialize<'de> for LearningConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LearningConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LearningConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LearningConfig
impl Serialize for LearningConfig
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,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for LearningConfig
impl RefUnwindSafe for LearningConfig
impl Send for LearningConfig
impl Sync for LearningConfig
impl Unpin for LearningConfig
impl UnsafeUnpin for LearningConfig
impl UnwindSafe for LearningConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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>
Wrap the input message
T in a tonic::Request