/** * Anthropic Claude Provider * * Implements LLMProvider interface for Anthropic's Claude models. * Uses @anthropic-ai/sdk for API calls. */ import type { LLMProvider, AnalyzeOptions, AnalyzeResult, StructuredOptions } from '../types.js'; import { Logger } from '../../../utils/logger.js'; /** * Anthropic provider configuration */ export interface AnthropicProviderConfig { apiKey: string; model?: string; maxTokens?: number; /** Only forwarded to models that still accept sampling params - see model-capabilities.ts */ temperature?: number; baseUrl?: string; logger?: Logger; } /** * Anthropic Claude provider implementation */ export declare class AnthropicProvider implements LLMProvider { readonly name: "anthropic"; readonly defaultModel: string; private apiKey; private maxTokens; private temperature; private baseUrl; private logger; private client; constructor(config: AnthropicProviderConfig); /** * Get or create SDK client (lazy initialization) */ private getClient; /** * Analyze text with Claude */ analyze(prompt: string, options?: AnalyzeOptions): Promise; /** * Analyze with structured JSON output */ analyzeStructured(prompt: string, options: StructuredOptions): Promise<{ data: T; usage: AnalyzeResult['usage']; estimatedCost: number; }>; /** * Estimate cost for a request */ estimateCost(inputTokens: number, outputTokens: number, model?: string): number; /** * Check if provider is available */ isAvailable(): Promise; /** * Get provider status */ getStatus(): Promise<{ available: boolean; latencyMs?: number; error?: string; }>; } //# sourceMappingURL=anthropic-provider.d.ts.map