Uses of Interface
dev.langchain4j.guardrail.OutputGuardrail
Packages that use OutputGuardrail
Package
Description
-
Uses of OutputGuardrail in dev.langchain4j.guardrail
Classes in dev.langchain4j.guardrail that implement OutputGuardrailModifier and TypeClassDescriptionclass
AnOutputGuardrail
that will check whether or not a response can be successfully deserialized to an object of typeT
from JSONConstructor parameters in dev.langchain4j.guardrail with type arguments of type OutputGuardrailModifierConstructorDescriptionprotected
OutputGuardrailExecutor
(OutputGuardrailsConfig config, List<OutputGuardrail> guardrails) -
Uses of OutputGuardrail in dev.langchain4j.service
Methods in dev.langchain4j.service with type parameters of type OutputGuardrailModifier and TypeMethodDescription<O extends OutputGuardrail>
AiServices<T> AiServices.outputGuardrailClasses
(Class<? extends O>... guardrailClasses) Sets the output guardrail classes to be used in the guardrail service.<O extends OutputGuardrail>
AiServices<T> AiServices.outputGuardrailClasses
(List<Class<? extends O>> guardrailClasses) Configures the output guardrail classes for the AI services.<O extends OutputGuardrail>
AiServices<T> AiServices.outputGuardrails
(List<O> guardrails) Configures the output guardrails for the AI service.<O extends OutputGuardrail>
AiServices<T> AiServices.outputGuardrails
(O... guardrails) Configures output guardrails for the AI services.Methods in dev.langchain4j.service with parameters of type OutputGuardrailModifier and TypeMethodDescription<O extends OutputGuardrail>
AiServices<T> AiServices.outputGuardrails
(O... guardrails) Configures output guardrails for the AI services. -
Uses of OutputGuardrail in dev.langchain4j.service.guardrail
Methods in dev.langchain4j.service.guardrail with type parameters of type OutputGuardrailModifier and TypeMethodDescriptiondefault <O extends OutputGuardrail>
GuardrailService.BuilderGuardrailService.Builder.outputGuardrailClasses
(Class<? extends O>... guardrailClasses) Configures the classes of output guardrails for the Builder.<O extends OutputGuardrail>
GuardrailService.BuilderGuardrailService.Builder.outputGuardrailClasses
(List<Class<? extends O>> guardrailClasses) Configures the classes of output guardrails for the Builder.<O extends OutputGuardrail>
GuardrailService.BuilderGuardrailService.Builder.outputGuardrails
(List<O> guardrails) Sets the output guardrails for the Builder.default <O extends OutputGuardrail>
GuardrailService.BuilderGuardrailService.Builder.outputGuardrails
(O... guardrails) Configures the output guardrails for the Builder.Methods in dev.langchain4j.service.guardrail with parameters of type OutputGuardrailModifier and TypeMethodDescriptiondefault <O extends OutputGuardrail>
GuardrailService.BuilderGuardrailService.Builder.outputGuardrails
(O... guardrails) Configures the output guardrails for the Builder.