# Clicked

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/widgets/thread_selector/ThreadOption/Clicked)

Message sent when a thread option is clicked.

## Signature

```python
Clicked(
    self,
    thread_id: str,
    index: int,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `thread_id` | `str` | Yes | The thread identifier. |
| `index` | `int` | Yes | The index of the clicked option. |

## Extends

- `Message`

## Constructors

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

| Name | Type |
|------|------|
| `thread_id` | `str` |
| `index` | `int` |


## Properties

- `thread_id`
- `index`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/0412009c5441bef8d75a427e1da8909e33ab5b56/libs/code/deepagents_code/widgets/thread_selector.py#L362)