Package dev.langchain4j.model.chat.response
package dev.langchain4j.model.chat.response
-
ClassDescriptionBase type for the events emitted by the reactive stream of a
StreamingChatModel— theFlow.Publisher<ChatModelStreamingEvent>returned byStreamingChatModel.chat(dev.langchain4j.model.chat.request.ChatRequest).Represents common chat response metadata supported by most LLM providers.ChatResponseMetadata.Builder<T extends ChatResponseMetadata.Builder<T>>The terminalChatModelStreamingEventof a streaming chat: the complete, aggregatedChatResponse.Represents a complete tool call.Represents a partial tool call.A provider-specific streaming event that langchain4j's generic event model does not (yet) map to a dedicatedChatModelStreamingEventtype — for example a web-search, citation or reasoning-summary event.Represents a handler for aStreamingChatModelresponse.Handle that can be used to cancel the streaming done viaStreamingChatResponseHandler.