agent-sessions / Exports / CompactionOrchestrator
Class: CompactionOrchestrator
Table of contents
Constructors
Methods
Constructors
constructor
• new CompactionOrchestrator(options): CompactionOrchestrator
Parameters
| Name | Type |
|---|---|
options | ICompactionOptions |
Returns
Defined in
agent-sessions/src/compaction-orchestrator.ts:31
Methods
compact
▸ compact(provider, history, instructions?): Promise<string>
Run compaction — summarize the conversation to free context space.
Parameters
| Name | Type | Description |
|---|---|---|
provider | IAIProvider | The AI provider to use for summarization |
history | TUniversalMessage[] | Current conversation history |
instructions? | string | Optional focus instructions for the summary |
Returns
Promise<string>
The generated summary string