Interface AiServiceListener<T extends AiServiceEvent>
- Type Parameters:
T- The type ofAiServiceEventthis 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 ofAiServiceEventthat this listener listens for.voidCalled when an event of typeAiServiceEventoccurs.
-
Method Details
-
getEventClass
Retrieves the class object representing the type ofAiServiceEventthat this listener listens for.- Returns:
- the
Classobject of the event type that this listener is associated with
-
onEvent
Called when an event of typeAiServiceEventoccurs.- Parameters:
event- The event instance that occurred, encapsulating specific information about the invocation.
-