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

Function readHintEncoding

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

Source from the content-addressed store, hash-verified

531 Option.getOrElse(hint.mimeType, () => fallback);
532
533const readHintEncoding = (hint: OperationFileHint): "base64" | "base64url" =>
534 Option.getOrElse(hint.encoding, () => "base64");
535
536const fileFromByteField = (body: unknown, hint: OperationFileHint): ToolFileValue | null => {
537 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