Skip to content

SummarizingConversationManagerConfig

type SummarizingConversationManagerConfig = {
model?: Model;
summaryRatio?: number;
preserveRecentMessages?: number;
summarizationSystemPrompt?: string;
};

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

Configuration for the summarization conversation manager.

optional model?: Model;

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

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:58

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:64

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


optional summarizationSystemPrompt?: string;

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

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