Class RegisterAiService.BeanIfExistsChatMemoryProviderSupplier

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

public static final class RegisterAiService.BeanIfExistsChatMemoryProviderSupplier extends Object implements Supplier<dev.langchain4j.memory.chat.ChatMemoryProvider>
Marker that is used to tell Quarkus to use the ChatMemoryProvider that the user has configured as a CDI bean. If no such bean exists, then no memory will be used.
  • Constructor Details

    • BeanIfExistsChatMemoryProviderSupplier

      public BeanIfExistsChatMemoryProviderSupplier()
  • Method Details

    • get

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