Class RegisterAiService.BeanChatMemoryProviderSupplier

java.lang.Object
io.quarkiverse.langchain4j.RegisterAiService.BeanChatMemoryProviderSupplier
All Implemented Interfaces:
Supplier<dev.langchain4j.memory.chat.ChatMemoryProvider>
Enclosing class:
RegisterAiService

public static final class RegisterAiService.BeanChatMemoryProviderSupplier extends Object implements Supplier<dev.langchain4j.memory.chat.ChatMemoryProvider>
Marker that is used to tell Quarkus to use the retriever that the user has configured as a CDI bean. Be default, Quarkus configures an ChatMemoryProvider by using an InMemoryChatMemoryStore as the backing store while using MessageWindowChatMemory with the value of configuration property quarkus.langchain4j.chat-memory.memory-window.max-messages (which default to 10) as a way of limiting the number of messages in each chat.
  • Constructor Details

    • BeanChatMemoryProviderSupplier

      public BeanChatMemoryProviderSupplier()
  • Method Details

    • get

      public dev.langchain4j.memory.chat.ChatMemoryProvider get()
      Specified by:
      get in interface Supplier<dev.langchain4j.memory.chat.ChatMemoryProvider>