pub struct PreflightedRoute {
pub member_id: String,
pub provider_id: String,
pub provider_config_id: Option<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: StringCanonical runtime provider identity recorded on receipts.
provider_config_id: Option<String>Runtime configuration key used to rebuild this route when compatibility
migration canonicalized Self::provider_id for receipts.
Absent for ordinary routes. The released Ollama Cloud shape is the
current use: a saved ollama route is reported canonically as
ollama-cloud, while client construction must still read the exact
legacy table and credential slot. This value is non-secret.
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 provider_config_id(&self) -> &str
pub fn provider_config_id(&self) -> &str
Provider key the host must scope when rebuilding this frozen route.
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 the provider identity the child
ultimately runs. Self::provider_config_id may retain an older
configuration selector solely so rebuilding that identity reads the
correct table and credential slot.
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