# PastedText

> **Class** in `deepagents_code`

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

Message sent when a paste is large enough to be collapsed.

The full text is carried in the message so `ChatInput` can store it
and insert a compact placeholder into the text area instead.

## Signature

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

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | The complete pasted text content. |

## 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/2f56309d821db4a0d06ee03959cf842c91b7f228/libs/code/deepagents_code/tui/widgets/chat_input.py#L564)