MCPcopy Create free account
hub / github.com/cloudflare/computer / toolDescription

Function toolDescription

packages/computer/src/tools/ai.test.ts:23–27  ·  view source on GitHub ↗
(tool: unknown)

Source from the content-addressed store, hash-verified

21}
22
23function 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
29function makeWorkspace(): Workspace {
30 return new Workspace({ storage: new SQLiteTestStorage(), now: () => 1_700_000_000_000 });

Callers 1

ai.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected