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

Function readHintEncoding

packages/plugins/openapi/src/sdk/invoke.ts:492–493  ·  view source on GitHub ↗
(hint: OperationFileHint)

Source from the content-addressed store, hash-verified

490 Option.getOrElse(hint.mimeType, () => fallback);
491
492const readHintEncoding = (hint: OperationFileHint): "base64" | "base64url" =>
493 Option.getOrElse(hint.encoding, () => "base64");
494
495const fileFromByteField = (body: unknown, hint: OperationFileHint): ToolFileValue | null => {
496 if (typeof body !== "object" || body === null || Array.isArray(body)) return null;

Callers 1

fileFromByteFieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected