Interface InputGuardrailExecutedListener
- All Superinterfaces:
AiServiceListener<InputGuardrailExecutedEvent>, GuardrailExecutedListener<InputGuardrailExecutedEvent, InputGuardrailRequest, InputGuardrailResult, InputGuardrail>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public non-sealed interface InputGuardrailExecutedListener
extends GuardrailExecutedListener<InputGuardrailExecutedEvent, InputGuardrailRequest, InputGuardrailResult, InputGuardrail>
A specialized listener interface for handling events of type
InputGuardrailExecutedEvent
,
which are triggered upon the execution of input guardrail validations. This listener provides
functionality specific to input-based guardrail execution, including access to the corresponding
input request, result, and guardrail implementation.-
Method Summary
Modifier and TypeMethodDescriptiondefault Class
<InputGuardrailExecutedEvent> Retrieves the class object representing the type ofAiServiceEvent
that this listener listens for.Methods inherited from interface AiServiceListener
onEvent
-
Method Details
-
getEventClass
Description copied from interface:AiServiceListener
Retrieves the class object representing the type ofAiServiceEvent
that this listener listens for.- Specified by:
getEventClass
in interfaceAiServiceListener<InputGuardrailExecutedEvent>
- Returns:
- the
Class
object of the event type that this listener is associated with
-