/**
 * OpenRouter Executor Service
 *
 * Concrete executor for the OpenRouter provider, extending AiSdkBaseExecutorService.
 * Creates models via @openrouter/ai-sdk-provider.
 */
import { createOpenRouter } from '@openrouter/ai-sdk-provider';
import { AgentType } from '../../../../../domain/generated/output.js';
import { AiSdkBaseExecutorService } from './ai-sdk-base-executor.service.js';
const DEFAULT_MODEL = 'anthropic/claude-sonnet-4.5';
export class OpenRouterExecutorService extends AiSdkBaseExecutorService {
    agentType = AgentType.OpenRouter;
    provider;
    constructor(apiKey) {
        super(apiKey, 'OpenRouter');
        this.provider = createOpenRouter({ apiKey });
    }
    createModel(modelId) {
        return this.provider.chat(modelId ?? DEFAULT_MODEL);
    }
}
