Interface Guardrail<P extends GuardrailParams,R extends GuardrailResult<R>>
- All Known Subinterfaces:
InputGuardrail
,OutputGuardrail
- All Known Implementing Classes:
AbstractJsonExtractorOutputGuardrail
@Deprecated(forRemoval=true)
public interface Guardrail<P extends GuardrailParams,R extends GuardrailResult<R>>
Deprecated, for removal: This API element is subject to removal in a future version.
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
Deprecated, for removal: This API element is subject to removal in a future version.Validate the interaction between the model and the user in one of the two directions.- Parameters:
params
- The parameters of the request or the response to be validated.- Returns:
- The result of this validation.
-
Guardrail
instead