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. -
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.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.Moderates the given text.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> @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.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.