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.

@FunctionalInterface public interface ChatMemoryProvider
Provides instances of ChatMemory. Intended to be used with AiServices.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(Object memoryId)
    Provides an instance of ChatMemory.
  • Method Details

    • get

      ChatMemory get(Object memoryId)
      Provides an instance of ChatMemory. This method is called each time an AI Service method (having a parameter annotated with MemoryId) is called with a previously unseen memory ID. Once the ChatMemory instance is returned, it's retained in memory and managed by AiServices.
      Parameters:
      memoryId - The ID of the chat memory.
      Returns:
      A ChatMemory instance.
      See Also: