# ModelOption

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/widgets/model_selector/ModelOption)

A clickable model option in the selector.

## Signature

```python
ModelOption(
    self,
    label: str | Content,
    model_spec: str,
    provider: str,
    index: int,
    *,
    has_creds: bool | None = True,
    classes: str = '',
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `label` | `str \| Content` | Yes | Display content — a `Content` object (preferred) or a plain string that `Static` will parse as markup. |
| `model_spec` | `str` | Yes | The model specification (provider:model format). |
| `provider` | `str` | Yes | The provider name. |
| `index` | `int` | Yes | The index of this option in the filtered list. |
| `has_creds` | `bool \| None` | No | Whether the provider has valid credentials. True if confirmed, False if missing, None if unknown. (default: `True`) |
| `classes` | `str` | No | CSS classes for styling. (default: `''`) |

## Extends

- `Static`

## Constructors

```python
__init__(
    self,
    label: str | Content,
    model_spec: str,
    provider: str,
    index: int,
    *,
    has_creds: bool | None = True,
    classes: str = '',
) -> None
```

| Name | Type |
|------|------|
| `label` | `str \| Content` |
| `model_spec` | `str` |
| `provider` | `str` |
| `index` | `int` |
| `has_creds` | `bool \| None` |
| `classes` | `str` |


## Properties

- `model_spec`
- `provider`
- `index`
- `has_creds`

## Methods

- [`on_click()`](https://reference.langchain.com/python/deepagents-cli/widgets/model_selector/ModelOption/on_click)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/3bcc51a95da80094cfc8bc4bcaf25dc1e2ad8f44/libs/cli/deepagents_cli/widgets/model_selector.py#L40)