Interface AiServiceResponseReceivedListener
- All Superinterfaces:
AiServiceListener<AiServiceResponseReceivedEvent>
- 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 AiServiceResponseReceivedListener
extends AiServiceListener<AiServiceResponseReceivedEvent>
A listener for
AiServiceResponseReceivedEvent
, which represents an event
that occurs when a response from a large language model (LLM) is received.
This interface extends the generic AiServiceListener
,
specializing it for handling events related to LLM responses.
Classes implementing this interface can respond to events where the LLM
provides a response during an AI Service invocation, which may happen
multiple times if it involves tools or guardrails.-
Method Summary
Modifier and TypeMethodDescriptiondefault Class
<AiServiceResponseReceivedEvent> 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<AiServiceResponseReceivedEvent>
- Returns:
- the
Class
object of the event type that this listener is associated with
-