pub struct RlmSubcallFallback {
pub requested_model: String,
pub fallback_model: String,
pub reason: String,
}Expand description
Emitted when a configured subcall model cannot be resolved and the router falls back to the root model.
This is a cost signal — downstream consumers should log or surface it so the operator knows the subcall tier is misconfigured or unavailable.
§Examples
use codetether_rlm::events::RlmSubcallFallback;
let fb = RlmSubcallFallback {
requested_model: "deepseek-r1".into(),
fallback_model: "gpt-4o".into(),
reason: "model not found in provider registry".into(),
};
assert!(!fb.requested_model.is_empty());Fields§
§requested_model: StringThe model that was requested for the subcall.
fallback_model: StringThe model actually used (typically the root model).
reason: StringWhy the subcall model was unavailable.
Trait Implementations§
Source§impl Clone for RlmSubcallFallback
impl Clone for RlmSubcallFallback
Source§fn clone(&self) -> RlmSubcallFallback
fn clone(&self) -> RlmSubcallFallback
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 RlmSubcallFallback
impl Debug for RlmSubcallFallback
Source§impl<'de> Deserialize<'de> for RlmSubcallFallback
impl<'de> Deserialize<'de> for RlmSubcallFallback
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RlmSubcallFallback
impl RefUnwindSafe for RlmSubcallFallback
impl Send for RlmSubcallFallback
impl Sync for RlmSubcallFallback
impl Unpin for RlmSubcallFallback
impl UnsafeUnpin for RlmSubcallFallback
impl UnwindSafe for RlmSubcallFallback
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