feat(agent): 云端 Agent 运行时 - 完善 Pi 桥接、上下文压力与临时故障重试
This commit is contained in:
1 parent
0030f4da9b
commit
76ca0fd247
32 files changed
+1663
-1485
No files matched your search
@@ -364,9 +364,6 @@ func (s *Service) advanceCloudAgent(run *model.CloudAgentExecution) (err error)
|
||||
return s.failCloudAgent(run, &state, fmt.Sprintf("达到 %d 次模型调用上限,本轮已停止", stepLimit))
|
||||
}
|
||||
cloudAgentDrainInterjections(run.ID, &state)
|
||||
// 上一步的模型调用已经回来,先用它的上游实测用量更新压力锚点,再发下一步:
|
||||
// 下一步的读数与后面的正文裁剪判定都要用到这份锚点。
|
||||
s.recordCloudAgentTokenAnchor(run.UserID, &state)
|
||||
// 轮内唯一裁剪 = 图片:超出保留轮次的看图结果换成文字回执(正文一律保留)。
|
||||
// 它必须在压缩判定之前跑:图片是最贵的一类内容,先移出再评估 token 压力才有意义。
|
||||
if changed, pruned := cloudAgentPruneInspectedImages(&state.Canonical, nil); changed {
|
||||
|
||||
Reference in new issue
Block a user