Class AbstractGuardrailExecutor<C extends GuardrailsConfig, P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,R>, E extends GuardrailExecutedEvent<P,R,G>, F extends GuardrailResult.Failure>

java.lang.Object
dev.langchain4j.guardrail.AbstractGuardrailExecutor<C,P,R,G,E,F>
Type Parameters:
C - The type of GuardrailsConfig to use for configuration
P - The type of GuardrailRequest to validate
R - The type of GuardrailResult to return
G - The type of Guardrails being executed
E - The type of GuardrailExecutedEvent to be fired
F - The type of GuardrailResult.Failure to return
All Implemented Interfaces:
GuardrailExecutor<C,P,R,G,E>
Direct Known Subclasses:
InputGuardrailExecutor, OutputGuardrailExecutor

public abstract sealed class AbstractGuardrailExecutor<C extends GuardrailsConfig, P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,R>, E extends GuardrailExecutedEvent<P,R,G>, F extends GuardrailResult.Failure> extends Object implements GuardrailExecutor<C,P,R,G,E> permits InputGuardrailExecutor, OutputGuardrailExecutor
Abstract base class for GuardrailExecutors.