Interface AiServiceEvent
- All Known Subinterfaces:
AiServiceCompletedEvent, AiServiceErrorEvent, AiServiceResponseReceivedEvent, AiServiceStartedEvent, GuardrailExecutedEvent<P,
R, G>, InputGuardrailExecutedEvent, OutputGuardrailExecutedEvent, ToolExecutedEvent
- All Known Implementing Classes:
AbstractAiServiceEvent, DefaultAiServiceCompletedEvent, DefaultAiServiceErrorEvent, DefaultAiServiceResponseReceivedEvent, DefaultAiServiceStartedEvent, DefaultGuardrailExecutedEvent, DefaultInputGuardrailExecutedEvent, DefaultOutputGuardrailExecutedEvent, DefaultToolExecutedEvent
public interface AiServiceEvent
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
AiServiceEvent.Builder<T extends AiServiceEvent>
An abstract base class for building instances of types that extendAiServiceEvent
. -
Method Summary
Modifier and TypeMethodDescription<T extends AiServiceEvent>
Class<T> Retrieves the class type of the event, representing the specific category of the AI Service invocation event.Retrieves the invocation context, containing general information about where and how the invocation originated.<T extends AiServiceEvent>
AiServiceEvent.Builder<T> Creates a new builder instance initialized with the properties of thisAiServiceEvent
.
-
Method Details
-
invocationContext
InvocationContext invocationContext()Retrieves the invocation context, containing general information about where and how the invocation originated. -
eventClass
Retrieves the class type of the event, representing the specific category of the AI Service invocation event. -
toBuilder
Creates a new builder instance initialized with the properties of thisAiServiceEvent
. This allows modification of the existing properties and reconstruction of the event.
-