Feat/agent conversation #1
+5
-12
@@ -770,18 +770,11 @@ function handleAction(action){
|
|||||||
renderEntryEssay();
|
renderEntryEssay();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function applyUnderstandingCorrection(text){
|
// 原先这里是 applyUnderstandingCorrection:顾问在理解态说「第三段重点不是……」时,
|
||||||
const idx = parseParagraphIndex(text);
|
// 它把这句话同时写进 analysis.paragraphs[i] 的 natural_meaning_zh / semantic_anchor 和
|
||||||
if(idx===null || !analysis || !analysis.paragraphs[idx]){
|
// paragraphConstraints。Agent 化之后这条输入走 record_advisor_note,只落成分段约束,
|
||||||
globalConstraints.push(text);
|
// **锚点不再跟着改**(纠正内容仍会进诊断/复检的 paragraph_constraints)。
|
||||||
return {scope:'global', label:'文章理解的补充'};
|
// 这是已知偏差,不是遗漏:要不要补一个带 anchor 更新的「纠正理解」工具待定。
|
||||||
}
|
|
||||||
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)} 的理解`};
|
|
||||||
}
|
|
||||||
function applyDiagnosisConstraint(text){
|
function applyDiagnosisConstraint(text){
|
||||||
const raw = text.trim();
|
const raw = text.trim();
|
||||||
const idx = parseParagraphIndex(raw);
|
const idx = parseParagraphIndex(raw);
|
||||||
|
|||||||
Reference in New Issue
Block a user