Class RegisterAiService.BeanIfExistsModerationModelSupplier

java.lang.Object
io.quarkiverse.langchain4j.RegisterAiService.BeanIfExistsModerationModelSupplier
All Implemented Interfaces:
Supplier<dev.langchain4j.model.moderation.ModerationModel>
Enclosing class:
RegisterAiService

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

    • BeanIfExistsModerationModelSupplier

      public BeanIfExistsModerationModelSupplier()
  • Method Details

    • get

      public dev.langchain4j.model.moderation.ModerationModel get()
      Specified by:
      get in interface Supplier<dev.langchain4j.model.moderation.ModerationModel>