Components (172)
Context Compaction
Context Compaction — an agent's context window filling up and being compacted, in a single self-contained file.
Loading Context Compaction…
Usage
import { ContextCompaction } from "ui-kit/components/context-compaction";Props
| Prop | Type | Default | Description |
|---|---|---|---|
entries* | ContextEntry[] | — | — |
limit* | number | — | The window's size in tokens |
threshold | number | 0.8 | Share of the limit at which it compacts on its own – the dashed mark (0–1, default 0.8) |
compacting | string[] | [] | Ids of the entries being compacted right now – they shimmer until a summary replaces them |
title | string | "Context" | — |
model | string | — | A small tag beside the title, e.g. the model |
onCompact | () => void | — | Shows a Compact now button in the last row |
rows | number | 7 | How many rows the list shows before it scrolls (default 7) |
className | string | — | — |