feat(agent): 云端 Agent 运行时 - 完善 Pi 桥接、上下文压力与临时故障重试
This commit is contained in:
1 parent
0030f4da9b
commit
76ca0fd247
32 files changed
+1663
-1485
No files matched your search
@@ -192,9 +192,13 @@ func TestCloudAgentContinuationSourceNeverReachesUpstreamBody(t *testing.T) {
|
||||
if got := stringField(canonical.Messages[0], cloudAgentContextSourceKey); got != "continuation" {
|
||||
t.Fatalf("canonical 丢了来源标记:%q", got)
|
||||
}
|
||||
responses, err := canonicalAgentResponsesBody(&canonical)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
for _, body := range []map[string]any{
|
||||
canonicalAgentChatBody(&canonical, false),
|
||||
canonicalAgentResponsesBody(&canonical),
|
||||
responses,
|
||||
canonicalAgentGeminiBody(&canonical),
|
||||
claudeAgentBody(canonicalAgentChatBody(&canonical, true)),
|
||||
} {
|
||||
|
||||
Reference in new issue
Block a user