Interface AiServiceStartedListener
- All Superinterfaces:
AiServiceListener<AiServiceStartedEvent>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AiServiceStartedListener
extends AiServiceListener<AiServiceStartedEvent>
A listener for
AiServiceStartedEvent
, which represents an event
that occurs when an AI Service invocation starts.
This interface extends the generic AiServiceListener
,
specializing it for handling events related to the initiation of an invocation.
Classes implementing this interface can respond to the event of an invocation
beginning, such as capturing the user or system message provided at the
start of the invocation.-
Method Summary
Modifier and TypeMethodDescriptiondefault Class
<AiServiceStartedEvent> Retrieves the class object representing the type ofAiServiceEvent
that this listener listens for.Methods inherited from interface AiServiceListener
onEvent
-
Method Details
-
getEventClass
Description copied from interface:AiServiceListener
Retrieves the class object representing the type ofAiServiceEvent
that this listener listens for.- Specified by:
getEventClass
in interfaceAiServiceListener<AiServiceStartedEvent>
- Returns:
- the
Class
object of the event type that this listener is associated with
-