# PromptRow

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/modals/prompt_clipboard/PromptRow)

One prompt summary row.

Public so its `Clicked` message resolves to the idiomatic
`on_prompt_row_clicked` handler; nothing outside this module builds one.

## Signature

```python
PromptRow(
    self,
    prompt: str,
    index: int,
    *,
    selected: bool,
)
```

## Extends

- `Static`

## Constructors

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

| Name | Type |
|------|------|
| `prompt` | `str` |
| `index` | `int` |
| `selected` | `bool` |


## Methods

- [`on_click()`](https://reference.langchain.com/python/deepagents-code/tui/modals/prompt_clipboard/PromptRow/on_click)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/tui/modals/prompt_clipboard.py#L26)