(tool: unknown)
| 21 | } |
| 22 | |
| 23 | function toolDescription(tool: unknown): string { |
| 24 | const description = (tool as { description?: unknown }).description; |
| 25 | if (typeof description !== "string") throw new Error("tool has no description"); |
| 26 | return description; |
| 27 | } |
| 28 | |
| 29 | function makeWorkspace(): Workspace { |
| 30 | return new Workspace({ storage: new SQLiteTestStorage(), now: () => 1_700_000_000_000 }); |