pdca
Version:
🎯 AI 驅動的 PDCA 多代理開發系統 - 智能循環控制 + 成本管理 + Token 優化 + 多 AI 引擎支援
57 lines • 1.38 kB
TypeScript
/**
* 風格引擎
* 負責根據配置創建具有特定風格的代理
*/
import { EventEmitter } from 'events';
import type { AgentProfile, RuntimeConfig, ConfigLoadOptions } from '../types/config.js';
import type { Agent } from '../types/index.js';
/**
* 風格引擎主類
*/
export declare class StyleEngine extends EventEmitter {
private configLoader;
private currentProfile?;
private runtimeConfig?;
constructor();
/**
* 載入風格配置
*/
loadStyle(options: ConfigLoadOptions): Promise<RuntimeConfig>;
/**
* 創建代理實例
*/
createAgents(): Map<string, Agent>;
/**
* 創建風格化代理
*/
private createStyledAgent;
/**
* 應用配置覆蓋
*/
private applyOverrides;
/**
* 創建運行時配置
*/
private createRuntimeConfig;
/**
* 取得可用的風格列表
*/
getAvailableStyles(): Promise<string[]>;
/**
* 取得當前風格資訊
*/
getCurrentStyle(): AgentProfile | undefined;
/**
* 取得運行時配置
*/
getRuntimeConfig(): RuntimeConfig | undefined;
/**
* 驗證風格配置
*/
validateStyle(options: ConfigLoadOptions): Promise<boolean>;
/**
* 重新載入配置
*/
reloadStyle(): Promise<void>;
}
//# sourceMappingURL=style-engine.d.ts.map