The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { EditCompact20260112 } from "@openrouter/sdk/models";
let value: EditCompact20260112 = {
type: "compact_20260112",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
instructions | string | :heavy_minus_sign: | N/A | |
pauseAfterCompaction | boolean | :heavy_minus_sign: | N/A | |
trigger | models.TriggerInputTokens | :heavy_minus_sign: | N/A | {"type": "input_tokens","value": 100000} |
type | ”compact_20260112” | :heavy_check_mark: | N/A |