Class GuardrailsSupport

java.lang.Object
io.quarkiverse.langchain4j.runtime.aiservice.GuardrailsSupport

public class GuardrailsSupport extends Object
  • Constructor Details

    • GuardrailsSupport

      public GuardrailsSupport()
  • Method Details

    • invokeInputGuardRails

      @Deprecated(forRemoval=true) public static dev.langchain4j.data.message.UserMessage invokeInputGuardRails(AiServiceMethodCreateInfo methodCreateInfo, dev.langchain4j.data.message.UserMessage userMessage, dev.langchain4j.memory.ChatMemory chatMemory, dev.langchain4j.rag.AugmentationResult augmentationResult, Map<String,Object> templateVariables, jakarta.enterprise.inject.spi.BeanManager beanManager, AuditSourceInfo auditSourceInfo)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated in favor of upstream implementation
    • invokeOutputGuardRails

      @Deprecated(forRemoval=true) public static GuardrailsSupport.OutputGuardrailResponse invokeOutputGuardRails(AiServiceMethodCreateInfo methodCreateInfo, dev.langchain4j.memory.ChatMemory chatMemory, dev.langchain4j.model.chat.ChatModel chatModel, dev.langchain4j.model.chat.response.ChatResponse response, List<dev.langchain4j.agent.tool.ToolSpecification> toolSpecifications, OutputGuardrailParams output, jakarta.enterprise.inject.spi.BeanManager beanManager, AuditSourceInfo auditSourceInfo)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated in favor of upstream implementation
    • accumulate

      public static io.smallrye.mutiny.Multi<ChatEvent.AccumulatedResponseEvent> accumulate(io.smallrye.mutiny.Multi<ChatEvent> upstream, AiServiceMethodCreateInfo methodCreateInfo)
    • invokeOutputGuardrailsForStream

      @Deprecated(forRemoval=true) public static OutputGuardrailResult invokeOutputGuardrailsForStream(AiServiceMethodCreateInfo methodCreateInfo, OutputGuardrailParams outputGuardrailParams, jakarta.enterprise.inject.spi.BeanManager beanManager, AuditSourceInfo auditSourceInfo)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated in favor of upstream implementation