-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbeeclaw.example.json
More file actions
156 lines (140 loc) · 3.38 KB
/
beeclaw.example.json
File metadata and controls
156 lines (140 loc) · 3.38 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"$schema": "./beeclaw.schema.json",
"$comment": "Beeclaw v6 - 完整配置示例。注意:运行时以 src/infra/config/schema.ts 中的 Zod schema 为准(Single Source of Truth)。beeclaw.schema.json 仅用于编辑器智能提示,可能滞后于 Zod schema,如有冲突请以 Zod schema 为准。",
"providers": [
{
"name": "zhipu",
"type": "zhipu",
"apiKey": "${ZHIPU_API_KEY}",
"default": true,
"models": {
"glm-5": { "contextWindow": 131072, "maxTokens": 131072 },
"glm-4.7-flashx": { "contextWindow": 131072, "maxTokens": 131072 },
"glm-4.6v": { "contextWindow": 32768, "maxTokens": 32768 },
"embedding-3": {}
}
}
],
"roles": {
"chat": {
"provider": "zhipu",
"model": "glm-5",
"params": { "temperature": 0.7, "max_tokens": 65536 }
},
"fast": {
"provider": "zhipu",
"model": "glm-4.7-flashx",
"params": { "temperature": 0.3, "max_tokens": 65536 }
},
"vision": {
"provider": "zhipu",
"model": "glm-4.6v",
"params": { "temperature": 0.5, "max_tokens": 16384 }
},
"embedding": {
"provider": "zhipu",
"model": "embedding-3"
}
},
"llmRouter": {
"enabled": true,
"tiers": {
"fast": {
"role": "fast",
"params": { "max_tokens": 8192 }
},
"standard": { "role": "chat" }
},
"fallbackEnabled": true,
"costTracking": true
},
"agent": {
"role": "chat",
"visionRole": "vision",
"name": "Beeclaw Assistant",
"systemPrompt": "You are a helpful AI assistant with memory capabilities."
},
"toolSelector": {
"embedding": { "role": "embedding" },
"strategy": "hybrid",
"maxTools": 30
},
"compression": {
"role": "fast",
"enabled": true,
"threshold": 0.8,
"keepRecent": 8,
"maxSummaryTokens": 1000,
"strategy": "hybrid"
},
"feishu": {
"enabled": true,
"appId": "${LARK_BEECLAW_APPID}",
"appSecret": "${LARK_BEECLAW_AS}",
"useCardV2": true,
"logLevel": "error"
},
"user": {
"location": "北京海淀",
"timezone": "Asia/Shanghai",
"locale": "zh-CN"
},
"weather": {
"apiHost": "devapi.qweather.com",
"apiKey": "${QWEATHER_API_KEY}",
"defaultLocation": "北京海淀"
},
"memory": {
"type": "filesystem",
"path": "./data/memory",
"tools": {
"enabled": ["memory_ls", "memory_grep", "memory_read", "memory_write", "memory_record"],
"autoRecord": true
},
"retention": {
"conversations": "90d",
"facts": "forever",
"decisions": "forever"
}
},
"mcp": {
"enabled": true,
"servers": [
{
"id": "filesystem",
"name": "File System",
"transport": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "./data/workspace"],
"enabled": true
}
]
},
"hooks": {
"enabled": true,
"directories": ["./hooks"]
},
"logging": {
"level": "info",
"format": "pretty"
},
"web": {
"enabled": false,
"port": "${BEECLAW_PORT:-3000}",
"auth": {
"level": "none",
"token": "${WEBUI_AUTH_TOKEN}"
}
},
"search": {
"providers": {
"bocha": {
"apiKey": "${BOCHA_API_KEY}"
},
"tavily": {
"apiKey": "${TAVILY_API_KEY}"
}
},
"defaultProvider": "bocha"
}
}