UNPKG

venice-ai-sdk-apl

Version:

A comprehensive SDK for the Venice AI API with CLI support, programmatic CLI usage, CLI-style interface, and interactive demo

55 lines (54 loc) 1.03 kB
/** * Validation Error class * * This class represents validation errors that occur when validating * input parameters before making API requests. */ /** * Validation Error options */ export interface ValidationErrorOptions { /** * Error message */ message: string; /** * Field that failed validation */ field?: string; /** * Expected value or type */ expected?: string; /** * Actual value or type */ actual?: string; } /** * Validation Error class */ export declare class ValidationError extends Error { /** * Field that failed validation */ field?: string; /** * Expected value or type */ expected?: string; /** * Actual value or type */ actual?: string; /** * Creates a new validation error * * @param options - Error options */ constructor(options: ValidationErrorOptions); /** * Returns a string representation of the error */ toString(): string; }