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 classBuilder forOutputGuardrailExecutedEventinstances.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
invocationContextMethods inherited from interface GuardrailExecutedEvent
guardrailClass, request, result
-
Method Details
-
eventClass
Description copied from interface:AiServiceEventRetrieves the class type of the event, representing the specific category of the AI Service invocation event.- Specified by:
eventClassin interfaceAiServiceEvent
-
toBuilder
Description copied from interface:AiServiceEventCreates a new builder instance initialized with the properties of thisAiServiceEvent. This allows modification of the existing properties and reconstruction of the event.- Specified by:
toBuilderin interfaceAiServiceEvent
-
builder
-