pub struct RouterIdentity {
pub id: String,
pub origin: String,
pub service_kind: String,
pub legacy_inline: bool,
pub provider: String,
pub model: String,
pub endpoint: Option<EndpointIdentity>,
pub call: Option<RouterCallDisclosure>,
}Expand description
The exact identity of the Reasoning Router service that decided a tier.
A receipt carries this so “who chose this tier, and what did that cost”
is answerable without re-reading any file. It is explicitly labelled as a
service, not a Fleet member: service_kind is always
REASONING_ROUTER_SERVICE_KIND and dispatchable is always false.
Fields§
§id: StringThe Router’s id: a saved profile name, or a legacy inline member id.
origin: StringOrigin the definition came from, or legacy_inline.
service_kind: StringAlways reasoning_router. Present so a receipt states what kind of
thing chose the tier rather than leaving a reader to infer it.
legacy_inline: boolTrue when this Router was written inline in the Fleet file.
provider: StringThe Router’s exact configured provider id.
model: StringThe Router’s canonical wire model.
endpoint: Option<EndpointIdentity>Where the Router’s own request goes.
call: Option<RouterCallDisclosure>What the Router’s own call was configured to, and actually ran at.
Implementations§
Source§impl RouterIdentity
impl RouterIdentity
Sourcepub fn from_captured(
captured: &CapturedReasoningRouter,
route: Option<&PreflightedRoute>,
call: Option<RouterCallDisclosure>,
) -> Self
pub fn from_captured( captured: &CapturedReasoningRouter, route: Option<&PreflightedRoute>, call: Option<RouterCallDisclosure>, ) -> Self
Build an identity from the captured service and its preflighted route.
Trait Implementations§
Source§impl Clone for RouterIdentity
impl Clone for RouterIdentity
Source§fn clone(&self) -> RouterIdentity
fn clone(&self) -> RouterIdentity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more