Uses of Enum Class
dev.langchain4j.model.output.FinishReason
Packages that use FinishReason
Package
Description
-
Uses of FinishReason in dev.langchain4j.model.anthropic.internal.mapper
Methods in dev.langchain4j.model.anthropic.internal.mapper that return FinishReasonModifier and TypeMethodDescriptionstatic FinishReason
AnthropicMapper.toFinishReason
(String anthropicStopReason) -
Uses of FinishReason in dev.langchain4j.model.chat.response
Methods in dev.langchain4j.model.chat.response that return FinishReasonModifier and TypeMethodDescriptionChatResponse.finishReason()
ChatResponseMetadata.finishReason()
Methods in dev.langchain4j.model.chat.response with parameters of type FinishReasonModifier and TypeMethodDescriptionChatResponse.Builder.finishReason
(FinishReason finishReason) ChatResponseMetadata.Builder.finishReason
(FinishReason finishReason) -
Uses of FinishReason in dev.langchain4j.model.jlama
Methods in dev.langchain4j.model.jlama that return FinishReasonModifier and TypeMethodDescriptionstatic FinishReason
JlamaLanguageModel.toFinishReason
(com.github.tjake.jlama.model.functions.Generator.FinishReason reason) -
Uses of FinishReason in dev.langchain4j.model.mistralai.internal.mapper
Methods in dev.langchain4j.model.mistralai.internal.mapper that return FinishReasonModifier and TypeMethodDescriptionstatic FinishReason
MistralAiMapper.finishReasonFrom
(String mistralAiFinishReason) -
Uses of FinishReason in dev.langchain4j.model.openai.internal
Methods in dev.langchain4j.model.openai.internal that return FinishReasonModifier and TypeMethodDescriptionstatic FinishReason
OpenAiUtils.finishReasonFrom
(String openAiFinishReason) -
Uses of FinishReason in dev.langchain4j.model.output
Methods in dev.langchain4j.model.output that return FinishReasonModifier and TypeMethodDescription@Nullable FinishReason
Response.finishReason()
Get the finish reason.static FinishReason
Returns the enum constant of this class with the specified name.static FinishReason[]
FinishReason.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in dev.langchain4j.model.output with parameters of type FinishReasonModifier and TypeMethodDescriptionstatic <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.Constructors in dev.langchain4j.model.output with parameters of type FinishReasonModifierConstructorDescriptionResponse
(T content, @Nullable TokenUsage tokenUsage, @Nullable FinishReason finishReason) Create a new Response.Response
(T content, @Nullable TokenUsage tokenUsage, @Nullable FinishReason finishReason, @Nullable Map<String, Object> metadata) Create a new Response. -
Uses of FinishReason in dev.langchain4j.service
Methods in dev.langchain4j.service that return FinishReasonModifier and TypeMethodDescriptionResult.finishReason()
Returns finish reason of the finalChatModel
response (taken fromResult.finalResponse()
).Methods in dev.langchain4j.service with parameters of type FinishReasonConstructors in dev.langchain4j.service with parameters of type FinishReasonModifierConstructorDescriptionResult
(T content, TokenUsage tokenUsage, List<Content> sources, FinishReason finishReason, List<ToolExecution> toolExecutions)