pub struct TrajectorySignalWeights {
pub policy_violation: f64,
pub prompt_injection: f64,
pub tool_chain_anomaly: f64,
pub confidence_drop: f64,
}Expand description
Per-signal-type base weights for the trajectory risk accumulator.
Each weight is in (0.0, 1.0] and is multiplied by the severity multiplier
before being added to trajectory_risk.
§Example (TOML)
[memory.shadow_memory.signal_weights]
prompt_injection = 0.6Fields§
§policy_violation: f64Weight for PolicyViolation signals. Default: 0.30.
prompt_injection: f64Weight for PromptInjectionPattern signals. Default: 0.50.
tool_chain_anomaly: f64Weight for ToolChainAnomaly signals. Default: 0.25.
confidence_drop: f64Weight for ConfidenceDrop signals. Default: 0.15.
Trait Implementations§
Source§impl Clone for TrajectorySignalWeights
impl Clone for TrajectorySignalWeights
Source§fn clone(&self) -> TrajectorySignalWeights
fn clone(&self) -> TrajectorySignalWeights
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 TrajectorySignalWeights
impl Debug for TrajectorySignalWeights
Source§impl Default for TrajectorySignalWeights
impl Default for TrajectorySignalWeights
Source§impl<'de> Deserialize<'de> for TrajectorySignalWeights
impl<'de> Deserialize<'de> for TrajectorySignalWeights
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 TrajectorySignalWeights
impl RefUnwindSafe for TrajectorySignalWeights
impl Send for TrajectorySignalWeights
impl Sync for TrajectorySignalWeights
impl Unpin for TrajectorySignalWeights
impl UnsafeUnpin for TrajectorySignalWeights
impl UnwindSafe for TrajectorySignalWeights
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