feat(*): 云端 Agent - 增强画布上下文读取并接入 Gemini 缓存
This commit is contained in:
1 parent
2ce50bbb9d
commit
2cedc4c66b
35 files changed
+1927
-266
No files matched your search
@@ -176,7 +176,13 @@ func compileCloudAgentPolicies(req CloudAgentRequest, skills []cloudAgentSkill,
|
||||
"maxGenerationTasks": req.Budget.MaxGenerationTasks, "maxVideoSeconds": req.Budget.MaxVideoSeconds,
|
||||
},
|
||||
"maxToolCalls": cloudAgentMaxToolCalls, "maxOutputBytes": cloudAgentMaxOutputBytes,
|
||||
"canvasSummary": canvasSummary,
|
||||
}
|
||||
if strings.TrimSpace(canvasSummary) != "" {
|
||||
// Callers may provide a catalog for policy-contract tests or other
|
||||
// isolated compilation paths. The production run path deliberately
|
||||
// passes an empty value and places the catalog in canonical messages so
|
||||
// the stable system prefix remains cacheable.
|
||||
context["canvasSummary"] = canvasSummary
|
||||
}
|
||||
if len(anchors) > 0 {
|
||||
// User intent remains in user messages, never frozen into system context.
|
||||
|
||||
Reference in new issue
Block a user