Uses of Interface
dev.langchain4j.model.chat.response.ChatModelStreamingEvent
Packages that use ChatModelStreamingEvent
Package
Description
AWS Bedrock integration for LangChain4j.
-
Uses of ChatModelStreamingEvent in dev.langchain4j.model.anthropic
Methods in dev.langchain4j.model.anthropic that return types with arguments of type ChatModelStreamingEvent -
Uses of ChatModelStreamingEvent in dev.langchain4j.model.anthropic.internal.client
Methods in dev.langchain4j.model.anthropic.internal.client that return types with arguments of type ChatModelStreamingEventModifier and TypeMethodDescriptionAnthropicClient.createMessagePublisher(AnthropicCreateMessageRequest request, AnthropicCreateMessageOptions options, int bufferSize) Non-blocking reactive streaming counterpart ofAnthropicClient.createMessage(AnthropicCreateMessageRequest, AnthropicCreateMessageOptions, StreamingChatResponseHandler): returns aPublisherofChatModelStreamingEvents driven byhttpClient.stream(...)(nothing parked on socket reads);bufferSizebounds the back-pressure buffer, and cancelling the subscription aborts the in-flight HTTP request.DefaultAnthropicClient.createMessagePublisher(AnthropicCreateMessageRequest request, AnthropicCreateMessageOptions options, int bufferSize) Non-blocking reactive counterpart ofDefaultAnthropicClient.createMessage(AnthropicCreateMessageRequest, AnthropicCreateMessageOptions, StreamingChatResponseHandler): drives the same SSE listener from the reactivehttpClient.stream(...)publisher (nothing parked on socket reads), bridging events into a boundedTubeofChatModelStreamingEvents. -
Uses of ChatModelStreamingEvent in dev.langchain4j.model.bedrock
Methods in dev.langchain4j.model.bedrock that return types with arguments of type ChatModelStreamingEvent -
Uses of ChatModelStreamingEvent in dev.langchain4j.model.chat
Methods in dev.langchain4j.model.chat that return types with arguments of type ChatModelStreamingEventModifier and TypeMethodDescriptiondefault Flow.Publisher<ChatModelStreamingEvent> StreamingChatModel.chat(ChatMessage... messages) Reactive convenience overload accepting the messages directly: returns a coldPublisherthat streams the response tomessages.default Flow.Publisher<ChatModelStreamingEvent> StreamingChatModel.chat(ChatRequest request) Reactive entry point: sends a chat request and returns aFlow.PublisherofChatModelStreamingEvents.default Flow.Publisher<ChatModelStreamingEvent> StreamingChatModel.chat(List<ChatMessage> messages) Reactive convenience counterpart ofStreamingChatModel.chat(List, StreamingChatResponseHandler): returns a coldPublisherthat streams the response tomessages.default Flow.Publisher<ChatModelStreamingEvent> StreamingChatModel.doChat(ChatRequest chatRequest) Provider-specific implementation of the reactive stream returned byStreamingChatModel.chat(ChatRequest)(which wraps it withChatModelListenerinvocation). -
Uses of ChatModelStreamingEvent in dev.langchain4j.model.chat.response
Subinterfaces of ChatModelStreamingEvent in dev.langchain4j.model.chat.responseModifier and TypeInterfaceDescriptioninterfaceA 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.Classes in dev.langchain4j.model.chat.response that implement ChatModelStreamingEventModifier and TypeClassDescriptionclassThe terminalChatModelStreamingEventof a streaming chat: the complete, aggregatedChatResponse.classRepresents a complete tool call.classclassclassRepresents a partial tool call. -
Uses of ChatModelStreamingEvent in dev.langchain4j.model.openai
Methods in dev.langchain4j.model.openai that return types with arguments of type ChatModelStreamingEventModifier and TypeMethodDescriptionOpenAiResponsesStreamingChatModel.doChat(ChatRequest chatRequest) OpenAiStreamingChatModel.doChat(ChatRequest chatRequest) -
Uses of ChatModelStreamingEvent in dev.langchain4j.model.openai.internal
Methods in dev.langchain4j.model.openai.internal that return types with arguments of type ChatModelStreamingEventModifier and TypeMethodDescriptionDefaultOpenAiClient.chatCompletionPublisher(ChatCompletionRequest request, ChatCompletionOptions options) OpenAiClient.chatCompletionPublisher(ChatCompletionRequest request, ChatCompletionOptions options) -
Uses of ChatModelStreamingEvent in dev.langchain4j.reactive.streaming
Methods in dev.langchain4j.reactive.streaming that return types with arguments of type ChatModelStreamingEventModifier and TypeMethodDescriptionHttpStreamingChatPublisher.create(int bufferSize, Supplier<Flow.Publisher<HttpStreamingEvent>> upstream, Function<mutiny.zero.Tube<ChatModelStreamingEvent>, HttpStreamingChatPublisher.Sink> sinkFactory) Method parameters in dev.langchain4j.reactive.streaming with type arguments of type ChatModelStreamingEventModifier and TypeMethodDescriptionHttpStreamingChatPublisher.create(int bufferSize, Supplier<Flow.Publisher<HttpStreamingEvent>> upstream, Function<mutiny.zero.Tube<ChatModelStreamingEvent>, HttpStreamingChatPublisher.Sink> sinkFactory) Constructor parameters in dev.langchain4j.reactive.streaming with type arguments of type ChatModelStreamingEventModifierConstructorDescriptionTubeBackedStreamingChatResponseHandler(mutiny.zero.Tube<ChatModelStreamingEvent> tube)