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

Function isToolFile

packages/core/sdk/src/tool-result.ts:52–52  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

50const matchesToolFileSchema = Schema.is(ToolFileSchema);
51
52export const isToolFile = (value: unknown): value is ToolFile => matchesToolFileSchema(value);
53
54export type ToolResult<T> =
55 | { readonly ok: true; readonly data: T; readonly http?: ToolHttpMeta }

Callers 2

isFileOutputItemFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected