Interface AiServiceListener<T extends AiServiceEvent>
- Type Parameters:
T
- The type ofAiServiceEvent
this listener listens for
- All Known Subinterfaces:
AiServiceCompletedListener, AiServiceErrorListener, AiServiceResponseReceivedListener, AiServiceStartedListener, GuardrailExecutedListener<E,
P, R, G>, InputGuardrailExecutedListener, OutputGuardrailExecutedListener, ToolExecutedEventListener
public interface AiServiceListener<T extends AiServiceEvent>
A
AiServiceEvent
listener that listens for-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the class object representing the type ofAiServiceEvent
that this listener listens for.void
Called when an event of typeAiServiceEvent
occurs.
-
Method Details
-
getEventClass
Retrieves the class object representing the type ofAiServiceEvent
that this listener listens for.- Returns:
- the
Class
object of the event type that this listener is associated with
-
onEvent
Called when an event of typeAiServiceEvent
occurs.- Parameters:
event
- The event instance that occurred, encapsulating specific information about the invocation.
-