# Clicked

> **Class** in `deepagents_cli`

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

Message sent when a model option is clicked.

## Signature

```python
Clicked(
    self,
    model_spec: str,
    provider: str,
    index: int,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `model_spec` | `str` | Yes | The model specification. |
| `provider` | `str` | Yes | The provider name. |
| `index` | `int` | Yes | The index of the clicked option. |

## Extends

- `Message`

## Constructors

```python
__init__(
    self,
    model_spec: str,
    provider: str,
    index: int,
) -> None
```

| Name | Type |
|------|------|
| `model_spec` | `str` |
| `provider` | `str` |
| `index` | `int` |


## Properties

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

---

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