Adapters exports - Model adapters (Claude, OpenAI, Gemini, Ollama) Split from index.ts for file size compliance (Issue #285)
Wraps an async function with retry logic.
The argument types of the function
The return type of the function
The function to wrap
Retry options
A wrapped function that will retry on failure
const fetchWithRetry = withRetryWrapper( async (url: string) => fetch(url), { config: { maxRetries: 3 } });const result = await fetchWithRetry('https://api.example.com/data'); Copy
const fetchWithRetry = withRetryWrapper( async (url: string) => fetch(url), { config: { maxRetries: 3 } });const result = await fetchWithRetry('https://api.example.com/data');
Adapters exports - Model adapters (Claude, OpenAI, Gemini, Ollama) Split from index.ts for file size compliance (Issue #285)