Class ChatEvent.ChatCompletedEvent

java.lang.Object
io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent
io.quarkiverse.langchain4j.runtime.aiservice.ChatEvent.ChatCompletedEvent
Enclosing class:
ChatEvent

public static class ChatEvent.ChatCompletedEvent extends ChatEvent
Event emitted when a chat conversation has been completed. This event contains the final chat response including the AI's message and any associated metadata.
  • 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