pub struct DeliberationEngine {
pub target_confidence: f32,
pub max_rounds: usize,
pub alpha: f32,
}Expand description
Multi-round evidence accumulation engine.
Models how an AI agent should reason under uncertainty: instead of forcing a binary guess from thin evidence, hold at State 0 and keep gathering signals until the confidence threshold is crossed or rounds run out.
Each round adds new evidence (a slice of f32 signals). The engine uses an exponential moving average so recent evidence weighs more than stale data.
Fields§
§target_confidence: f32Confidence required to declare convergence (0.0–1.0).
max_rounds: usizeMaximum rounds before returning with whatever confidence was reached.
alpha: f32Recency weight (0 < α ≤ 1). Lower α = more memory of past rounds.
Implementations§
Source§impl DeliberationEngine
impl DeliberationEngine
Auto Trait Implementations§
impl Freeze for DeliberationEngine
impl RefUnwindSafe for DeliberationEngine
impl Send for DeliberationEngine
impl Sync for DeliberationEngine
impl Unpin for DeliberationEngine
impl UnsafeUnpin for DeliberationEngine
impl UnwindSafe for DeliberationEngine
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> 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