File size: 1,668 Bytes
3a1230d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
  "version": "2.1",
  "system": {
    "name": "虫群智能体",
    "log_level": "INFO",
    "data_dir": "/home/admin/swarm/data"
  },
  "models": {
    "local_memory": {
      "enabled": true,
      "name": "本地记忆模型",
      "type": "local",
      "default_confidence": 0.3,
      "priority": 10
    },
    "glm_api": {
      "enabled": true,
      "name": "智谱GLM-4-Flash",
      "type": "api",
      "endpoint": "https://open.bigmodel.cn/api/paas/v4/chat/completions",
      "model_name": "glm-4-flash",
      "default_confidence": 0.8,
      "max_tokens": 1024,
      "priority": 5,
      "timeout": 30
    }
  },
  "router": {
    "complexity_thresholds": {
      "simple": 0.35,
      "medium": 0.5,
      "complex": 0.7
    },
    "default_chain": [
      "local_memory",
      "glm_api"
    ]
  },
  "skills": {
    "safety_filter": {
      "enabled": true,
      "strict_mode": false
    },
    "text_parser": {
      "enabled": true,
      "max_keywords": 10
    },
    "task_classifier": {
      "enabled": true
    },
    "dialogue_manager": {
      "enabled": true
    }
  },
  "engine": {
    "max_workers": 4,
    "quick_match_enabled": true,
    "stream_enabled": false,
    "skill_pipeline_enabled": true,
    "task_boost": {
      "code": 0.15,
      "analysis": 0.15,
      "compute": 0.1
    }
  },
  "api_keys": {
    "glm_api_env": "GLM_API_KEY",
    "glm_api_file": "/home/admin/swarm/api.env"
  },
  "web": {
    "host": "0.0.0.0",
    "port": 5000,
    "debug": false
  },
  "monitor": {
    "enabled": true,
    "persist_path": "/home/admin/swarm/data/metrics.json",
    "max_records": 10000,
    "report_interval_s": 60
  }
}