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

This commit is contained in:
chengyongru authored and GitHub committed 2026-08-05 18:26:39 +08:00
1 parent 5a1ab44baa
commit 67805f5db8
32 files changed
+1130 -52

No files matched your search

@@ -8,6 +8,10 @@ function describeTrace(line: string, status: GenericToolStatus = "done") {
}
describe("trace activity semantics", () => {
it("uses readable copy when a hosted search query is unavailable", () => {
expect(describeTrace("web_search()").label).toBe("Searched the web");
});
it.each([
['web_search({"query":"nanobot latest release"})', "done", "Searched nanobot latest release", ""],
['web_fetch({"url":"https://example.com/docs?token=private"})', "done", "Read", "example.com/docs"],