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
  • Method Details

    • invocationContext

      InvocationContext invocationContext()
      Retrieves the invocation context, containing general information about where and how the invocation originated.
    • eventClass

      <T extends AiServiceEvent> Class<T> eventClass()
      Retrieves the class type of the event, representing the specific category of the AI Service invocation event.
    • toBuilder

      <T extends AiServiceEvent> AiServiceEvent.Builder<T> toBuilder()
      Creates a new builder instance initialized with the properties of this AiServiceEvent. This allows modification of the existing properties and reconstruction of the event.