Spaces:
Paused
Paused
Download src/agents/test-helpers/fast-coding-tools.ts from nikhtu10/OpenClawBot: direct link, hf CLI and curl.
- Browser
- Download file 510 Bytes
-
https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/src/agents/test-helpers/fast-coding-tools.ts
- Command line
-
hf download hf://spaces/nikhtu10/OpenClawBot/src/agents/test-helpers/fast-coding-tools.ts
-
curl -L -o fast-coding-tools.ts https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/src/agents/test-helpers/fast-coding-tools.ts
510 Bytes
| import { vi } from "vitest"; | |
| const stubTool = (name: string) => ({ | |
| name, | |
| description: `${name} stub`, | |
| parameters: { type: "object", properties: {} }, | |
| execute: vi.fn(), | |
| }); | |
| vi.mock("../tools/image-tool.js", () => ({ | |
| createImageTool: () => stubTool("image"), | |
| })); | |
| vi.mock("../tools/web-tools.js", () => ({ | |
| createWebSearchTool: () => null, | |
| createWebFetchTool: () => null, | |
| })); | |
| vi.mock("../../plugins/tools.js", () => ({ | |
| resolvePluginTools: () => [], | |
| getPluginToolMeta: () => undefined, | |
| })); | |