Neutrome SDK reference
    Preparing search index...

    Function extractThinkingText

    • Reads model reasoning text.

      Parameters

      • program: Program

        Program to read.

      • Optionalspan: ThinkingSpan

        Thinking span to read. Omit to join every thinking block in the program, separated by blank lines.

      Returns string

      The reasoning text, empty when the program carries none.

      const reasoning = extractThinkingText(response);