UNPKG

@vfarcic/dot-ai

Version:

AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance

43 lines 1.56 kB
/** * Vercel AI Provider Implementation * * Implements AIProvider interface using Vercel AI SDK. * Supports OpenAI and Google Gemini providers through unified interface. */ import { AIProvider, AIResponse, AIProviderConfig, ToolLoopConfig, AgenticResult } from '../ai-provider.interface'; export declare class VercelProvider implements AIProvider { private providerType; private model; private apiKey; private debugMode; private baseURL?; private customHeaders?; private modelInstance; constructor(config: AIProviderConfig); private validateConfiguration; private initializeModel; getProviderType(): string; getDefaultModel(): string; getModelName(): string; isInitialized(): boolean; private logDebugIfEnabled; sendMessage(message: string, operation?: string, evaluationContext?: { user_intent?: string; interaction_id?: string; }): Promise<AIResponse>; /** * Agentic tool loop using Vercel AI SDK * * Implements multi-turn tool calling using generateText with maxSteps. * The Vercel AI SDK handles the conversation loop automatically. * * Provider-specific caching: * - Anthropic: Manual cache control via providerOptions * - OpenAI: Automatic caching (no code changes needed) * - Google: Check Gemini caching capabilities * * See PRD #143 Milestone 2.5 for Vercel provider implementation details. */ toolLoop(config: ToolLoopConfig): Promise<AgenticResult>; } //# sourceMappingURL=vercel-provider.d.ts.map