Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Function classifyResponseFailure

    • Turn one failed response into the error the seam throws and records.

      detail — what the classifier reads to tell an exhausted quota from a transient rate limit — is the raw body text. It is passed whole to httpFailureCode and only then truncated for the message, so a classification never depends on where a quote happened to be cut.

      Parameters

      • input: {
            adapter: LlmAdapter;
            bodyText: string;
            now: () => number;
            response: Pick<HttpResponse, "status" | "headers">;
        }

      Returns LlmError