# Clicked

> **Class** in `deepagents_code`

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