pub struct SelectorWeights {
pub category_weights: BTreeMap<String, f32>,
pub min_score: f32,
pub diversity_bias: f32,
pub epistemic_weight: f32,
}Expand description
Learned weights that a selector implementation may use.
Callers persist this across sessions.
Fields§
§category_weights: BTreeMap<String, f32>Weight multiplier by input category.
min_score: f32Minimum score threshold (inputs below this are excluded even if budget allows).
diversity_bias: f32Preference for diversity vs. relevance (0.0 = pure relevance, 1.0 = pure diversity).
epistemic_weight: f32Weight for epistemic (uncertainty-reducing) selection.
The effective selection score is pragmatic_score + epistemic_weight * information_gain.
Default 0.0 (pure pragmatic). Higher values prefer candidates that reduce uncertainty.
When 0.0, behavior is identical to ADR-058 (backwards-compatible, ADR-059).
Trait Implementations§
Source§impl Clone for SelectorWeights
impl Clone for SelectorWeights
Source§fn clone(&self) -> SelectorWeights
fn clone(&self) -> SelectorWeights
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SelectorWeights
impl Debug for SelectorWeights
Source§impl Default for SelectorWeights
impl Default for SelectorWeights
Source§fn default() -> SelectorWeights
fn default() -> SelectorWeights
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SelectorWeights
impl<'de> Deserialize<'de> for SelectorWeights
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
Auto Trait Implementations§
impl Freeze for SelectorWeights
impl RefUnwindSafe for SelectorWeights
impl Send for SelectorWeights
impl Sync for SelectorWeights
impl Unpin for SelectorWeights
impl UnsafeUnpin for SelectorWeights
impl UnwindSafe for SelectorWeights
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