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

Function textPart

apps/sim/lib/a2a/client.ts:231–233  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

229}
230
231function textPart(value: string): Part {
232 return { content: { $case: 'text', value }, metadata: undefined, filename: '', mediaType: '' }
233}
234
235function dataPart(value: unknown): Part {
236 return { content: { $case: 'data', value }, metadata: undefined, filename: '', mediaType: '' }

Callers 1

buildUserMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected