# PromptSearchOption

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/prompt_search/PromptSearchOption)

One clickable prompt row in the inline search panel.

## Signature

```python
PromptSearchOption(
    self,
    title: str,
    index: int,
    *,
    is_selected: bool,
)
```

## Extends

- `Static`

## Constructors

```python
__init__(
    self,
    title: str,
    index: int,
    *,
    is_selected: bool,
) -> None
```

| Name | Type |
|------|------|
| `title` | `str` |
| `index` | `int` |
| `is_selected` | `bool` |


## Properties

- `DEFAULT_CSS`
- `index`
- `is_selected`

## Methods

- [`set_content()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/prompt_search/PromptSearchOption/set_content)
- [`set_selected()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/prompt_search/PromptSearchOption/set_selected)
- [`on_click()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/prompt_search/PromptSearchOption/on_click)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/tui/widgets/prompt_search.py#L162)