-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenclaw.plugin.json
More file actions
96 lines (96 loc) · 2.57 KB
/
openclaw.plugin.json
File metadata and controls
96 lines (96 loc) · 2.57 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
{
"id": "smart-token-gateway",
"name": "Smart Token Gateway",
"description": "渐进式 LLM 对话历史压缩代理,支持多轮累积压缩、精确检索和预算控制",
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"description": "是否启用 Smart Token Gateway"
},
"compressor": {
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "压缩使用的模型",
"default": "qwen/qwen3.5-27b"
},
"threshold_tokens": {
"type": "number",
"description": "触发压缩的 token 阈值",
"default": 4096
},
"keep_recent_rounds": {
"type": "number",
"description": "保留最近的轮数",
"default": 2
},
"summary_max_tokens": {
"type": "number",
"description": "摘要最大 token 数",
"default": 1228
}
}
},
"cache": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "是否启用缓存",
"default": true
},
"similarity_threshold": {
"type": "number",
"description": "缓存相似度阈值",
"default": 0.95
},
"ttl_minutes": {
"type": "number",
"description": "缓存 TTL(分钟)",
"default": 60
}
}
},
"budget": {
"type": "object",
"properties": {
"per_request": {
"type": ["number", "null"],
"description": "单次请求限额"
},
"hourly": {
"type": ["number", "null"],
"description": "小时限额"
},
"daily": {
"type": ["number", "null"],
"description": "日限额"
},
"session": {
"type": ["number", "null"],
"description": "Session 限额"
}
}
},
"history_index": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "是否启用历史索引",
"default": true
},
"storage_path": {
"type": "string",
"description": "存储路径",
"default": "~/.openclaw/stg/history.db"
}
}
}
}
}
}