feat: add provider-native request switches (#5254)

This commit is contained in:
chengyongru
2026-08-05 18:26:39 +08:00
committed by GitHub
parent 5a1ab44baa
commit 67805f5db8
32 changed files with 1130 additions and 52 deletions
@@ -1165,12 +1165,13 @@ describe("AgentActivityCluster", () => {
id: "search-start",
role: "tool",
kind: "trace",
content: line,
traces: [line],
content: "web_search()",
traces: ["web_search()"],
toolEvents: [{
phase: "start",
call_id: "hosted-search-1",
name: "web_search",
arguments: { query: "site:linkedin.com/company Evomap startup" },
arguments: {},
}],
createdAt: 1,
},
@@ -1182,6 +1183,7 @@ describe("AgentActivityCluster", () => {
traces: [line],
toolEvents: [{
phase: "error",
call_id: "hosted-search-1",
name: "web_search",
arguments: { query: "site:linkedin.com/company Evomap startup" },
error: "Search provider rate limited the request",