Function
createMockCallableTool
(
toolDeclarations: FunctionDeclaration[],
)
Source from the content-addressed store, hash-verified
| 92 | |
| 93 | // Helper to create a mock CallableTool for specific test needs |
| 94 | const createMockCallableTool = ( |
| 95 | toolDeclarations: FunctionDeclaration[], |
| 96 | ): Mocked<CallableTool> => ({ |
| 97 | tool: vi.fn().mockResolvedValue({ functionDeclarations: toolDeclarations }), |
| 98 | callTool: vi.fn(), |
| 99 | }); |
| 100 | |
| 101 | const baseConfigParams: ConfigParameters = { |
| 102 | cwd: '/tmp', |
Tested by
no test coverage detected