UNPKG

azureai-optimizer

Version:

AI-Powered Azure Infrastructure Optimization via Model Context Protocol

62 lines 1.59 kB
/** * Tool Registry * Manages registration and execution of optimization tools */ import { AuthContext } from '../auth/azure-auth.js'; export interface ToolConfig { enabledTools?: string[]; aiProviders?: { openai?: { apiKey: string; model?: string; }; anthropic?: { apiKey: string; model?: string; }; ollama?: { baseUrl?: string; model?: string; }; }; caching?: { enabled: boolean; ttl: number; }; } export interface Tool { name: string; description: string; inputSchema: any; execute(args: any, context: AuthContext): Promise<any>; } export interface Resource { uri: string; name: string; description: string; mimeType: string; } export interface ResourceContent { uri: string; mimeType: string; content: string; } export declare class ToolRegistry { private tools; private resources; private config; private logger; constructor(config?: ToolConfig); initialize(): Promise<void>; private registerTool; private registerResource; getTools(): Promise<Tool[]>; getToolNames(): Promise<string[]>; getResources(): Promise<Resource[]>; executeTool(name: string, args: any, context: AuthContext): Promise<any>; readResource(uri: string, context: AuthContext): Promise<ResourceContent>; private validateToolInput; private generateCostOptimizationGuide; private generateComplianceFrameworksDoc; } //# sourceMappingURL=registry.d.ts.map