Interface Guardrail<P extends GuardrailRequest, R extends GuardrailResult<R>>
- Type Parameters:
P
- The type of theGuardrailRequest
R
- The type of theGuardrailResult
- All Known Subinterfaces:
InputGuardrail, OutputGuardrail
- All Known Implementing Classes:
JsonExtractorOutputGuardrail
public interface Guardrail<P extends GuardrailRequest, R extends GuardrailResult<R>>
A guardrail is a rule that is applied when interacting with an LLM either to the input (the user message) or to the
output of the model to ensure that they are safe and meet the expectations of the model.
-
Method Summary
-
Method Details
-
validate
-