Package com.tnsai.reasoning
Class ThinkingResult
java.lang.Object
com.tnsai.reasoning.ThinkingResult
Result from extended thinking mode execution.
Contains both the thinking process and the final answer, along with token usage statistics.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for ThinkingResult. -
Method Summary
Modifier and TypeMethodDescriptionstatic ThinkingResult.Builderbuilder()Creates a new builder for ThinkingResult.Gets the final answer after thinking.intGets the number of tokens in the final output.Gets individual thinking blocks (if available).Gets the full thinking process text.intGets the number of tokens used for thinking.intGets the total token usage.booleanReturns true if extended thinking was used.toString()
-
Method Details
-
getThinkingProcess
Gets the full thinking process text. -
getFinalAnswer
Gets the final answer after thinking. -
getThinkingTokens
public int getThinkingTokens()Gets the number of tokens used for thinking. -
getOutputTokens
public int getOutputTokens()Gets the number of tokens in the final output. -
getTotalTokens
public int getTotalTokens()Gets the total token usage. -
getThinkingBlocks
Gets individual thinking blocks (if available). -
hasThinking
public boolean hasThinking()Returns true if extended thinking was used. -
builder
Creates a new builder for ThinkingResult. -
toString
-