MCPcopy Create free account
hub / github.com/echoVic/blade-code / constructor

Method constructor

src/tools/ToolManager.ts:27–40  ·  view source on GitHub ↗
(config: ToolManagerConfig = {})

Source from the content-addressed store, hash-verified

25 private config: Required<ToolManagerConfig>;
26
27 constructor(config: ToolManagerConfig = {}) {
28 super();
29
30 this.config = {
31 debug: false,
32 maxConcurrency: 10,
33 executionTimeout: 30000, // 30秒
34 logHistory: true,
35 maxHistorySize: 1000,
36 ...config,
37 };
38
39 this.log('工具管理器已初始化', { config: this.config });
40 }
41
42 /**
43 * 注册工具

Callers

nothing calls this directly

Calls 1

logMethod · 0.95

Tested by

no test coverage detected