Skip to content

ConversationManagerOptions

type ConversationManagerOptions = {
proactiveCompression?: boolean | ProactiveCompressionConfig;
};

Defined in: src/conversation-manager/conversation-manager.ts:71

Configuration options for the ConversationManager base class.

optional proactiveCompression?: boolean | ProactiveCompressionConfig;

Defined in: src/conversation-manager/conversation-manager.ts:79

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.