UNPKG

local-agent

Version:

A CLI agentic system for orchestrating tools and memory with per-folder scoping

36 lines 1.13 kB
/** * @fileoverview * OpenRouter provider implementation for the AI Provider Factory. */ import { AIProvider } from './types'; /** * OpenRouter provider implementation. */ export default class OpenRouterProvider implements AIProvider { private apiKey; private client; /** * Creates and returns an OpenRouter model instance. * @param modelName The OpenRouter model name, which might include provider namespace * @returns An OpenRouter model instance * @throws ProviderError if OpenRouter client cannot be initialized */ getModel(modelName: string): any; /** * Indicates if this provider requires an API key. * OpenRouter always requires an API key. */ requiresApiKey(): boolean; /** * Initializes the provider with an API key. * @param keys Object containing API keys */ initialize(keys: Record<string, string>): void; /** * Initialize the OpenRouter client. * @private * @throws ProviderError if the client cannot be initialized */ private initializeClient; } //# sourceMappingURL=openrouter-provider.d.ts.map