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

Function openApiToolFailure

packages/plugins/openapi/src/sdk/plugin.ts:368–373  ·  view source on GitHub ↗
(code: string, message: string, details?: unknown)

Source from the content-addressed store, hash-verified

366);
367
368const openApiToolFailure = (code: string, message: string, details?: unknown) =>
369 ToolResult.fail({
370 code,
371 message,
372 ...(details === undefined ? {} : { details }),
373 });
374
375const staticPreviewOutput = (preview: SpecPreview): StaticPreviewSpecOutput => ({
376 title: Option.getOrNull(preview.title),

Callers 1

plugin.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected