Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
A context compaction marker with encrypted summary

Example Usage

import { CompactionItem } from "@openrouter/sdk/models";

let value: CompactionItem = {
  encryptedContent: "enc_abc123...",
  type: "compaction",
};

Fields

FieldTypeRequiredDescription
encryptedContentstring:heavy_check_mark:N/A
idstring:heavy_minus_sign:N/A
typemodels.CompactionItemType:heavy_check_mark:N/A