# OutputTruncation

> **Class** in `deepagents_code`

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

Why a provider stopped a reply early.

## Signature

```python
OutputTruncation(
    self,
    reason: TruncationReason,
    raw: str,
)
```

## Constructors

```python
__init__(
    self,
    reason: TruncationReason,
    raw: str,
) -> None
```

| Name | Type |
|------|------|
| `reason` | `TruncationReason` |
| `raw` | `str` |


## Properties

- `reason`
- `raw`

---

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