pub struct SessionModelListResult {
pub list: Vec<Value>,
pub model_price_categories: Option<Vec<SessionModelPriceCategory>>,
pub providers: Option<Vec<ModelProviderDescriptor>>,
pub quota_snapshots: Option<HashMap<String, Value>>,
}Expand description
The list of models available to this session.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§list: Vec<Value>Available models, ordered with the most preferred default first. Includes both Copilot (CAPI) models and any registry BYOK models; a BYOK model appears under its provider-qualified selection id (provider/id).
model_price_categories: Option<Vec<SessionModelPriceCategory>>Cost categories for the full CAPI catalog, including picker-disabled models that Auto may select. Metadata only; entries absent from list are not manually selectable.
providers: Option<Vec<ModelProviderDescriptor>>The model providers available to this session, in ordering order, resolved from the account roster; empty when no provider is entitled (logged out / seatless). Each model in list carries its own provider reference; this roster gives the deterministic provider sequence and lets a consumer group by provider without deriving ordering from the model list. Central code never branches on a provider kind.
quota_snapshots: Option<HashMap<String, Value>>Per-quota snapshots returned alongside the model list, keyed by quota type.