Skip to content
providerkit
GitHub

CompactionExecution

type CompactionExecution = object &
| {
status: "running";
}
| {
interruptedSummary?: true;
status: "completed";
summary: string;
};

Defined in: agents/src/types.ts:344

beforeModel: number;
cut: number;
id: string;
optional model?: ModelExecution;
optional rejectedAttemptId?: string;

The turn attempt the provider refused before any chunk. A retry stays in that turn’s slot.

sourceCount: number;

Count and cut in the full conversation, not in the shortened model view.