@johnhenry/aimatey-errors
v0.3.0
Published
Error classes for Aimatey - Universal AI Adapter System
Readme
@johnhenry/aimatey-errors
Note: Previously published as
[email protected].
Error classes and error handling utilities
Part of the aimatey monorepo.
Installation
npm install @johnhenry/aimatey-errorsExports
AdapterErrorAuthenticationErrorRateLimitErrorValidationErrorProviderErrorNetworkErrorErrorCodetoUserMessage,DEFAULT_USER_MESSAGES,GENERIC_USER_MESSAGE- end-user-safe text (messageis for developers; showuserMessage/toUserMessage(error))
Usage
import { AdapterError, AuthenticationError, RateLimitError, ValidationError, ProviderError, NetworkError, ErrorCode } from '@johnhenry/aimatey-errors';API Reference
See the TypeScript definitions for detailed API documentation.
License
MIT - see LICENSE for details.
