Feat/agent conversation #1

Merged
GaoRuiXin merged 3 commits from feat/agent-conversation into main 2026-09-11 03:18:28 +00:00
Showing only changes of commit bdc6a53f81 - Show all commits
+5 -12
View File
@@ -770,18 +770,11 @@ function handleAction(action){
renderEntryEssay();
}
}
function applyUnderstandingCorrection(text){
const idx = parseParagraphIndex(text);
if(idx===null || !analysis || !analysis.paragraphs[idx]){
globalConstraints.push(text);
return {scope:'global', label:'文章理解的补充'};
}
analysis.paragraphs[idx].natural_meaning_zh = text;
analysis.paragraphs[idx].semantic_anchor = text;
const pid = pidOf(idx);
(paragraphConstraints[pid]=paragraphConstraints[pid]||[]).push(text);
return {scope:pid, label:`${paragraphLabel(idx)} 的理解`};
}
// 原先这里是 applyUnderstandingCorrection:顾问在理解态说「第三段重点不是……」时,
// 它把这句话同时写进 analysis.paragraphs[i] 的 natural_meaning_zh / semantic_anchor 和
// paragraphConstraints。Agent 化之后这条输入走 record_advisor_note,只落成分段约束,
// **锚点不再跟着改**(纠正内容仍会进诊断/复检的 paragraph_constraints)。
// 这是已知偏差,不是遗漏:要不要补一个带 anchor 更新的「纠正理解」工具待定。
function applyDiagnosisConstraint(text){
const raw = text.trim();
const idx = parseParagraphIndex(raw);