Uses of Interface
dev.langchain4j.model.StreamingResponseHandler
Package
Description
-
Uses of StreamingResponseHandler in dev.langchain4j.model
Modifier and TypeMethodDescriptionstatic <T> StreamingResponseHandler
<T> static <T> StreamingResponseHandler
<T> LambdaStreamingResponseHandler.onNextAndError
(Consumer<String> nextLambda, Consumer<Throwable> errorLambda) -
Uses of StreamingResponseHandler in dev.langchain4j.model.anthropic
Modifier and TypeMethodDescriptionvoid
AnthropicStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
AnthropicStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
AnthropicStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
Uses of StreamingResponseHandler in dev.langchain4j.model.anthropic.internal.client
Modifier and TypeMethodDescriptionabstract void
AnthropicClient.createMessage
(AnthropicCreateMessageRequest request, StreamingResponseHandler<AiMessage> handler) void
DefaultAnthropicClient.createMessage
(AnthropicCreateMessageRequest request, StreamingResponseHandler<AiMessage> handler) -
Uses of StreamingResponseHandler in dev.langchain4j.model.azure
Modifier and TypeMethodDescriptionvoid
AzureOpenAiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
AzureOpenAiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
AzureOpenAiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) void
AzureOpenAiStreamingLanguageModel.generate
(String prompt, StreamingResponseHandler<String> handler) -
Uses of StreamingResponseHandler in dev.langchain4j.model.bedrock.internal
Modifier and TypeMethodDescriptionvoid
AbstractBedrockStreamingChatModel.generate
(String userMessage, StreamingResponseHandler<AiMessage> handler) void
AbstractBedrockStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) -
Uses of StreamingResponseHandler in dev.langchain4j.model.chat
Modifier and TypeMethodDescriptionvoid
DisabledStreamingChatLanguageModel.generate
(String userMessage, StreamingResponseHandler<AiMessage> handler) void
DisabledStreamingChatLanguageModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
DisabledStreamingChatLanguageModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
DisabledStreamingChatLanguageModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) default void
StreamingChatLanguageModel.generate
(UserMessage userMessage, StreamingResponseHandler<AiMessage> handler) Generates a response from the model based on a message from a user.default void
StreamingChatLanguageModel.generate
(String userMessage, StreamingResponseHandler<AiMessage> handler) Generates a response from the model based on a message from a user.default void
StreamingChatLanguageModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) Generates a response from the model based on a list of messages and a single tool specification.void
StreamingChatLanguageModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) Generates a response from the model based on a sequence of messages.default void
StreamingChatLanguageModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) Generates a response from the model based on a list of messages and a list of tool specifications. -
Uses of StreamingResponseHandler in dev.langchain4j.model.github
Modifier and TypeMethodDescriptionvoid
GitHubModelsStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
GitHubModelsStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
GitHubModelsStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
Uses of StreamingResponseHandler in dev.langchain4j.model.googleai
Modifier and TypeMethodDescriptionvoid
GoogleAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
GoogleAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
GoogleAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) -
Uses of StreamingResponseHandler in dev.langchain4j.model.jlama
Modifier and TypeMethodDescriptionvoid
JlamaStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
JlamaStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) void
JlamaStreamingLanguageModel.generate
(String prompt, StreamingResponseHandler<String> handler) -
Uses of StreamingResponseHandler in dev.langchain4j.model.language
Modifier and TypeMethodDescriptionvoid
DisabledStreamingLanguageModel.generate
(Prompt prompt, StreamingResponseHandler<String> handler) void
DisabledStreamingLanguageModel.generate
(String prompt, StreamingResponseHandler<String> handler) default void
StreamingLanguageModel.generate
(Prompt prompt, StreamingResponseHandler<String> handler) Generates a response from the model based on a prompt.void
StreamingLanguageModel.generate
(String prompt, StreamingResponseHandler<String> handler) Generates a response from the model based on a prompt. -
Uses of StreamingResponseHandler in dev.langchain4j.model.localai
Modifier and TypeMethodDescriptionvoid
LocalAiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
LocalAiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
LocalAiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) void
LocalAiStreamingLanguageModel.generate
(String prompt, StreamingResponseHandler<String> handler) -
Uses of StreamingResponseHandler in dev.langchain4j.model.mistralai
Modifier and TypeMethodDescriptionvoid
MistralAiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) Generates streamed token response based on the given list of messages and tool specification.void
MistralAiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) Generates streamed token response based on the given list of messages.void
MistralAiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) Generates streamed token response based on the given list of messages and tool specifications. -
Uses of StreamingResponseHandler in dev.langchain4j.model.mistralai.internal.client
Modifier and TypeMethodDescriptionvoid
DefaultMistralAiClient.streamingChatCompletion
(MistralAiChatCompletionRequest request, StreamingResponseHandler<AiMessage> handler) abstract void
MistralAiClient.streamingChatCompletion
(MistralAiChatCompletionRequest request, StreamingResponseHandler<AiMessage> handler) -
Uses of StreamingResponseHandler in dev.langchain4j.model.ollama
Modifier and TypeMethodDescriptionvoid
OllamaStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
OllamaStreamingLanguageModel.generate
(String prompt, StreamingResponseHandler<String> handler) -
Uses of StreamingResponseHandler in dev.langchain4j.model.openai
Modifier and TypeMethodDescriptionvoid
OpenAiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
OpenAiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
OpenAiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler) void
OpenAiStreamingLanguageModel.generate
(String prompt, StreamingResponseHandler<String> handler) -
Uses of StreamingResponseHandler in dev.langchain4j.model.vertexai
Modifier and TypeMethodDescriptionvoid
VertexAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, ToolSpecification toolSpecification, StreamingResponseHandler<AiMessage> handler) void
VertexAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler) void
VertexAiGeminiStreamingChatModel.generate
(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications, StreamingResponseHandler<AiMessage> handler)