(id: string, executeFn?: () => void)
| 28 | } |
| 29 | |
| 30 | function makeTool(id: string, executeFn?: () => void) { |
| 31 | return { |
| 32 | description: "test tool", |
| 33 | parameters: params, |
| 34 | execute() { |
| 35 | executeFn?.() |
| 36 | return Effect.succeed({ title: "test", output: "ok", metadata: {} }) |
| 37 | }, |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | describe("Tool.define", () => { |
| 42 | it.effect("object-defined tool does not mutate the original init object", () => |
no outgoing calls
no test coverage detected