# Clicked

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/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/a98f0dfa8d534d8a1885b524632400e52db22ac6/libs/code/deepagents_code/widgets/model_selector.py#L152)