import { ErrorCategory } from "./error-category.type.mjs"; import { AIErrorOptions } from "./ai-error.mjs"; import { ProviderError } from "./provider-error.mjs"; //#region ../ai/src/errors/invalid-request-error.d.ts /** * Provider rejected the request as malformed — bad model name, * unsupported feature, missing required field, image attached to a * non-vision model, etc. The catch-all for 4xx responses that aren't * auth, rate-limit, context-length, or content-filter. * * Also thrown from the agent when user-side validation fails at the * boundary (e.g. vision gate, malformed attachment shape) — the * category is "you sent something the provider / agent cannot use". * * @example * if (result.error instanceof InvalidRequestError) { * logger.error("bad agent input", { context: result.error.context }); * } */ declare class InvalidRequestError extends ProviderError { static readonly defaultCategory: ErrorCategory; constructor(message: string, options?: AIErrorOptions); } //#endregion export { InvalidRequestError }; //# sourceMappingURL=invalid-request-error.d.mts.map