pub struct SkillConfig {Show 13 fields
pub min_observations: u32,
pub max_skills: usize,
pub max_steps_per_skill: usize,
pub min_offer_confidence: f64,
pub promotion_confidence: f64,
pub promotion_min_observations: u32,
pub promotion_min_success_rate: f64,
pub candidate_ttl_secs: f64,
pub stale_threshold_secs: f64,
pub max_sequence_gap_ms: u64,
pub auto_deprecate: bool,
pub auto_deprecate_threshold: f64,
pub auto_deprecate_min_offers: u32,
}Expand description
Configuration for the skill acquisition engine.
Fields§
§min_observations: u32Minimum times a sequence must be observed to become a candidate.
max_skills: usizeMaximum number of learned skills to retain.
max_steps_per_skill: usizeMaximum steps in a single skill (prevents overly long chains).
min_offer_confidence: f64Minimum confidence to offer a skill proactively.
promotion_confidence: f64Minimum confidence and observations for ActionSchema promotion.
promotion_min_observations: u32Minimum observations for promotion.
promotion_min_success_rate: f64Minimum success rate for promotion.
candidate_ttl_secs: f64Age in seconds after which an unused candidate is pruned.
stale_threshold_secs: f64Age in seconds after which an unused validated skill becomes stale.
max_sequence_gap_ms: u64Maximum gap between events to consider them part of the same sequence (ms).
auto_deprecate: boolWhether to auto-deprecate skills with very low acceptance rates.
auto_deprecate_threshold: f64Acceptance rate below which auto-deprecation triggers.
auto_deprecate_min_offers: u32Minimum offers before auto-deprecation can trigger.
Trait Implementations§
Source§impl Clone for SkillConfig
impl Clone for SkillConfig
Source§fn clone(&self) -> SkillConfig
fn clone(&self) -> SkillConfig
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 SkillConfig
impl Debug for SkillConfig
Source§impl Default for SkillConfig
impl Default for SkillConfig
Source§impl<'de> Deserialize<'de> for SkillConfig
impl<'de> Deserialize<'de> for SkillConfig
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>,
Auto Trait Implementations§
impl Freeze for SkillConfig
impl RefUnwindSafe for SkillConfig
impl Send for SkillConfig
impl Sync for SkillConfig
impl Unpin for SkillConfig
impl UnsafeUnpin for SkillConfig
impl UnwindSafe for SkillConfig
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 more