Neutrome SDK reference
    Preparing search index...

    Function getFinishReason

    • Reads why the model stopped generating.

      Parameters

      • program: Program

        Response or stream chunk to read.

      Returns string

      The provider finish reason ("stop", "tool_calls", …), or an empty string when the program has not finished.