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
- LLMMessage for the message format sent to the LLM
- CompositeVoiceConfig for where this is used
Properties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
enabled | boolean | false | Whether 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? | number | 0 | Maximum 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 |