fix(tcs): retry invalid history revisit frames
This commit is contained in:
parent
ab3c4e05a9
commit
bccf7e7494
3 changed files with 35 additions and 5 deletions
|
|
@ -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_anchor;past_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_anchor;past_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
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue