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

Function partsText

apps/sim/lib/a2a/client.ts:271–276  ·  view source on GitHub ↗
(parts: Part[])

Source from the content-addressed store, hash-verified

269}
270
271function partsText(parts: Part[]): string {
272 return parts
273 .map((part) => (part.content?.$case === 'text' ? part.content.value : ''))
274 .filter(Boolean)
275 .join('\n')
276}
277
278/** Concatenated text of all text parts in a message. */
279export function extractText(message: Message): string {

Callers 2

extractTextFunction · 0.85
mapArtifactsFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected