(text, ruleRoute, decision = {})
| 4980 | } |
| 4981 | |
| 4982 | function shouldRunRecallRouteModel(text, ruleRoute, decision = {}) { |
| 4983 | const normalized = String(text || "").replace(/\s+/g, ""); |
| 4984 | if (normalized.length < 5) return false; |
| 4985 | if (ruleRoute.confidence >= 0.9) return false; |
| 4986 | if (/(那个|这个|这边|那边|刚刚|刚才|之前|上次|前两天|更新|同步|做到哪|进度|还记得|接着|继续|client|webui|通讯)/i.test(normalized)) return true; |
| 4987 | return ["read", "both"].includes(decision.action) && ruleRoute.confidence < 0.82; |
| 4988 | } |
| 4989 | |
| 4990 | async function runUnifiedMemoryRecallRouteModel(text) { |
| 4991 | const id = crypto.randomUUID(); |
no outgoing calls
no test coverage detected