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

Function readHintEncoding

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

Source from the content-addressed store, hash-verified

536 Option.getOrElse(hint.mimeType, () => fallback);
537
538const readHintEncoding = (hint: OperationFileHint): "base64" | "base64url" =>
539 Option.getOrElse(hint.encoding, () => "base64");
540
541const fileFromByteField = (body: unknown, hint: OperationFileHint): ToolFileValue | null => {
542 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