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

Function mapArtifacts

apps/sim/lib/a2a/client.ts:299–305  ·  view source on GitHub ↗
(artifacts: Artifact[])

Source from the content-addressed store, hash-verified

297}
298
299function mapArtifacts(artifacts: Artifact[]): A2AArtifactOutput[] {
300 return artifacts.map((artifact) => ({
301 name: artifact.name,
302 description: artifact.description,
303 content: partsText(artifact.parts),
304 }))
305}
306
307function taskStateLabel(state: TaskState): string {
308 return taskStateToJSON(state)

Callers 1

taskOutputFunction · 0.85

Calls 1

partsTextFunction · 0.85

Tested by

no test coverage detected