MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / textOf

Function textOf

e2e/cloud/mcp-execution-metering.test.ts:34–38  ·  view source on GitHub ↗
(result: { content?: unknown; toolResult?: unknown })

Source from the content-addressed store, hash-verified

32};
33
34const textOf = (result: { content?: unknown; toolResult?: unknown }): string =>
35 ((result.content ?? []) as Array<{ type: string; text?: string }>)
36 .filter((part) => part.type === "text")
37 .map((part) => part.text)
38 .join("\n");
39
40const RUNS = 3;
41

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected