pub struct Model {
pub id: ModelId,
pub provider_id: ProviderId,
pub model_id: String,
pub display_name: String,
pub capabilities: Vec<String>,
pub is_favorite: bool,
pub enabled: bool,
pub source: ModelSource,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
LLM Model entity
Fields§
§id: ModelIdPrefixed public identifier. See ID Schema.
provider_id: ProviderIdOwning provider’s prefixed public identifier.
model_id: StringProvider-side model identifier as sent on the wire (e.g. gpt-4o, claude-sonnet-4).
display_name: StringHuman-readable display name. Safe to render in user-facing messages.
capabilities: Vec<String>Capability tags supported by this model (e.g. chat, tools, vision).
is_favorite: boolWhether this model is starred in the UI for quick access.
enabled: boolWhether this model is selectable. Controls UI visibility AND server-side resolution: ProviderResolverService requires enabled = true, and org default-model validation rejects disabled models. Disabled models stay visible in raw list endpoints (so admins can re-enable them) but cannot be used in active sessions or as a session/agent default.
source: ModelSourceHow this model entry was added (manually, discovered, or seeded as predefined).
created_at: DateTime<Utc>Timestamp when this model was created (RFC 3339).
updated_at: DateTime<Utc>Timestamp when this model was last updated (RFC 3339).