pub struct OutcomeSimulationAgent { /* private fields */ }Expand description
Outcome simulation as a Suggestor — participates in the convergence loop.
Reads strategies from ContextKey::Strategies, simulates each, and
proposes constraints for strategies that fail the outcome threshold.
Strategies that pass get an approval fact in ContextKey::Evaluations.
Implementations§
Source§impl OutcomeSimulationAgent
impl OutcomeSimulationAgent
pub fn new(config: OutcomeSimulatorConfig) -> Self
pub fn default_config() -> Self
Trait Implementations§
Source§impl Suggestor for OutcomeSimulationAgent
impl Suggestor for OutcomeSimulationAgent
Source§fn dependencies(&self) -> &[ContextKey]
fn dependencies(&self) -> &[ContextKey]
Context keys this suggestor reads from. Read more
Source§fn accepts(&self, ctx: &dyn Context) -> bool
fn accepts(&self, ctx: &dyn Context) -> bool
Pure predicate: should this suggestor execute given the current context? Read more
Auto Trait Implementations§
impl Freeze for OutcomeSimulationAgent
impl RefUnwindSafe for OutcomeSimulationAgent
impl Send for OutcomeSimulationAgent
impl Sync for OutcomeSimulationAgent
impl Unpin for OutcomeSimulationAgent
impl UnsafeUnpin for OutcomeSimulationAgent
impl UnwindSafe for OutcomeSimulationAgent
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