pub struct EmotionalGate { /* private fields */ }Expand description
An epistemic gate that is modulated by the system’s emotional state.
Implementations§
Source§impl EmotionalGate
impl EmotionalGate
pub fn new(config: EmotionalGateConfig) -> Self
pub fn with_default() -> Self
Sourcepub fn evaluate(
&self,
pad: PadState,
evidence_confidence: f64,
counterevidence_confidence: f64,
reasoning_graph: &ReasoningGraph,
narrative_confidence: f64,
) -> (GateDecision, GateConfig)
pub fn evaluate( &self, pad: PadState, evidence_confidence: f64, counterevidence_confidence: f64, reasoning_graph: &ReasoningGraph, narrative_confidence: f64, ) -> (GateDecision, GateConfig)
Evaluate a claim with emotional modulation.
Returns the gate decision and the modulated config that was used, so the caller can see how emotions affected the thresholds.
pub fn config(&self) -> &EmotionalGateConfig
Auto Trait Implementations§
impl Freeze for EmotionalGate
impl RefUnwindSafe for EmotionalGate
impl Send for EmotionalGate
impl Sync for EmotionalGate
impl Unpin for EmotionalGate
impl UnsafeUnpin for EmotionalGate
impl UnwindSafe for EmotionalGate
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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