pub struct ReputationConfig {
pub enabled: bool,
pub decay_factor: f64,
pub weight: f64,
pub min_observations: u64,
pub state_path: Option<String>,
}Expand description
Configuration for Bayesian reputation scoring (RAPS — Reputation-Adjusted Provider Selection).
When enabled, quality outcomes from tool execution shift the routing scores over time, giving an advantage to providers that consistently produce valid tool arguments.
Default: disabled. Set enabled = true to activate.
Fields§
§enabled: boolEnable reputation scoring. Default: false.
decay_factor: f64Session-level decay factor applied on each load. Range: (0.0, 1.0]. Default: 0.95. Lower values make reputation forget faster; 1.0 = no decay.
weight: f64Weight of reputation in routing score blend. Range: [0.0, 1.0]. Default: 0.3.
Warning: values above 0.5 can aggressively suppress low-reputation providers.
At weight = 1.0 with rep_factor = 0.0 (all failures), the routing score
drops to zero — the provider becomes unreachable for that session. Stick to
the default (0.3) unless you intentionally want strong reputation gating.
min_observations: u64Minimum quality observations before reputation influences routing. Default: 5.
state_path: Option<String>Path for persisting reputation state. Defaults to ~/.config/zeph/router_reputation_state.json.
Trait Implementations§
Source§impl Clone for ReputationConfig
impl Clone for ReputationConfig
Source§fn clone(&self) -> ReputationConfig
fn clone(&self) -> ReputationConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more