pub struct DecisionLoopRuntime { /* private fields */ }Expand description
Bridges MCP tool lifecycle events into decision-loop accounting.
Implementations§
Source§impl DecisionLoopRuntime
impl DecisionLoopRuntime
pub fn get_or_init() -> &'static Self
Sourcepub fn profile_for_session(&self, session_id: &str) -> Option<TaskProfileLocal>
pub fn profile_for_session(&self, session_id: &str) -> Option<TaskProfileLocal>
Returns the most recently triaged profile for a session.
pub fn on_tool_start( &self, tool_name: &str, query: Option<&str>, session_id: &str, agent_id: &str, ) -> TaskContext
pub fn on_tool_end( &self, ctx: &TaskContext, input_tokens: u64, output_tokens: u64, model: &str, success: bool, ) -> Option<ValueAssessment>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DecisionLoopRuntime
impl !UnwindSafe for DecisionLoopRuntime
impl Forget for DecisionLoopRuntime
impl Freeze for DecisionLoopRuntimewhere
*const ArcInner<DecisionSpine> is !null: Freeze,
PhantomData<ArcInner<DecisionSpine>>: Freeze,
impl Move for DecisionLoopRuntime
impl Send for DecisionLoopRuntime
impl Sync for DecisionLoopRuntime
impl Unpin for DecisionLoopRuntime
impl UnsafeUnpin for DecisionLoopRuntimewhere
*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
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