---
title: "ContextCompressionPlugin"
---

## Fields

| Field                                                                                      | Type                                                                                       | Required                                                                                   | Description                                                                                | Example                                                                                    |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `enabled`                                                                                  | *Optional[bool]*                                                                           | :heavy_minus_sign:                                                                         | Set to false to disable the context-compression plugin for this request. Defaults to true. |                                                                                            |
| `engine`                                                                                   | [Optional[components.ContextCompressionEngine]](../components/contextcompressionengine.mdx) | :heavy_minus_sign:                                                                         | The compression engine to use. Defaults to "middle-out".                                   | middle-out                                                                                 |
| `id`                                                                                       | [components.ContextCompressionPluginID](../components/contextcompressionpluginid.mdx)       | :heavy_check_mark:                                                                         | N/A                                                                                        |                                                                                            |