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

Function main

examples/refactored-agent-example.ts:9–23  ·  view source on GitHub ↗

* 重构后的 Agent 架构使用示例 * 展示 LLM 管理器和组件管理器的分离使用

()

Source from the content-addressed store, hash-verified

7 */
8
9async function main() {
10 console.log('=== 重构后的 Agent 架构示例 ===\n');
11
12 // 示例1: 直接使用 LLM 管理器
13 await demonstrateLLMManager();
14
15 // 示例2: 直接使用组件管理器
16 await demonstrateComponentManager();
17
18 // 示例3: 使用完整的 Agent(推荐方式)
19 await demonstrateFullAgent();
20
21 // 示例4: 高级用法 - 自定义管理器配置
22 await demonstrateAdvancedUsage();
23}
24
25/**
26 * 示例1: 直接使用 LLM 管理器

Callers 1

Calls 5

demonstrateLLMManagerFunction · 0.85
demonstrateFullAgentFunction · 0.85
demonstrateAdvancedUsageFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected