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) -> Self
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§impl Debug for DecisionLoop
impl Debug for DecisionLoop
Auto Trait Implementations§
impl !RefUnwindSafe for DecisionLoop
impl !UnwindSafe for DecisionLoop
impl Forget for DecisionLoop
impl Freeze for DecisionLoop
impl Move for DecisionLoop
impl Send for DecisionLoop
impl Sync for DecisionLoop
impl Unpin for DecisionLoop
impl UnsafeUnpin for DecisionLoop
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,
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