pub struct LlmOptimizationRecorder { /* private fields */ }Expand description
Cloneable capability for adding evidence to the current managed LLM call.
A streaming execution intercept may capture this value before returning its stream and use it when the route is committed by the first upstream item.
Implementations§
Source§impl LlmOptimizationRecorder
impl LlmOptimizationRecorder
Sourcepub fn record(&self, contribution: LlmOptimizationContribution) -> bool
pub fn record(&self, contribution: LlmOptimizationContribution) -> bool
Record one contribution without blocking on I/O or exporter delivery.
Returns false when the contribution is rejected by a payload/schema
invariant, a per-call bound, or because accounting has already closed.
Rejection never affects LLM execution and does not consume a sequence.
Trait Implementations§
Source§impl Clone for LlmOptimizationRecorder
impl Clone for LlmOptimizationRecorder
Source§fn clone(&self) -> LlmOptimizationRecorder
fn clone(&self) -> LlmOptimizationRecorder
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 LlmOptimizationRecorder
impl Debug for LlmOptimizationRecorder
Source§impl Default for LlmOptimizationRecorder
impl Default for LlmOptimizationRecorder
Source§fn default() -> LlmOptimizationRecorder
fn default() -> LlmOptimizationRecorder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LlmOptimizationRecorder
impl RefUnwindSafe for LlmOptimizationRecorder
impl Send for LlmOptimizationRecorder
impl Sync for LlmOptimizationRecorder
impl Unpin for LlmOptimizationRecorder
impl UnsafeUnpin for LlmOptimizationRecorder
impl UnwindSafe for LlmOptimizationRecorder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request