Refactor runtime around isolated bot instances
This commit is contained in:
+36
-63
@@ -1,64 +1,35 @@
|
||||
{
|
||||
"configVersion": 2,
|
||||
"server": {
|
||||
"host": "0.0.0.0",
|
||||
"port": 8787,
|
||||
"publicBaseUrl": ""
|
||||
},
|
||||
"policy": {
|
||||
"allowedUsers": [],
|
||||
"allowedChats": [],
|
||||
"requireMentionInGroup": true
|
||||
},
|
||||
"acp": {
|
||||
"stateFile": "",
|
||||
"initializeTimeoutMs": 10000,
|
||||
"promptTimeoutMs": 600000,
|
||||
"cancelGraceMs": 5000,
|
||||
"idleTimeoutMs": 1800000,
|
||||
"sweepIntervalMs": 60000,
|
||||
"maxProcesses": 8
|
||||
},
|
||||
"backends": [
|
||||
{
|
||||
"configVersion": 3,
|
||||
"bot": {
|
||||
"id": "BOT_ID",
|
||||
"workspace": "/absolute/path/to/workspace",
|
||||
"persona": "Describe this bot's responsibilities and boundaries.",
|
||||
"agent": {
|
||||
"id": "kimi",
|
||||
"command": "/home/USER/.kimi-code/bin/kimi",
|
||||
"args": ["acp"],
|
||||
"env": {}
|
||||
}
|
||||
],
|
||||
"skills": [],
|
||||
"defaultRole": "ROLE_ID",
|
||||
"roles": [
|
||||
{
|
||||
"id": "ROLE_ID",
|
||||
"backend": "kimi",
|
||||
"workspace": "/absolute/path/to/workspace",
|
||||
"persona": "Describe this agent's responsibilities and boundaries.",
|
||||
"skills": [],
|
||||
"policy": {
|
||||
"permissionMode": "deny",
|
||||
"allowedTools": [],
|
||||
"allowedCommandPatterns": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"platforms": {
|
||||
"feishu": {
|
||||
"enabled": false,
|
||||
"appId": "",
|
||||
"appSecret": "",
|
||||
"verificationToken": "",
|
||||
"botNames": []
|
||||
},
|
||||
"wecom": {
|
||||
"enabled": false,
|
||||
"corpId": "",
|
||||
"agentId": "",
|
||||
"secret": ""
|
||||
"skills": [],
|
||||
"permissions": {
|
||||
"mode": "deny",
|
||||
"allowedTools": [],
|
||||
"allowedCommandPatterns": []
|
||||
}
|
||||
},
|
||||
"gateway": {
|
||||
"server": {
|
||||
"host": "0.0.0.0",
|
||||
"port": 8787,
|
||||
"publicBaseUrl": ""
|
||||
},
|
||||
"qq": {
|
||||
"enabled": true,
|
||||
"policy": {
|
||||
"allowedUsers": [],
|
||||
"allowedChats": [],
|
||||
"requireMentionInGroup": true
|
||||
},
|
||||
"platform": {
|
||||
"type": "qq",
|
||||
"connectionMode": "websocket",
|
||||
"appId": "QQ_APP_ID",
|
||||
"clientSecret": "QQ_CLIENT_SECRET",
|
||||
@@ -67,15 +38,17 @@
|
||||
"botNames": ["QQ_BOT_NAME"],
|
||||
"intents": 33554432,
|
||||
"shard": [0, 1]
|
||||
},
|
||||
"webhook": {
|
||||
"enabled": false,
|
||||
"secret": ""
|
||||
},
|
||||
"weixin": {
|
||||
"enabled": false,
|
||||
"mode": "external-webhook",
|
||||
"secret": ""
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"acp": {
|
||||
"stateFile": "",
|
||||
"initializeTimeoutMs": 10000,
|
||||
"promptTimeoutMs": 7200000,
|
||||
"cancelGraceMs": 5000,
|
||||
"idleTimeoutMs": 1800000,
|
||||
"sweepIntervalMs": 60000,
|
||||
"maxProcesses": 8
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user