Uses of Enum Class
com.tnsai.llm.ChatChunk.FinishReason
Packages that use ChatChunk.FinishReason
-
Uses of ChatChunk.FinishReason in com.tnsai.llm
Methods in com.tnsai.llm that return ChatChunk.FinishReasonModifier and TypeMethodDescriptionstatic ChatChunk.FinishReasonReturns the enum constant of this class with the specified name.static ChatChunk.FinishReason[]ChatChunk.FinishReason.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.tnsai.llm that return types with arguments of type ChatChunk.FinishReasonModifier and TypeMethodDescriptionChatChunk.getFinishReason()Gets the finish reason if available.Methods in com.tnsai.llm with parameters of type ChatChunk.FinishReasonModifier and TypeMethodDescriptionstatic ChatChunkChatChunk.done(ChatChunk.FinishReason reason, int totalTokens) Creates a DONE chunk indicating successful completion.static ChatChunkChatChunk.done(ChatChunk.FinishReason reason, int totalTokens, String model, String requestId) Creates a DONE chunk with full metadata.Constructors in com.tnsai.llm with parameters of type ChatChunk.FinishReasonModifierConstructorDescriptionChatChunk(ChatChunk.ChunkType type, String content, Instant timestamp, Integer tokenCount, Integer chunkIndex, ChatChunk.FinishReason finishReason, String model, String requestId) ChatChunk(ChatChunk.ChunkType type, String content, Instant timestamp, Integer tokenCount, Integer chunkIndex, ChatChunk.FinishReason finishReason, String model, String requestId, ChatResponse.ToolCall toolCall)