/** * Amazon Bedrock Provider Implementation * Uses the Converse API with support for Nova 2 web grounding * * Authentication options (in priority order): * 1. Bedrock API Key: AWS_BEARER_TOKEN_BEDROCK env var or apiKey option * 2. AWS Credentials: AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY * 3. AWS Profile: AWS_PROFILE or ~/.aws/credentials * * Bedrock API keys were introduced in July 2025 and provide simplified * authentication without requiring full IAM setup. */ import type { LLMProvider, ProviderName, Message, GenerateOptions, GenerateResponse } from './types.js'; /** * Amazon Bedrock LLM Provider * * Supports two authentication methods: * 1. Bedrock API Key (recommended for quick setup): * - Set AWS_BEARER_TOKEN_BEDROCK env var, or * - Pass apiKey in constructor options * 2. AWS Credentials (traditional): * - AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY, or * - AWS_PROFILE, or * - ~/.aws/credentials file */ export declare class BedrockProvider implements LLMProvider { readonly name: ProviderName; private client; private sdk; private defaultModel; private region; private profile?; private apiKey?; private initPromise; constructor(options?: { /** AWS region (default: us-east-1) */ region?: string; /** AWS profile name */ profile?: string; /** Bedrock API key (alternative to AWS credentials) */ apiKey?: string; /** Default model to use */ defaultModel?: string; }); /** * Initialize the Bedrock client (lazy loading) */ private ensureInitialized; private initialize; generate(prompt: string, options?: GenerateOptions): Promise; generateConversation(messages: Message[], options?: GenerateOptions): Promise; supportsWebGrounding(): boolean; getGroundingModel(): string; testConnection(): Promise; /** * Get the underlying Bedrock client for direct access */ getClient(): Promise<{ send: (command: unknown) => Promise; }>; } //# sourceMappingURL=bedrock.d.ts.map