addPreProcessor

Adds a ChatMemoryPreProcessor to the preprocessing chain.

Preprocessors are applied in the order they are added, both when loading messages from history and when storing them.

Example:

installChatMemory {
addPreProcessor(myCustomPreProcessor)
}

Return

This ChatMemoryConfig instance for fluent chaining.

Parameters

preProcessor

The preprocessor to add.