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 voidStreamingResponseHandler.onComplete(Response<T> response) Invoked when the language model has finished streaming a 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.Methods in dev.langchain4j.model.embedding that return types with arguments of type ResponseModifier and TypeMethodDescriptionBatchEmbeddingModel.list(@Nullable BatchPagination pagination) Lists embedding batch jobs with optional pagination.Retrieves the current state and results of an embedding batch operation.BatchEmbeddingModel.submit(BatchRequest<TextSegment> request) Creates a batch of text segments and submits them for asynchronous embedding processing. -
Uses of Response in dev.langchain4j.model.embedding.listener
Methods in dev.langchain4j.model.embedding.listener that return ResponseMethods in dev.langchain4j.model.embedding.listener with parameters of type ResponseModifier and TypeMethodDescription -
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.Methods in dev.langchain4j.model.image that return types with arguments of type ResponseModifier and TypeMethodDescriptionBatchImageModel.list(@Nullable BatchPagination pagination) Lists image generation batch jobs with optional pagination.Retrieves the current state and results of an image generation batch operation.BatchImageModel.submit(BatchRequest<String> request) Creates a batch of image generation prompts and submits them for asynchronous processing. -
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.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.default Response<Moderation> Moderates the given text.default Response<Moderation> ModerationModel.moderate(List<ChatMessage> messages) Moderates the given list of chat messages. -
Uses of Response in dev.langchain4j.model.output
Methods in dev.langchain4j.model.output that return ResponseModifier and TypeMethodDescriptionstatic <T> Response<T> Response.from(T content) Create a new Response.static <T> Response<T> Response.from(T content, @Nullable TokenUsage tokenUsage) Create a new Response.static <T> Response<T> Response.from(T content, @Nullable TokenUsage tokenUsage, @Nullable FinishReason finishReason) Create a new Response.static <T> Response<T> Response.from(T content, @Nullable TokenUsage tokenUsage, @Nullable FinishReason finishReason, @Nullable Map<String, Object> metadata) Create a new 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 givenTextSegmentagainst a given query.Scores a given text against a given query.ScoringModel.scoreAll(List<TextSegment> segments, String query) Scores all providedTextSegments against a given query.