Interface ChatMemoryProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides instances of
ChatMemory.
Intended to be used with AiServices.-
Method Summary
-
Method Details
-
get
Provides an instance ofChatMemory. This method is called each time an AI Service method (having a parameter annotated withMemoryId) is called with a previously unseen memory ID. Once theChatMemoryinstance is returned, it's retained in memory and managed byAiServices.- Parameters:
memoryId- The ID of the chat memory.- Returns:
- A
ChatMemoryinstance. - See Also:
-