Skip to content

ConversationHistoryConfig

Configuration for multi-turn conversation history.

Defined in: src/core/types/config.ts:355

Configuration for multi-turn conversation history.

Remarks

When enabled, the SDK accumulates user and assistant messages across turns and sends them to the LLM as context, enabling multi-turn conversations. The maxTurns setting controls how many turns are retained; oldest turns are dropped when the limit is reached.

Example

const conversationHistory: ConversationHistoryConfig = {
  enabled: true,
  maxTurns: 10,
};

See

Properties

PropertyTypeDefault valueDescriptionDefined in
enabledbooleanfalseWhether conversation history is enabled. Remarks When true, all turns are accumulated and sent to the LLM as context.src/core/types/config.ts:364
maxTurns?number0Maximum number of conversation turns to retain. Remarks A “turn” is a user + assistant message pair. Oldest turns are dropped when the limit is reached. Set to 0 for unlimited history.src/core/types/config.ts:375

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency