feat: add travel guide Graph with progressive output and image confirmation

This commit is contained in:
loveuer committed 2026-11-18 13:53:13 +08:00
1 parent fd3dcbe104
commit 73f6f0901e
13 files changed
+577 -26

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ func TestImageTool(t *testing.T) {
if err := json.NewDecoder(r.Body).Decode(&request); err != nil {
t.Error(err)
}
if r.URL.Path != "/v1/chat/completions" || r.Header.Get("Authorization") != "Bearer main-key" || request.Model != "main-model" || len(request.Tools) != 2 || request.Tools[0].Function.Name != "get_weather" || request.Tools[1].Function.Name != "generate_image" {
if r.URL.Path != "/v1/chat/completions" || r.Header.Get("Authorization") != "Bearer main-key" || request.Model != "main-model" || len(request.Tools) != 3 || request.Tools[0].Function.Name != "get_weather" || request.Tools[1].Function.Name != "generate_image" {
t.Errorf("主 Agent 请求不正确: %+v", request)
}
n := mainCalls.Add(1)