pub enum ModelRoutingEvent {
CandidatesDiscovered {
model_ids: Vec<String>,
},
CandidateAttemptStarted {
model_id: String,
},
CandidateAttemptFailed {
model_id: String,
category: ModelFailureCategory,
},
Fallback {
from_model_id: String,
to_model_id: String,
category: ModelFailureCategory,
},
ModelSelected {
model_id: String,
},
RoutingFailed {
attempted_candidates: usize,
},
}Expand description
Events emitted while a router evaluates compatible model candidates.
Variants§
CandidatesDiscovered
CandidateAttemptStarted
CandidateAttemptFailed
Fallback
ModelSelected
RoutingFailed
Trait Implementations§
Source§impl Clone for ModelRoutingEvent
impl Clone for ModelRoutingEvent
Auto Trait Implementations§
impl Freeze for ModelRoutingEvent
impl RefUnwindSafe for ModelRoutingEvent
impl Send for ModelRoutingEvent
impl Sync for ModelRoutingEvent
impl Unpin for ModelRoutingEvent
impl UnsafeUnpin for ModelRoutingEvent
impl UnwindSafe for ModelRoutingEvent
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