pub struct DecisionLoop { /* private fields */ }Expand description
Orchestrates triage, spine, and value gate for a complete task evaluation.
Implementations§
Source§impl DecisionLoop
impl DecisionLoop
pub fn new(triage: TriageEngine, value_gate: ValueGate) -> DecisionLoop
pub fn execute_task( &self, query: &str, session_id: &str, agent_id: &str, ) -> DecisionResult
pub fn complete_task( &self, result: &mut DecisionResult, cost: ExecutionCost, signals: Vec<OutcomeSignal>, )
Sourcepub fn complete_simulated_task(
&self,
result: &mut DecisionResult,
cost: ExecutionCost,
signals: Vec<OutcomeSignal>,
)
pub fn complete_simulated_task( &self, result: &mut DecisionResult, cost: ExecutionCost, signals: Vec<OutcomeSignal>, )
Fixture-only completion: never finalizes the production lifecycle or records value/causal evidence. Its output must be labeled simulated.
pub fn aggregate_cpao(results: &[DecisionResult]) -> Option<u64>
Trait Implementations§
Source§impl Clone for DecisionLoop
impl Clone for DecisionLoop
Source§fn clone(&self) -> DecisionLoop
fn clone(&self) -> DecisionLoop
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 DecisionLoop
impl Debug for DecisionLoop
Source§impl Default for DecisionLoop
impl Default for DecisionLoop
Source§fn default() -> DecisionLoop
fn default() -> DecisionLoop
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DecisionLoop
impl !UnwindSafe for DecisionLoop
impl Forget for DecisionLoop
impl Freeze for DecisionLoopwhere
*const ArcInner<DecisionSpine> is !null: Freeze,
PhantomData<ArcInner<DecisionSpine>>: Freeze,
impl Move for DecisionLoop
impl Send for DecisionLoop
impl Sync for DecisionLoop
impl Unpin for DecisionLoop
impl UnsafeUnpin for DecisionLoopwhere
*const ArcInner<DecisionSpine> is !null: UnsafeUnpin,
PhantomData<ArcInner<DecisionSpine>>: UnsafeUnpin,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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