ai-functions
Version:
Core AI primitives for building intelligent applications
25 lines • 876 B
TypeScript
/**
* Anthropic Message Batches API Adapter
*
* Implements batch processing using Anthropic's Message Batches API:
* - 50% cost discount
* - 24-hour turnaround
* - Up to 10,000 requests per batch
*
* This file is a small adapter on top of the BatchProvider port (`./provider.js`).
* It owns only the Anthropic-specific request/response shapes and HTTP calls;
* shared concerns (polling, JSON-Schema conversion, JSON parsing) live in the port.
*
* @see https://docs.anthropic.com/en/docs/build-with-claude/message-batches
*
* @packageDocumentation
*/
import { type BatchAdapter } from './provider.js';
/** Configure the Anthropic client. */
export declare function configureAnthropic(options: {
apiKey?: string;
baseUrl?: string;
}): void;
declare const anthropicAdapter: BatchAdapter;
export { anthropicAdapter };
//# sourceMappingURL=anthropic.d.ts.map