UNPKG

@unified-llm/core

Version:

Unified LLM interface (in-memory).

19 lines 772 B
import { UnifiedChatRequest, UnifiedChatResponse, UnifiedStreamEventResponse, Tool } from '../../types/unified-api.js'; import BaseProvider from '../base-provider.js'; export declare class AnthropicProvider extends BaseProvider { private client; constructor({ apiKey, model, tools }: { apiKey: string; model?: string; tools?: Tool[]; }); chat(request: UnifiedChatRequest): Promise<UnifiedChatResponse>; stream(request: UnifiedChatRequest): AsyncIterableIterator<UnifiedStreamEventResponse>; private convertToAnthropicFormat; private convertFromAnthropicFormat; private convertStreamChunk; private extractTextFromContent; private handleError; private mapErrorType; } //# sourceMappingURL=provider.d.ts.map