# describe_truncation

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/output_truncation/describe_truncation)

Return a short, user-facing explanation of a truncation.

## Signature

```python
describe_truncation(
    truncation: OutputTruncation,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `truncation` | `OutputTruncation` | Yes | The classified truncation. |

## Returns

`str`

Text such as `it reached its output token limit (length)`.

---

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