# Ask

> **Class** in `deepagents_code`

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

Request insertion of the captured selection into the chat input.

## Signature

```python
Ask(
    self,
    text: str,
)
```

## Extends

- `Message`

## Constructors

```python
__init__(
    self,
    text: str,
) -> None
```

| Name | Type |
|------|------|
| `text` | `str` |


## Properties

- `text`

---

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