# CompletionOption

> **Class** in `deepagents_cli`

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

A clickable completion option in the autocomplete popup.

## Signature

```python
CompletionOption(
    self,
    label: str,
    description: str,
    index: int,
    is_selected: bool = False,
    **kwargs: Any = {},
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `label` | `str` | Yes | The main label text (e.g., command name or file path) |
| `description` | `str` | Yes | Secondary description text |
| `index` | `int` | Yes | Index of this option in the suggestions list |
| `is_selected` | `bool` | No | Whether this option is currently selected (default: `False`) |
| `**kwargs` | `Any` | No | Additional arguments for parent (default: `{}`) |

## Extends

- `Static`

## Constructors

```python
__init__(
    self,
    label: str,
    description: str,
    index: int,
    is_selected: bool = False,
    **kwargs: Any = {},
) -> None
```

| Name | Type |
|------|------|
| `label` | `str` |
| `description` | `str` |
| `index` | `int` |
| `is_selected` | `bool` |


## Properties

- `DEFAULT_CSS`

## Methods

- [`on_mount()`](https://reference.langchain.com/python/deepagents-cli/widgets/chat_input/CompletionOption/on_mount)
- [`set_selected()`](https://reference.langchain.com/python/deepagents-cli/widgets/chat_input/CompletionOption/set_selected)
- [`set_content()`](https://reference.langchain.com/python/deepagents-cli/widgets/chat_input/CompletionOption/set_content)
- [`on_click()`](https://reference.langchain.com/python/deepagents-cli/widgets/chat_input/CompletionOption/on_click)

---

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