/** * OpenRouter LLM Provider * Handles communication with OpenRouter API for LLM interactions */ import { LlmProvider, LlmConfig, ActionRequest, ActionResponse, NarrativeRequest, NarrativeResponse } from '../interfaces/llm'; export declare class OpenRouterProvider implements LlmProvider { private apiKey; private model; private client; private temperature; private maxTokens; /** * Initialize the OpenRouter provider with configuration */ initialize(config: LlmConfig): Promise; /** * Translate player input into a structured action for the game engine */ translateAction(request: ActionRequest): Promise; /** * Generate narrative prose based on game events */ generateNarrative(request: NarrativeRequest): Promise; /** * Build the system and user prompts for action translation */ private buildActionPrompt; /** * Build the system and user prompts for narrative generation */ private buildNarrativePrompt; /** * Validate and normalize the action response */ private validateActionResponse; }