MCPcopy Index your code
hub / github.com/simstudioai/sim / getBrokerFileArgs

Function getBrokerFileArgs

apps/sim/app/api/function/execute/route.ts:773–787  ·  view source on GitHub ↗
(args: unknown)

Source from the content-addressed store, hash-verified

771}
772
773function getBrokerFileArgs(args: unknown): {
774 file: unknown
775 maxBytes: number
776 offset?: number
777 length?: number
778} {
779 const record = asRecord(args)
780 const options = asRecord(record.options)
781 return {
782 file: record.file,
783 maxBytes: clampInlineBytes(options.maxBytes),
784 offset: getPositiveNumber(options.offset),
785 length: getPositiveNumber(options.length),
786 }
787}
788
789function createFunctionRuntimeBrokers(
790 context: FunctionRouteExecutionContext

Callers 1

readFileFunction · 0.85

Calls 3

clampInlineBytesFunction · 0.85
getPositiveNumberFunction · 0.85
asRecordFunction · 0.70

Tested by

no test coverage detected