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
invocationContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AiServiceEvent
invocationContextMethods inherited from interface AiServiceResponseReceivedEvent
eventClass, toBuilder
-
Constructor Details
-
DefaultAiServiceResponseReceivedEvent
public DefaultAiServiceResponseReceivedEvent(AiServiceResponseReceivedEvent.AiServiceResponseReceivedEventBuilder builder)
-
-
Method Details
-
response
Description copied from interface:AiServiceResponseReceivedEventRetrieves the chat response from the AI Service invocation event.- Specified by:
responsein interfaceAiServiceResponseReceivedEvent- Returns:
- the
ChatResponseobject containing the AI-generated message and related metadata.
-