get finishReason() {
    let result

    if (this.isError) {
      return result
    }

    const cmd = this.#command
    if (cmd.isAi21() === true) {
      result = this.#parsedBody.completions?.[0]?.finishReason.reason
    } else if (cmd.isClaude() === true || cmd.isClaude3() === true) {
      result = this.#parsedBody.stop_reason
    } else if (cmd.isCohere() === true) {
      result = this.#parsedBody.generations?.find((r) => r.finish_reason !== null)?.finish_reason
    } else if (cmd.isLlama() === true) {
      result = this.#parsedBody.stop_reason
    } else if (cmd.isTitan() === true) {
      result = this.#parsedBody.results?.find((r) => r.completionReason !== null)?.completionReason
    }
    return result
  }
The reason the model has given for finishing the response.

@returns {string|*}