Class ThinkingResult

java.lang.Object
com.tnsai.reasoning.ThinkingResult

public final class ThinkingResult extends Object
Result from extended thinking mode execution.

Contains both the thinking process and the final answer, along with token usage statistics.

  • Method Details

    • getThinkingProcess

      public String getThinkingProcess()
      Gets the full thinking process text.
    • getFinalAnswer

      public String 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

      public List<String> getThinkingBlocks()
      Gets individual thinking blocks (if available).
    • hasThinking

      public boolean hasThinking()
      Returns true if extended thinking was used.
    • builder

      public static ThinkingResult.Builder builder()
      Creates a new builder for ThinkingResult.
    • toString

      public String toString()
      Overrides:
      toString in class Object