cf_tier
Grades candidate memory fragments A/B/C and fills a character budget from highest to lowest value to decide which fragments to admit and which to discard.
Instructions
对候选记忆/上下文片段做价值分级准入:提纯去噪 → A/B/C 分级 → 按预算从高到低填充,输出准入列表与丢弃明细。【何时调】候选片段超出预算、需要决定「留哪些、丢哪些」时;片段很少(不足 5 条)可直接注入,不必先分级。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fragments": "<fragments>"
},
"name": "cf_tier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| now | No | 用于测试的当前时间戳(毫秒),必须 ≥ 0 | |
| query | No | 用于评分的当前请求 | |
| fragments | Yes | 候选片段列表 | |
| totalChars | No | 总预算(字符),默认 800;必须 ≥ 0(填 0 表示不赋予预算,全部片段都会被丢弃) | |
| reservedChars | No | 预留前缀字符数,默认 250;必须 ≥ 0,且不应大于 totalChars(否则预算被预留吃光,什么都不会被准入) |