pub struct PreflightedRoute {
pub member_id: String,
pub provider_id: String,
pub provider_kind: String,
pub declared_model: String,
pub wire_model: String,
pub endpoint: EndpointIdentity,
pub credential: CredentialReadiness,
pub capability: ReasoningCapability,
}Expand description
One worker’s route, fully preflighted and frozen.
Constructed once, at Workflow start. A launch reads it; nothing rewrites
it. The wire_model here is the single source of truth for both the
receipt and the child spawn.
Fields§
§member_id: StringThe member this route belongs to.
provider_id: StringExact configured provider key, as the operator named it.
provider_kind: StringProvider kind (zai, openai, deepseek, vllm, …).
declared_model: StringThe model id exactly as saved in the Fleet file.
wire_model: StringThe canonical model string that will be placed on the wire. Receipt and child spawn both use this.
endpoint: EndpointIdentityWhere the request goes.
credential: CredentialReadinessLocally decided readiness. Never a live probe.
capability: ReasoningCapabilityWhat the route can truthfully express about reasoning.
Implementations§
Source§impl PreflightedRoute
impl PreflightedRoute
Sourcepub fn frozen(&self) -> FrozenRoute
pub fn frozen(&self) -> FrozenRoute
The frozen provider/model pair, in canonical wire form.
This is what a receipt records and what a child spawns with — the two cannot disagree because there is only one value.
Sourcepub fn model_canonicalized(&self) -> bool
pub fn model_canonicalized(&self) -> bool
Whether the declared model string differed from the canonical wire form.
Recorded rather than hidden: glm-5 resolving to glm-5-20260101 is a
fact the operator should be able to see on a receipt.
Sourcepub fn require_ready(&self) -> Result<(), PreflightError>
pub fn require_ready(&self) -> Result<(), PreflightError>
Fail if this route is not runnable. Called at Workflow start.
Trait Implementations§
Source§impl Clone for PreflightedRoute
impl Clone for PreflightedRoute
Source§fn clone(&self) -> PreflightedRoute
fn clone(&self) -> PreflightedRoute
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more