Interface GuardrailExecutedListener<E extends GuardrailExecutedEvent<P,R,G>, P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,R>>
- Type Parameters:
P
- the type ofGuardrailRequest
used in the guardrail validation process. It represents the request or parameters supplied for validation.R
- the type ofGuardrailResult
generated as the outcome of the validation process. It includes details regarding the success or failure of the validation and any associated information.G
- the type ofGuardrail
used in the validation process. It represents the implementation of the specific validation logic being applied.
- All Superinterfaces:
AiServiceListener<E>
- All Known Subinterfaces:
InputGuardrailExecutedListener, OutputGuardrailExecutedListener
public sealed interface GuardrailExecutedListener<E extends GuardrailExecutedEvent<P,R,G>, P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,R>>
extends AiServiceListener<E>
permits InputGuardrailExecutedListener, OutputGuardrailExecutedListener
Represents a listener for events of type
GuardrailExecutedEvent
, which are triggered when a guardrail
validation is executed. This listener provides the ability to handle events that encapsulate the parameters,
results, and the guardrail class involved in the validation process.
The interface is parameterized with the following types:-
Method Summary
Methods inherited from interface AiServiceListener
getEventClass, onEvent