---
title: "CompactionItem"
---

A context compaction marker with encrypted summary


## Fields

| Field                                                                | Type                                                                 | Required                                                             | Description                                                          |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `encrypted_content`                                                  | *str*                                                                | :heavy_check_mark:                                                   | N/A                                                                  |
| `id`                                                                 | *OptionalNullable[str]*                                              | :heavy_minus_sign:                                                   | N/A                                                                  |
| `type`                                                               | [components.CompactionItemType](../components/compactionitemtype.mdx) | :heavy_check_mark:                                                   | N/A                                                                  |