Class ChatEvent.ChatCompletedEvent
java.lang.Object
io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent
io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent.ChatCompletedEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent
ChatEvent.AccumulatedResponseEvent, ChatEvent.BeforeToolExecutionEvent, ChatEvent.ChatCompletedEvent, ChatEvent.ChatEventType, ChatEvent.ContentFetchedEvent, ChatEvent.PartialResponseEvent, ChatEvent.PartialThinkingEvent, ChatEvent.ToolExecutedEvent -
Constructor Summary
ConstructorsConstructorDescriptionChatCompletedEvent(dev.langchain4j.model.chat.response.ChatResponse chatResponse) Constructs a new ChatCompletedEvent with the given chat response. -
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.model.chat.response.ChatResponseReturns the completed chat response.Methods inherited from class io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent
getEventType
-
Constructor Details
-
ChatCompletedEvent
public ChatCompletedEvent(dev.langchain4j.model.chat.response.ChatResponse chatResponse) Constructs a new ChatCompletedEvent with the given chat response.- Parameters:
chatResponse- the completed chat response containing the AI's message and metadata
-
-
Method Details
-
getChatResponse
public dev.langchain4j.model.chat.response.ChatResponse getChatResponse()Returns the completed chat response.- Returns:
- the chat response containing the AI's message and metadata
-