Interface ConversationManagerConfig

Configuration for the ConversationManager. Defines settings for managing conversation contexts, including persistence options.

Interface

ConversationManagerConfig

interface ConversationManagerConfig {
    defaultConversationContextConfig?: Partial<ConversationContextConfig>;
    maxActiveConversationsInMemory?: number;
    inactivityTimeoutMs?: number;
    persistenceEnabled?: boolean;
    appendOnlyPersistence?: boolean;
}

Properties

defaultConversationContextConfig?: Partial<ConversationContextConfig>

Default configuration for newly created ConversationContext instances.

maxActiveConversationsInMemory?: number

Maximum number of active conversations to keep in memory. LRU eviction may apply.

inactivityTimeoutMs?: number

Timeout in milliseconds for inactive conversations. If set, a cleanup process might be implemented to evict conversations inactive for this duration. (Currently conceptual)

persistenceEnabled?: boolean

Controls whether storage adapter is used for database persistence of conversations. If true, a StorageAdapter instance must be provided during initialization.

appendOnlyPersistence?: boolean

When enabled, persistence becomes append-only:

  • conversations and conversation_messages rows are never updated or deleted
  • new messages are inserted once and subsequent saves are idempotent

This is intended to support provenance "sealed" mode / immutability guarantees.