/** * Did the provider refuse because the PROMPT did not fit? * * There is no status code for it. Every provider answers an oversized prompt * with its own sentence, on a 400 that looks exactly like the 400 for a malformed * request, and the only thing that tells them apart is the prose. So this file is * a pattern set — an unglamorous shape, and the honest one, which is why it is * ported from somebody who already collected the sentences from real traffic * rather than guessed at them. * * The exclusion half is the part worth reading twice. "Too many tokens, please * wait before trying again" is Bedrock THROTTLING, and a caller that treats it as * an overflow answers a rate limit by summarizing the thread and calling straight * back — turning one 429 into two, at the exact moment the provider asked for * fewer. The overflow patterns are matched only after the non-overflow patterns * have had their say. */ export declare function isContextOverflow(error: unknown): boolean; //# sourceMappingURL=overflow.d.ts.map