Class DefaultAiServiceResponseReceivedEvent
java.lang.Object
dev.langchain4j.observability.event.AbstractAiServiceEvent
dev.langchain4j.observability.event.DefaultAiServiceResponseReceivedEvent
- All Implemented Interfaces:
AiServiceEvent, AiServiceResponseReceivedEvent
public class DefaultAiServiceResponseReceivedEvent
extends AbstractAiServiceEvent
implements AiServiceResponseReceivedEvent
Default implementation of
AiServiceResponseReceivedEvent
.-
Nested Class Summary
Nested classes/interfaces inherited from interface AiServiceEvent
AiServiceEvent.Builder<T>
Nested classes/interfaces inherited from interface AiServiceResponseReceivedEvent
AiServiceResponseReceivedEvent.AiServiceResponseReceivedEventBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAiServiceResponseReceivedEvent
(AiServiceResponseReceivedEvent.AiServiceResponseReceivedEventBuilder builder) -
Method Summary
Modifier and TypeMethodDescriptionresponse()
Retrieves the chat response from the AI Service invocation event.Methods inherited from class AbstractAiServiceEvent
invocationContext
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface AiServiceEvent
invocationContext
Methods inherited from interface AiServiceResponseReceivedEvent
eventClass, toBuilder
-
Constructor Details
-
DefaultAiServiceResponseReceivedEvent
public DefaultAiServiceResponseReceivedEvent(AiServiceResponseReceivedEvent.AiServiceResponseReceivedEventBuilder builder)
-
-
Method Details
-
response
Description copied from interface:AiServiceResponseReceivedEvent
Retrieves the chat response from the AI Service invocation event.- Specified by:
response
in interfaceAiServiceResponseReceivedEvent
- Returns:
- the
ChatResponse
object containing the AI-generated message and related metadata.
-