Uses of Interface
dev.langchain4j.model.chat.response.StreamingChatResponseHandler
Packages that use StreamingChatResponseHandler
Package
Description
AWS Bedrock integration for LangChain4j.
GitHub Models integration for LangChain4j.
-
Uses of StreamingChatResponseHandler in dev.langchain4j.internal
Methods in dev.langchain4j.internal with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionstatic voidInternalStreamingChatResponseHandlerUtils.onCompleteResponse(StreamingChatResponseHandler handler, ChatResponse completeResponse) static voidInternalStreamingChatResponseHandlerUtils.onCompleteToolCall(StreamingChatResponseHandler handler, CompleteToolCall completeToolCall) static voidInternalStreamingChatResponseHandlerUtils.onPartialResponse(StreamingChatResponseHandler handler, String partialResponse) Deprecated, for removal: This API element is subject to removal in a future version.static voidInternalStreamingChatResponseHandlerUtils.onPartialResponse(StreamingChatResponseHandler handler, String partialResponse, StreamingHandle streamingHandle) static voidInternalStreamingChatResponseHandlerUtils.onPartialThinking(StreamingChatResponseHandler handler, String partialThinking) Deprecated, for removal: This API element is subject to removal in a future version.static voidInternalStreamingChatResponseHandlerUtils.onPartialThinking(StreamingChatResponseHandler handler, String partialThinking, StreamingHandle streamingHandle) static voidInternalStreamingChatResponseHandlerUtils.onPartialToolCall(StreamingChatResponseHandler handler, PartialToolCall partialToolCall) Deprecated, for removal: This API element is subject to removal in a future version.static voidInternalStreamingChatResponseHandlerUtils.onPartialToolCall(StreamingChatResponseHandler handler, PartialToolCall partialToolCall, StreamingHandle streamingHandle) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model
Methods in dev.langchain4j.model that return StreamingChatResponseHandlerModifier and TypeMethodDescriptionstatic StreamingChatResponseHandlerLambdaStreamingResponseHandler.onPartialResponse(Consumer<String> onPartialResponse) static StreamingChatResponseHandlerLambdaStreamingResponseHandler.onPartialResponseAndError(Consumer<String> onPartialResponseLambda, Consumer<Throwable> onErrorLambda) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.anthropic
Methods in dev.langchain4j.model.anthropic with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidAnthropicStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.anthropic.internal.client
Methods in dev.langchain4j.model.anthropic.internal.client with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidAnthropicClient.createMessage(AnthropicCreateMessageRequest request, AnthropicCreateMessageOptions options, StreamingChatResponseHandler handler) abstract voidAnthropicClient.createMessage(AnthropicCreateMessageRequest request, StreamingChatResponseHandler handler) voidDefaultAnthropicClient.createMessage(AnthropicCreateMessageRequest request, AnthropicCreateMessageOptions options, StreamingChatResponseHandler handler) Creates a message with streaming response handling.voidDefaultAnthropicClient.createMessage(AnthropicCreateMessageRequest request, StreamingChatResponseHandler handler) Creates a message with streaming response handling using default options. -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.azure
Methods in dev.langchain4j.model.azure with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidAzureOpenAiStreamingChatModel.doChat(ChatRequest request, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.bedrock
Methods in dev.langchain4j.model.bedrock with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidBedrockStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.chat
Methods in dev.langchain4j.model.chat with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptiondefault voidStreamingChatModel.chat(ChatRequest request, ChatRequestOptions options, StreamingChatResponseHandler handler) Sends a streaming chat request with additional invocation options.default voidStreamingChatModel.chat(ChatRequest request, StreamingChatResponseHandler handler) This is the main API to interact with the chat model.default voidStreamingChatModel.chat(String userMessage, StreamingChatResponseHandler handler) default voidStreamingChatModel.chat(List<ChatMessage> messages, StreamingChatResponseHandler handler) voidDisabledStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) default voidStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.github
Methods in dev.langchain4j.model.github with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidGitHubModelsStreamingChatModel.chat(ChatRequest request, StreamingChatResponseHandler handler) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.googleai
Methods in dev.langchain4j.model.googleai with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidGoogleAiGeminiStreamingChatModel.doChat(ChatRequest request, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.gpullama3
Methods in dev.langchain4j.model.gpullama3 with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionGPULlama3ResponseParser.createStreamingParser(StreamingChatResponseHandler handler, org.beehive.gpullama3.model.Model model) Creates a new streaming parser for real-time thinking content separation.voidGPULlama3StreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) Constructors in dev.langchain4j.model.gpullama3 with parameters of type StreamingChatResponseHandlerModifierConstructorDescriptionStreamingParser(StreamingChatResponseHandler handler, org.beehive.gpullama3.model.Model model) Creates a new streaming parser. -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.jlama
Methods in dev.langchain4j.model.jlama with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidJlamaStreamingChatModel.chat(ChatRequest chatRequest, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.localai
Methods in dev.langchain4j.model.localai with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidLocalAiStreamingChatModel.chat(ChatRequest chatRequest, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.mistralai
Methods in dev.langchain4j.model.mistralai with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidMistralAiStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.mistralai.internal.client
Methods in dev.langchain4j.model.mistralai.internal.client with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidDefaultMistralAiClient.streamingChatCompletion(MistralAiChatCompletionRequest request, StreamingChatResponseHandler handler) voidDefaultMistralAiClient.streamingChatCompletion(MistralAiChatCompletionRequest request, StreamingChatResponseHandler handler, boolean returnThinking) abstract voidMistralAiClient.streamingChatCompletion(MistralAiChatCompletionRequest request, StreamingChatResponseHandler handler) voidMistralAiClient.streamingChatCompletion(MistralAiChatCompletionRequest request, StreamingChatResponseHandler handler, boolean returnThinking) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.ollama
Methods in dev.langchain4j.model.ollama with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidOllamaStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.openai
Methods in dev.langchain4j.model.openai with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidOpenAiResponsesStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) voidOpenAiStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.openaiofficial
Methods in dev.langchain4j.model.openaiofficial with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidOpenAiOfficialResponsesStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) voidOpenAiOfficialStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.vertexai.anthropic
Methods in dev.langchain4j.model.vertexai.anthropic with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidVertexAiAnthropicStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.vertexai.gemini
Methods in dev.langchain4j.model.vertexai.gemini with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidVertexAiGeminiStreamingChatModel.chat(ChatRequest chatRequest, StreamingChatResponseHandler handler) -
Uses of StreamingChatResponseHandler in dev.langchain4j.model.watsonx
Methods in dev.langchain4j.model.watsonx with parameters of type StreamingChatResponseHandlerModifier and TypeMethodDescriptionvoidWatsonxStreamingChatModel.doChat(ChatRequest chatRequest, StreamingChatResponseHandler handler)
InternalStreamingChatResponseHandlerUtils.onPartialResponse(StreamingChatResponseHandler, String, StreamingHandle)instead.