MCPcopy Create free account
hub / github.com/Epic0522/Codex-Remote-Contact / shouldRunRecallRouteModel

Function shouldRunRecallRouteModel

src/server.js:4982–4988  ·  view source on GitHub ↗
(text, ruleRoute, decision = {})

Source from the content-addressed store, hash-verified

4980}
4981
4982function 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
4990async function runUnifiedMemoryRecallRouteModel(text) {
4991 const id = crypto.randomUUID();

Calls

no outgoing calls

Tested by

no test coverage detected