Interface OutputGuardrailExecutedListener
- All Superinterfaces:
AiServiceListener<OutputGuardrailExecutedEvent>, GuardrailExecutedListener<OutputGuardrailExecutedEvent, OutputGuardrailRequest, OutputGuardrailResult, OutputGuardrail>
- 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 OutputGuardrailExecutedListener
extends GuardrailExecutedListener<OutputGuardrailExecutedEvent, OutputGuardrailRequest, OutputGuardrailResult, OutputGuardrail>
An event listener specifically designed to handle
OutputGuardrailExecutedEvent
.
This listener provides a mechanism for processing events that occur during the execution
of output guardrail validations.
The purpose of this interface is to specialize the generic GuardrailExecutedListener
for use with output-related guardrail operations. These operations validate outputs from an LLM
against predefined criteria, encapsulated within the OutputGuardrail
.-
Method Summary
Modifier and TypeMethodDescriptiondefault Class
<OutputGuardrailExecutedEvent> 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<OutputGuardrailExecutedEvent>
- Returns:
- the
Class
object of the event type that this listener is associated with
-