# OptionClicked

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/widgets/chat_input/CompletionPopup/OptionClicked)

Message sent when a completion option is clicked.

## Signature

```python
OptionClicked(
    self,
    index: int,
)
```

## Extends

- `Message`

## Constructors

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

| Name | Type |
|------|------|
| `index` | `int` |


## Properties

- `index`

---

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