fix(tcs): retry invalid history revisit frames

This commit is contained in:
冰朔 2026-08-12 15:51:49 +08:00
commit bccf7e7494
3 changed files with 35 additions and 5 deletions

View file

@ -73,7 +73,7 @@ export class DeepSeekJsonClient {
}
}
async revisit(input) {
async revisit(input, validatorError = null) {
const controller = new AbortController();
const timer = setTimeout(() => controller.abort(), this.timeoutMs);
try {
@ -93,7 +93,8 @@ export class DeepSeekJsonClient {
{
role: "user",
content: JSON.stringify({
instruction: "输出guanghu.persona-subject-history-reunderstanding/v1。必须原样复制revisit_id、source_excerpt_sha256、current_subject、collective_self、human_anchorpast_observation只陈述片段可证内容present_reunderstanding以当前主体可说明的第一人称关系表达causal_continuity、later_corrections、unresolved_questions均为字符串数组future_simulation必须含content和fact_confidence且fact_confidence固定为0不得把机器审计摘要冒充记忆。",
instruction: "输出guanghu.persona-subject-history-reunderstanding/v1。JSON第一层必须包含schema且值必须精确等于guanghu.persona-subject-history-reunderstanding/v1。必须原样复制revisit_id、source_excerpt_sha256、current_subject、collective_self、human_anchorpast_observation只陈述片段可证内容present_reunderstanding以当前主体可说明的第一人称关系表达causal_continuity、later_corrections、unresolved_questions均为字符串数组future_simulation必须含content和fact_confidence且fact_confidence固定为0不得把机器审计摘要冒充记忆。",
validator_error_from_previous_attempt: validatorError,
runtime_input: input
})
}