Skip to content

SummarizingConversationManagerConfig

type SummarizingConversationManagerConfig = {
model?: Model;
summaryRatio?: number;
preserveRecentMessages?: number;
summarizationSystemPrompt?: string;
proactiveCompression?: boolean | ProactiveCompressionConfig;
};

Defined in: src/conversation-manager/summarizing-conversation-manager.ts:52

Configuration for the summarization conversation manager.

optional model?: Model;

Defined in: src/conversation-manager/summarizing-conversation-manager.ts:58

Model to use for generating summaries. When provided, overrides the model attached to the agent. Useful when you want to use a different model than the one attached to the agent.


optional summaryRatio?: number;

Defined in: src/conversation-manager/summarizing-conversation-manager.ts:64

Ratio of messages to summarize when context overflow occurs. Value is clamped to [0.1, 0.8]. Defaults to 0.3 (summarize 30% of oldest messages).


optional preserveRecentMessages?: number;

Defined in: src/conversation-manager/summarizing-conversation-manager.ts:70

Minimum number of recent messages to always keep. Defaults to 10.


optional summarizationSystemPrompt?: string;

Defined in: src/conversation-manager/summarizing-conversation-manager.ts:76

Custom system prompt for summarization. If not provided, uses a default prompt that produces structured bullet-point summaries.


optional proactiveCompression?: boolean | ProactiveCompressionConfig;

Defined in: src/conversation-manager/summarizing-conversation-manager.ts:85

Enable proactive context compression before the model call.

  • true: compress when 70% of the context window is used (default threshold).
  • { compressionThreshold: number }: compress at the specified ratio (0, 1].
  • false or omitted: disabled, only reactive overflow recovery is used.