/**
 * Thrown when the model's structured-output call fails JSON Schema
 * validation. Carries the raw arguments and the validator's error
 * list so consumers can log, retry, or surface diagnostics.
 */
export class OutputValidationError extends Error {
    raw;
    errors;
    constructor(message, raw, errors) {
        super(message);
        this.name = "OutputValidationError";
        this.raw = raw;
        this.errors = errors;
    }
}
//# sourceMappingURL=types.js.map