Uses of Enum Class
dev.langchain4j.model.output.FinishReason
Package
Description
-
Uses of FinishReason in dev.langchain4j.model.anthropic.internal.mapper
Modifier and TypeMethodDescriptionstatic FinishReason
AnthropicMapper.toFinishReason
(String anthropicStopReason) -
Uses of FinishReason in dev.langchain4j.model.bedrock
Modifier and TypeMethodDescriptionBedrockAI21LabsChatModelResponse.getFinishReason()
BedrockAnthropicCompletionChatModelResponse.getFinishReason()
BedrockAnthropicMessageChatModelResponse.getFinishReason()
BedrockCohereChatModelResponse.getFinishReason()
BedrockLlamaChatModelResponse.getFinishReason()
BedrockStabilityAIChatModelResponse.getFinishReason()
BedrockTitanChatModelResponse.getFinishReason()
-
Uses of FinishReason in dev.langchain4j.model.bedrock.internal
-
Uses of FinishReason in dev.langchain4j.model.chat.listener
Modifier and TypeMethodDescriptionChatModelResponse.ChatModelResponseBuilder.finishReason
(FinishReason finishReason) ModifierConstructorDescriptionChatModelResponse
(String id, String model, TokenUsage tokenUsage, FinishReason finishReason, AiMessage aiMessage) -
Uses of FinishReason in dev.langchain4j.model.chat.response
-
Uses of FinishReason in dev.langchain4j.model.jlama
Modifier and TypeMethodDescriptionstatic FinishReason
JlamaLanguageModel.toFinishReason
(com.github.tjake.jlama.model.functions.Generator.FinishReason reason) -
Uses of FinishReason in dev.langchain4j.model.mistralai.internal.mapper
Modifier and TypeMethodDescriptionstatic FinishReason
MistralAiMapper.finishReasonFrom
(String mistralAiFinishReason) -
Uses of FinishReason in dev.langchain4j.model.openai
Modifier and TypeMethodDescriptionstatic FinishReason
InternalOpenAiHelper.finishReasonFrom
(String openAiFinishReason) -
Uses of FinishReason in dev.langchain4j.model.output
Modifier and TypeMethodDescriptionResponse.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.Modifier and TypeMethodDescriptionstatic <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.ModifierConstructorDescriptionResponse
(@NonNull T content, TokenUsage tokenUsage, FinishReason finishReason) Create a new Response.Response
(@NonNull T content, TokenUsage tokenUsage, FinishReason finishReason, @Nullable Map<String, Object> metadata) Create a new Response. -
Uses of FinishReason in dev.langchain4j.service
ModifierConstructorDescriptionResult
(T content, TokenUsage tokenUsage, List<Content> sources, FinishReason finishReason, List<ToolExecution> toolExecutions)