feat(*): 云端 Agent - 增强画布上下文读取并接入 Gemini 缓存
This commit is contained in:
1 parent
2ce50bbb9d
commit
2cedc4c66b
35 files changed
+1927
-266
No files matched your search
@@ -165,7 +165,7 @@ func (s *Service) prepareCloudAgentImageInspection(userID, canvasID string, stat
|
||||
}
|
||||
cacheKey := cloudAgentImageInspectionCacheKey(args.NodeID, stringValue(reference["storageKey"]), canvas.Revision)
|
||||
if state.ImageInspectionReads != nil && state.ImageInspectionReads[cacheKey] > 0 {
|
||||
return nil, &cloudAgentReadLoopError{ToolName: "canvas_inspect_image", Count: state.ImageInspectionReads[cacheKey] + 1}
|
||||
return nil, &cloudAgentReadLoopError{ToolName: "canvas_inspect_image", Count: state.ImageInspectionReads[cacheKey] + 1, ReasonCode: "vision_read_guard"}
|
||||
}
|
||||
receipt := map[string]any{
|
||||
"nodeId": args.NodeID,
|
||||
|
||||
Reference in new issue
Block a user