Uses of Class
dev.langchain4j.model.output.Response
Packages that use Response
Package
Description
-
Uses of Response in dev.langchain4j.model
Methods in dev.langchain4j.model with parameters of type ResponseModifier and TypeMethodDescriptiondefault void
StreamingResponseHandler.onComplete
(Response<T> response) Invoked when the language model has finished streaming a response. -
Uses of Response in dev.langchain4j.model.azure
Methods in dev.langchain4j.model.azure that return ResponseModifier and TypeMethodDescriptionAzureOpenAiEmbeddingModel.embedAll
(List<TextSegment> textSegments) Embeds the provided text segments, processing a maximum of 16 segments at a time. -
Uses of Response in dev.langchain4j.model.bedrock
Methods in dev.langchain4j.model.bedrock that return ResponseModifier and TypeMethodDescriptionBedrockCohereEmbeddingModel.embedAll
(List<TextSegment> textSegments) BedrockAnthropicMessageChatModel.generate
(List<ChatMessage> messages) Deprecated, for removal: This API element is subject to removal in a future version.BedrockMistralAiChatModel.generate
(List<ChatMessage> messages) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Response in dev.langchain4j.model.bedrock.internal
Methods in dev.langchain4j.model.bedrock.internal that return ResponseModifier and TypeMethodDescriptionAbstractBedrockEmbeddingModel.embedAll
(List<TextSegment> textSegments) AbstractBedrockChatModel.generate
(List<ChatMessage> messages) AbstractBedrockChatModel.toAiMessage
(T result) Methods in dev.langchain4j.model.bedrock.internal with parameters of type ResponseModifier and TypeMethodDescriptionprotected ChatModelResponse
AbstractSharedBedrockChatModel.createModelListenerResponse
(String responseId, String responseModel, Response<AiMessage> response) -
Uses of Response in dev.langchain4j.model.cohere
Methods in dev.langchain4j.model.cohere that return Response -
Uses of Response in dev.langchain4j.model.embedding
Methods in dev.langchain4j.model.embedding that return ResponseModifier and TypeMethodDescriptionDisabledEmbeddingModel.embed
(TextSegment textSegment) EmbeddingModel.embed
(TextSegment textSegment) Embed the text content of a TextSegment.Embed a text.DisabledEmbeddingModel.embedAll
(List<TextSegment> textSegments) EmbeddingModel.embedAll
(List<TextSegment> textSegments) Embeds the text content of a list of TextSegments. -
Uses of Response in dev.langchain4j.model.github
Methods in dev.langchain4j.model.github that return Response -
Uses of Response in dev.langchain4j.model.googleai
Methods in dev.langchain4j.model.googleai that return Response -
Uses of Response in dev.langchain4j.model.huggingface
Methods in dev.langchain4j.model.huggingface that return Response -
Uses of Response in dev.langchain4j.model.image
Methods in dev.langchain4j.model.image that return ResponseModifier and TypeMethodDescriptionGiven an existing image, edit this image following the given prompt and apply the changes only to the part of the image specified by the given mask.Given an existing image, edit this image following the given prompt.Given a prompt, generate an image.Given a prompt, generate n images. -
Uses of Response in dev.langchain4j.model.jina
Methods in dev.langchain4j.model.jina that return Response -
Uses of Response in dev.langchain4j.model.jlama
Methods in dev.langchain4j.model.jlama that return Response -
Uses of Response in dev.langchain4j.model.language
Methods in dev.langchain4j.model.language that return ResponseModifier and TypeMethodDescriptionGenerate a response to the given prompt.Generate a response to the given prompt. -
Uses of Response in dev.langchain4j.model.localai
Methods in dev.langchain4j.model.localai that return Response -
Uses of Response in dev.langchain4j.model.mistralai
Methods in dev.langchain4j.model.mistralai that return ResponseModifier and TypeMethodDescriptionMistralAiModels.availableModels()
Retrieves the list of all available models.MistralAiEmbeddingModel.embedAll
(List<TextSegment> textSegments) Embeds a list of text segments using the Mistral AI embedding model.MistralAiModerationModel.moderate
(List<ChatMessage> messages) -
Uses of Response in dev.langchain4j.model.moderation
Methods in dev.langchain4j.model.moderation that return ResponseModifier and TypeMethodDescriptionDisabledModerationModel.moderate
(ChatMessage message) DisabledModerationModel.moderate
(TextSegment textSegment) DisabledModerationModel.moderate
(List<ChatMessage> messages) default Response
<Moderation> ModerationModel.moderate
(ChatMessage message) Moderates the given chat message.default Response
<Moderation> ModerationModel.moderate
(TextSegment textSegment) Moderates the given text segment.default Response
<Moderation> Moderates the given prompt.Moderates the given text.ModerationModel.moderate
(List<ChatMessage> messages) Moderates the given list of chat messages. -
Uses of Response in dev.langchain4j.model.nomic
Methods in dev.langchain4j.model.nomic that return Response -
Uses of Response in dev.langchain4j.model.ollama
Methods in dev.langchain4j.model.ollama that return ResponseModifier and TypeMethodDescriptionOllamaModels.availableModels()
OllamaEmbeddingModel.embedAll
(List<TextSegment> textSegments) OllamaModels.modelCard
(OllamaModel ollamaModel) OllamaModels.runningModels()
-
Uses of Response in dev.langchain4j.model.openai
Methods in dev.langchain4j.model.openai that return ResponseModifier and TypeMethodDescriptionInternalOpenAiHelper.convertResponse
(ChatResponse chatResponse) OpenAiEmbeddingModel.embedAll
(List<TextSegment> textSegments) OpenAiModerationModel.moderate
(List<ChatMessage> messages) -
Uses of Response in dev.langchain4j.model.openaiofficial
Methods in dev.langchain4j.model.openaiofficial that return Response -
Uses of Response in dev.langchain4j.model.output
Methods in dev.langchain4j.model.output that return ResponseModifier and TypeMethodDescriptionstatic <T> @NonNull Response
<T> Response.from
(@NonNull T content) Create a new Response.static <T> @NonNull Response
<T> Response.from
(@NonNull T content, TokenUsage tokenUsage) Create a new Response.static <T> @NonNull Response
<T> Response.from
(@NonNull T content, TokenUsage tokenUsage, FinishReason finishReason) Create a new Response.static <T> @NonNull Response
<T> Response.from
(@NonNull T content, TokenUsage tokenUsage, FinishReason finishReason, @Nullable Map<String, Object> metadata) Create a new Response. -
Uses of Response in dev.langchain4j.model.ovhai
Methods in dev.langchain4j.model.ovhai that return Response -
Uses of Response in dev.langchain4j.model.scoring
Methods in dev.langchain4j.model.scoring that return ResponseModifier and TypeMethodDescriptionScoringModel.score
(TextSegment segment, String query) Scores a givenTextSegment
against a given query.Scores a given text against a given query.ScoringModel.scoreAll
(List<TextSegment> segments, String query) Scores all providedTextSegment
s against a given query. -
Uses of Response in dev.langchain4j.model.vertexai
Methods in dev.langchain4j.model.vertexai that return ResponseModifier and TypeMethodDescriptionVertexAiEmbeddingModel.embedAll
(List<TextSegment> segments) VertexAiScoringModel.scoreAll
(List<TextSegment> segments, String query) Scores all providedTextSegment
s against a given query. -
Uses of Response in dev.langchain4j.model.voyageai
Methods in dev.langchain4j.model.voyageai that return Response -
Uses of Response in dev.langchain4j.model.workersai
Methods in dev.langchain4j.model.workersai that return ResponseModifier and TypeMethodDescriptionGiven an existing image, edit this image following the given prompt and apply the changes only to the part of the image specified by the given mask.Given an existing image, edit this image following the given prompt.WorkersAiEmbeddingModel.embed
(TextSegment textSegment) Embed the text content of a TextSegment.Embed a text.WorkersAiEmbeddingModel.embedAll
(List<TextSegment> textSegments) Embeds the text content of a list of TextSegments.Given a prompt, generate an image.Generate image and save to file.Generate a response to the given prompt.Generate a response to the given prompt. -
Uses of Response in dev.langchain4j.service.output
Methods in dev.langchain4j.service.output with parameters of type Response