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

Function isToolResult

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

Source from the content-addressed store, hash-verified

76const isUnknownToolResult = Schema.is(ToolResultSchema);
77
78export const isToolResult = (value: unknown): value is ToolResult<unknown> =>
79 isUnknownToolResult(value);
80
81/**
82 * Annotate the current span with the outcome of a tool invocation.

Callers 7

makeExecutorToolInvokerFunction · 0.90
unwrapInvocationFunction · 0.90
expectToolResultOkDataFunction · 0.90
driveOpenApiWorkFunction · 0.90

Calls

no outgoing calls

Tested by 2

expectToolResultOkDataFunction · 0.72
driveOpenApiWorkFunction · 0.72