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

Function filePart

apps/sim/lib/a2a/client.ts:239–246  ·  view source on GitHub ↗
(file: A2AFileInput)

Source from the content-addressed store, hash-verified

237}
238
239function filePart(file: A2AFileInput): Part {
240 return {
241 content: { $case: 'raw', value: Buffer.from(file.bytes) },
242 metadata: undefined,
243 filename: file.name,
244 mediaType: file.mediaType,
245 }
246}
247
248/** Construct a user `Message` with a text part plus optional data and file parts. */
249export function buildUserMessage(opts: {

Callers 1

buildUserMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected