#[non_exhaustive]pub struct ModelPickerOption {
pub model: Option<String>,
pub label: Option<String>,
pub description: Option<String>,
pub behaves_as: Option<String>,
pub extra: Extra,
}Expand description
A row of modelPicker.options.
The rows the picker shows, in this order, except that a grayed-out row moves to the bottom.
Without a label, Claude Code titles the row with the built-in name for a model it knows,
or the model ID otherwise, and without a description it writes a generic second line.
Docs: modelPicker.options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model: Option<String>The model the row selects, taken verbatim: anything --model accepts, such as an alias,
an Anthropic model ID, or a provider-format ID.
- Values: string (required)
- Default: unset
Docs: model.
label: Option<String>The row’s title. Without it, Claude Code uses the built-in name for a model it knows, or the model ID.
- Values: string
- Default: unset
Docs: label.
description: Option<String>The row’s second line. Without it, Claude Code writes a generic one.
- Values: string
- Default: unset
Docs: description.
behaves_as: Option<String>The ID of a model this Claude Code version knows, such as claude-opus-4-8, whose
capabilities and effort defaults apply to a newer model. Requires Claude Code v2.1.257
or later.
- Values: string
- Default: unset
Docs: behavesAs.
extra: ExtraKeys Claude Code accepts here that this crate doesn’t model (newer or undocumented ones), kept as written so the document round-trips.