Variable LLM_FAILURE_CODEConst
LLM_FAILURE_CODE: Readonly<
{
ABORTED: "ABORTED";
AUTH: "AUTH";
CONTEXT_WINDOW_EXCEEDED: "CONTEXT_WINDOW_EXCEEDED";
EMPTY_RESPONSE: "EMPTY_RESPONSE";
INVALID_CREDENTIAL: "INVALID_CREDENTIAL";
INVALID_REQUEST: "INVALID_REQUEST";
MISSING_CREDENTIAL: "MISSING_CREDENTIAL";
QUOTA: "QUOTA";
RATE_LIMIT: "RATE_LIMIT";
SERVER: "SERVER";
TIMEOUT: "TIMEOUT";
TRANSPORT: "TRANSPORT";
UNKNOWN: "UNKNOWN";
},
> = ...
The provider-neutral routing codes AMC ships.
Spelled exactly as dsh spells them, on purpose: these strings are the shared classification vocabulary an adapter ported from dsh already produces, and a silent respelling would make a ported classifier route into nothing. They are deliberately NOT
AMC_-prefixed — the prefix in this repository marks AMC's own contract violations (seeLlmStreamProtocolCode), and a provider's rate limit is not an AMC contract violation.codeonLlmFailurestays a plainstringrather than this union, because an unclassifiable HTTP status becomesHTTP_<status>and the set is therefore open by construction.