UNPKG

@yuchida-tamu/podcast-gen

Version:

AI-Powered Monologue Podcast Generator

28 lines 821 B
// Core data structures for the podcast generator // LLM Error types export class LLMError extends Error { code; retryable; constructor(message, code, retryable = false) { super(message); this.name = 'LLMError'; this.code = code; this.retryable = retryable; } } export class LLMAuthenticationError extends LLMError { constructor(message = 'Authentication failed') { super(message, 'AUTHENTICATION_ERROR', false); } } export class LLMRateLimitError extends LLMError { constructor(message = 'Rate limit exceeded') { super(message, 'RATE_LIMIT_ERROR', true); } } export class LLMNetworkError extends LLMError { constructor(message = 'Network error') { super(message, 'NETWORK_ERROR', true); } } //# sourceMappingURL=index.js.map