/** * Claude (Anthropic) Provider Implementation * Uses the Anthropic Messages API directly with web search support * * Authentication: * - ANTHROPIC_API_KEY environment variable * - CLAUDE_API_KEY environment variable (alias) * - apiKey option in constructor * * Web Search: * - Uses the web_search_20250305 tool type * - Enabled via enableWebGrounding option * * API Reference: https://docs.anthropic.com/en/api/messages */ import type { LLMProvider, ProviderName, Message, GenerateOptions, GenerateResponse } from './types.js'; /** * Claude (Anthropic) LLM Provider * * Supports authentication via: * 1. ANTHROPIC_API_KEY environment variable * 2. CLAUDE_API_KEY environment variable (alias) * 3. apiKey option in constructor * * Web search is supported via the web_search_20250305 tool. */ export declare class ClaudeProvider implements LLMProvider { readonly name: ProviderName; private apiKey; private defaultModel; constructor(options?: { /** Anthropic API key */ apiKey?: string; /** Default model to use */ defaultModel?: string; }); generate(prompt: string, options?: GenerateOptions): Promise; generateConversation(messages: Message[], options?: GenerateOptions): Promise; supportsWebGrounding(): boolean; getGroundingModel(): string; testConnection(): Promise; } //# sourceMappingURL=claude.d.ts.map