pub struct EffectVector {
pub risk: f64,
pub fairness: f64,
pub privacy: f64,
pub novelty: f64,
pub security: f64,
}Expand description
5-dimensional effect vector for scoring agent actions.
Each dimension is scored from 0.0 (no impact) to 1.0 (maximum impact). The magnitude of the vector determines whether an action exceeds the environment’s governance threshold.
Fields§
§risk: f64Risk score: probability of negative outcome.
fairness: f64Fairness score: impact on equitable treatment.
privacy: f64Privacy score: impact on data privacy.
novelty: f64Novelty score: how unprecedented the action is.
security: f64Security score: impact on system security.
Implementations§
Source§impl EffectVector
impl EffectVector
Sourcepub fn any_exceeds(&self, threshold: f64) -> bool
pub fn any_exceeds(&self, threshold: f64) -> bool
Check if any dimension exceeds a threshold.
Sourcepub fn max_dimension(&self) -> f64
pub fn max_dimension(&self) -> f64
Get the maximum dimension value.
Trait Implementations§
Source§impl Clone for EffectVector
impl Clone for EffectVector
Source§fn clone(&self) -> EffectVector
fn clone(&self) -> EffectVector
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 EffectVector
impl Debug for EffectVector
Source§impl Default for EffectVector
impl Default for EffectVector
Source§fn default() -> EffectVector
fn default() -> EffectVector
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EffectVector
impl<'de> Deserialize<'de> for EffectVector
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 EffectVector
impl RefUnwindSafe for EffectVector
impl Send for EffectVector
impl Sync for EffectVector
impl Unpin for EffectVector
impl UnsafeUnpin for EffectVector
impl UnwindSafe for EffectVector
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 more