Interface OutputGuardrailExecutedEvent
- All Superinterfaces:
AiServiceEvent, GuardrailExecutedEvent<OutputGuardrailRequest, OutputGuardrailResult, OutputGuardrail>
- All Known Implementing Classes:
DefaultOutputGuardrailExecutedEvent
public interface OutputGuardrailExecutedEvent
extends GuardrailExecutedEvent<OutputGuardrailRequest, OutputGuardrailResult, OutputGuardrail>
Represents an event executed during the output guardrail validation process.
This event serves as a marker to encapsulate the request, result, and implementation
of the output guardrail validation logic.
This interface is specifically intended for use in scenarios where validation
logic operates on output responses generated by the LLM, ensuring the responses
meet predefined criteria or rules.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Builder forOutputGuardrailExecutedEvent
instances.Nested classes/interfaces inherited from interface AiServiceEvent
AiServiceEvent.Builder<T>
Nested classes/interfaces inherited from interface GuardrailExecutedEvent
GuardrailExecutedEvent.GuardrailExecutedEventBuilder<P,
R, G, T> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Class
<OutputGuardrailExecutedEvent> Retrieves the class type of the event, representing the specific category of the AI Service invocation event.Creates a new builder instance initialized with the properties of thisAiServiceEvent
.Methods inherited from interface AiServiceEvent
invocationContext
Methods inherited from interface GuardrailExecutedEvent
guardrailClass, request, result
-
Method Details
-
eventClass
Description copied from interface:AiServiceEvent
Retrieves the class type of the event, representing the specific category of the AI Service invocation event.- Specified by:
eventClass
in interfaceAiServiceEvent
-
toBuilder
Description copied from interface:AiServiceEvent
Creates a new builder instance initialized with the properties of thisAiServiceEvent
. This allows modification of the existing properties and reconstruction of the event.- Specified by:
toBuilder
in interfaceAiServiceEvent
-
builder
-