Uses of Record Class
io.quarkiverse.langchain4j.guardrails.OutputGuardrailParams
Packages that use OutputGuardrailParams
Package
Description
-
Uses of OutputGuardrailParams in io.quarkiverse.langchain4j.guardrails
Subinterfaces with type arguments of type OutputGuardrailParams in io.quarkiverse.langchain4j.guardrailsModifier and TypeInterfaceDescriptioninterface
An output guardrail is a rule that is applied to the output of the model to ensure that the output is safe and meets the expectations.Methods in io.quarkiverse.langchain4j.guardrails that return OutputGuardrailParamsModifier and TypeMethodDescriptionstatic OutputGuardrailParams
OutputGuardrailParams.from
(dev.langchain4j.data.message.AiMessage responseFromLLM) static OutputGuardrailParams
OutputGuardrailParams.from
(dev.langchain4j.data.message.AiMessage responseFromLLM, Map<String, Object> variables) Methods in io.quarkiverse.langchain4j.guardrails with parameters of type OutputGuardrailParamsModifier and TypeMethodDescriptiondefault OutputGuardrailResult
OutputGuardrail.validate
(OutputGuardrailParams params) Validates the response from the LLM. -
Uses of OutputGuardrailParams in io.quarkiverse.langchain4j.runtime.aiservice
Methods in io.quarkiverse.langchain4j.runtime.aiservice with parameters of type OutputGuardrailParamsModifier and TypeMethodDescriptionstatic dev.langchain4j.model.output.Response
<dev.langchain4j.data.message.AiMessage> GuardrailsSupport.invokeOutputGuardrails
(AiServiceMethodCreateInfo methodCreateInfo, dev.langchain4j.memory.ChatMemory chatMemory, dev.langchain4j.model.chat.ChatLanguageModel chatModel, dev.langchain4j.model.output.Response<dev.langchain4j.data.message.AiMessage> response, List<dev.langchain4j.agent.tool.ToolSpecification> toolSpecifications, OutputGuardrailParams output) static OutputGuardrailResult
GuardrailsSupport.invokeOutputGuardrailsForStream
(AiServiceMethodCreateInfo methodCreateInfo, OutputGuardrailParams outputGuardrailParams)