feat(agent): 云端 Agent - 增加上下文预算、任务事实与终态恢复保障
This commit is contained in:
1 parent
3bf21d79af
commit
b52bc9d5f2
61 files changed
+3512
-309
No files matched your search
@@ -27,7 +27,7 @@ func TestCloudAgentSkillEmptyDirectoryAndRepeatedRead(t *testing.T) {
|
||||
if data["entryPath"] != cloudAgentSkillEntryPath || strings.Join(data["files"].([]string), ",") != cloudAgentSkillEntryPath || !strings.Contains(data["guidance"].(string), "先读取 SKILL.md") {
|
||||
t.Fatalf("missing empty-directory guidance: %+v", data)
|
||||
}
|
||||
cloudAgentToolResult("run", &state, call, result, nil)
|
||||
cloudAgentToolResult("", &state, call, result, nil)
|
||||
if event := state.Events[0]; event.Type != "tool_completed" || event.Payload["skillName"] != "剧本撰写" || event.Payload["path"] != "" {
|
||||
t.Fatalf("missing tool context: %+v", event)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user