chatHistoryProvider

Sets the ChatHistoryProvider and returns this config for fluent chaining.

This method is an alternative to the chatHistoryProvider property setter, designed for Java callers who want to chain configuration calls:

config.chatHistoryProvider(myProvider).windowSize(20)

Return

This ChatMemoryConfig instance for fluent chaining.

Parameters

provider

The provider responsible for persisting and retrieving conversation history.


A provider responsible for persisting and retrieving conversation history.

Defaults to InMemoryChatHistoryProvider.