Uses of Enum Class
dev.langchain4j.model.output.FinishReason
Packages that use FinishReason
-
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.output
Subclasses with type arguments of type FinishReason in dev.langchain4j.model.outputMethods in dev.langchain4j.model.output that return FinishReasonModifier and TypeMethodDescription@Nullable FinishReasonResponse.finishReason()Get the finish reason.static FinishReasonReturns 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.