MCPcopy Create free account
hub / github.com/astercloud/aster / main

Function main

examples/comprehensive/main.go:16–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14)
15
16func main() {
17 fmt.Println("=== Aster 综合功能演示 ===")
18
19 ctx := context.Background()
20
21 // ===== 1. 带防护栏的 Agent =====
22 fmt.Println("📝 演示 1: 带安全防护的 Agent")
23 demoSafeAgent(ctx)
24
25 // ===== 2. 完整的 Workflow =====
26 fmt.Println("\n📝 演示 2: 复杂 Workflow 编排")
27 demoComplexWorkflow(ctx)
28
29 // ===== 3. WorkflowAgent 智能编排 =====
30 fmt.Println("\n📝 演示 3: WorkflowAgent 智能编排")
31 demoWorkflowAgent(ctx)
32
33 fmt.Println("\n🎉 所有演示完成!")
34}
35
36// 演示 1: 带防护栏的 Safe Agent
37func demoSafeAgent(ctx context.Context) {

Callers

nothing calls this directly

Calls 3

demoSafeAgentFunction · 0.85
demoComplexWorkflowFunction · 0.85
demoWorkflowAgentFunction · 0.85

Tested by

no test coverage detected