Interface GuardrailExecutedEvent<P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,R>>
- Type Parameters:
P
- the type of guardrail parameters used in the validation processR
- the type of guardrail result produced by the validation processG
- the type of guardrail class used in the validation process
- All Superinterfaces:
AiServiceEvent
- All Known Subinterfaces:
InputGuardrailExecutedEvent, OutputGuardrailExecutedEvent
- All Known Implementing Classes:
DefaultGuardrailExecutedEvent, DefaultInputGuardrailExecutedEvent, DefaultOutputGuardrailExecutedEvent
public interface GuardrailExecutedEvent<P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,R>>
extends AiServiceEvent
Represents an event that is executed when a guardrail validation occurs.
This interface serves as a marker for events that contain both parameters
and results associated with guardrail validation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
GuardrailExecutedEvent.GuardrailExecutedEventBuilder<P extends GuardrailRequest<P>, R extends GuardrailResult<R>, G extends Guardrail<P,
R>, T extends GuardrailExecutedEvent<P, R, G>> Nested classes/interfaces inherited from interface AiServiceEvent
AiServiceEvent.Builder<T>
-
Method Summary
Methods inherited from interface AiServiceEvent
eventClass, invocationContext, toBuilder
-
Method Details
-
request
P request()Retrieves the request used for input guardrail validation.- Returns:
- the parameters containing user message, memory, augmentation result, user message template, and associated variables for input guardrail validation.
-
result
R result()Retrieves the result of the input guardrail validation process.- Returns:
- the result of the input guardrail validation, including the validation outcome and any associated failures, if present.
-
guardrailClass
-