pub struct LoadedAccount {
pub display_name: String,
pub provider: Provider,
pub base_url: Option<String>,
pub models: Vec<String>,
pub model_slugs: HashMap<String, String>,
pub model_aliases: HashMap<String, Vec<String>>,
pub env: HashMap<String, String>,
}Expand description
One account as the config load produces it. The gateway’s account state is built from these, and the spawn path stamps the per-account env onto the child from here.
Fields§
§display_name: String§provider: ProviderDeclared backend. Drives the usage probe and the billing shape.
See Provider.
base_url: Option<String>The flat base_url key. None for an Anthropic account: the
gateway constant is its upstream.
models: Vec<String>The canonical model names the account serves. Drives the gateway’s selection walk.
model_slugs: HashMap<String, String>Canonical name -> upstream slug, only where the spellings
differ. Keys are always members of Self::models.
model_aliases: HashMap<String, Vec<String>>Canonical name -> the other names a request may arrive under for
that model. Keys are always members of Self::models.
env: HashMap<String, String>Provider-behaviour extras (timeouts, context caps, fallback switches) plus the derived credential and base-url variable stamps the gateway and the child read.