@chainlink/mcp-server
Version:
Prototype MCP Server for CLL
33 lines • 1.02 kB
JavaScript
;
/**
* @fileoverview Core AI service interfaces and abstract base class
*
* Defines the common contract for all AI service implementations in the system.
* Supports multiple AI providers (OpenAI, Anthropic, Gemini, Ollama) with
* consistent interfaces for message handling and response processing.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.AIService = void 0;
/**
* Abstract base class for AI service implementations
*
* Provides a common interface for different AI providers while allowing
* each implementation to handle provider-specific details like authentication,
* request formatting, and response parsing.
*
* @abstract
* @class AIService
*/
class AIService {
config;
/**
* Initialize the AI service with configuration
*
* @param config - Service configuration including API key and model
*/
constructor(config) {
this.config = config;
}
}
exports.AIService = AIService;
//# sourceMappingURL=ai-service.js.map