API Reference
Notes & Caveats
Requirements, edge cases, and dependency behavior
- Requires Node 20+ for
AbortSignal.any. - Non retryable status codes (default
400, 401, 403) fail fast instead of consuming a retry and are reported asLLMError('api', status). - An already aborted
signalrejects immediately withLLMError('aborted')before any request is dispatched. - Per attempt timeouts throw
LLMError('timeout')and can be retried like other transient failures. jsonMode: falseskips JSON parsing entirely and returns the raw string.zodand provider SDKs (openai,groq-sdk,@anthropic-ai/sdk) are not bundled. Bring your own. This package only relies on their shapes structurally.