Skip to main content

FleetResolvedRoute

Struct FleetResolvedRoute 

Source
pub struct FleetResolvedRoute {
Show 16 fields pub provider_id: String, pub provider_exact_id: Option<String>, pub provider_kind: String, pub canonical_model: Option<String>, pub wire_model_id: String, pub protocol: String, pub role: Option<String>, pub loadout: Option<String>, pub model_class: Option<String>, pub model_route: Option<String>, pub reasoning_effort: Option<String>, pub role_source: Option<String>, pub loadout_source: Option<String>, pub model_class_source: Option<String>, pub model_source: Option<String>, pub source: String,
}
Expand description

Resolved-route detail persisted on a FleetReceipt (#3154).

This is an additive, plain-strings snapshot of the route a fleet worker resolved to. It deliberately does NOT depend on any codewhale-config route type so the protocol crate stays free of the route model.

CRITICAL no-secrets invariant: this struct carries ONLY non-sensitive route shape — provider id/kind, model ids, wire protocol, role/loadout/model-class intent, reasoning tier when known, and deterministic intent sources. It must NEVER hold a credential, API key, bearer token, or a base URL that embeds credentials. There is intentionally no field that could carry a secret.

Fields§

§provider_id: String

Resolved provider canonical id (e.g. "deepseek").

§provider_exact_id: Option<String>

Exact configured provider-table id when the worker used one.

This is intentionally additive to provider_id: literal [providers.custom] resolves to Some("custom"), while the legacy idless root custom route resolves to None. Keeping the distinction prevents a receipt from silently collapsing two different credential and endpoint authorities into the same generic custom label.

§provider_kind: String

Resolved provider kind (e.g. "deepseek").

§canonical_model: Option<String>

Canonical, provider-agnostic model identity, when known.

§wire_model_id: String

Provider-owned wire model id placed on the request.

§protocol: String

Selected wire protocol (e.g. "chat_completions").

§role: Option<String>

Effective Fleet role intent, when one applied.

§loadout: Option<String>

Effective Fleet loadout intent, when one applied.

§model_class: Option<String>

Original task-level model-class intent, when authored separately from loadout. Profile model_class_hint is normalized into loadout.

§model_route: Option<String>

Runtime model-route seam used by sub-agent routing (inherit, faster, auto, or fixed).

§reasoning_effort: Option<String>

Concrete reasoning tier, when it is known by the route resolver path.

§role_source: Option<String>

Deterministic source for the effective role intent.

§loadout_source: Option<String>

Deterministic source for the effective loadout intent.

§model_class_source: Option<String>

Deterministic source for the model-class hint, when present.

§model_source: Option<String>

Deterministic source for the model selector used by the resolver.

§source: String

How the route was produced (e.g. "resolver").

Trait Implementations§

Source§

impl Clone for FleetResolvedRoute

Source§

fn clone(&self) -> FleetResolvedRoute

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FleetResolvedRoute

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for FleetResolvedRoute

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for FleetResolvedRoute

Source§

impl PartialEq for FleetResolvedRoute

Source§

fn eq(&self, other: &FleetResolvedRoute) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for FleetResolvedRoute

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for FleetResolvedRoute

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.