---
title: "ContextCompactionItem"
---

A context compaction marker with an optional encrypted summary


## Fields

| Field                                                                              | Type                                                                               | Required                                                                           | Description                                                                        | Example                                                                            |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `encrypted_content`                                                                | *OptionalNullable[str]*                                                            | :heavy_minus_sign:                                                                 | N/A                                                                                |                                                                                    |
| `id`                                                                               | *OptionalNullable[str]*                                                            | :heavy_minus_sign:                                                                 | N/A                                                                                |                                                                                    |
| `type`                                                                             | [components.ContextCompactionItemType](../components/contextcompactionitemtype.mdx) | :heavy_check_mark:                                                                 | N/A                                                                                |                                                                                    |
| `__pydantic_extra__`                                                               | Dict[str, *Nullable[Any]*]                                                         | :heavy_minus_sign:                                                                 | N/A                                                                                | \{<br/>"encrypted_content": "enc_abc123...",<br/>"type": "context_compaction"<br/>} |