pub enum RunObservation {
Outcome(OutcomeMetadata),
LlmCall(ModelCallObservation),
DecisionCall(ModelCallObservation),
AnswerCall(ModelCallObservation),
RoutingOverhead(Duration),
}Expand description
Events emitted inline while crate::run() serves a routing request.
Variants§
Outcome(OutcomeMetadata)
Metadata attached to the completed routing outcome.
LlmCall(ModelCallObservation)
A completed model call requested by the algorithm for routing work.
DecisionCall(ModelCallObservation)
A completed decision call requested by the algorithm for routing work.
AnswerCall(ModelCallObservation)
A completed terminal model call made from the routing outcome.
RoutingOverhead(Duration)
Routing time recorded by the switchyard.routing_overhead_ms metric.
Trait Implementations§
Source§impl Clone for RunObservation
impl Clone for RunObservation
Source§fn clone(&self) -> RunObservation
fn clone(&self) -> RunObservation
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 moreAuto Trait Implementations§
impl Freeze for RunObservation
impl RefUnwindSafe for RunObservation
impl Send for RunObservation
impl Sync for RunObservation
impl Unpin for RunObservation
impl UnsafeUnpin for RunObservation
impl UnwindSafe for RunObservation
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