Interface ToolOutputGuardrailExecutedEvent
- All Superinterfaces:
AiServiceEvent, GuardrailExecutedEvent<ToolOutputGuardrailRequest, ToolOutputGuardrailResult, ToolOutputGuardrail>
- All Known Implementing Classes:
DefaultToolOutputGuardrailExecutedEvent
@Experimental
public interface ToolOutputGuardrailExecutedEvent
extends GuardrailExecutedEvent<ToolOutputGuardrailRequest, ToolOutputGuardrailResult, ToolOutputGuardrail>
Represents an event triggered upon the execution of a tool output guardrail.
It is distinct from OutputGuardrailExecutedEvent: a listener for AI service output guardrails
is not notified of tool output guardrails.
Its request holds the result as it reached the guardrail, before its rewrite, so it can contain data the guardrail redacts. A listener that exports events to an external system should drop or redact it.
- Since:
- 1.25.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilder forToolOutputGuardrailExecutedEventinstances.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<ToolOutputGuardrailExecutedEvent> 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
duration, guardrailClass, guardrailName, 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
-