UNPKG

@nomyx/assistant

Version:

A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)

17 lines (16 loc) 599 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AIProviderError = void 0; class AIProviderError extends Error { constructor(message, code, provider, details, retryable) { super(message); this.code = code; this.provider = provider; this.details = details; this.retryable = retryable; this.name = 'AIProviderError'; // This line is necessary for proper prototype chain setup in TypeScript Object.setPrototypeOf(this, AIProviderError.prototype); } } exports.AIProviderError = AIProviderError;