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

Function message

apps/sim/lib/a2a/client.test.ts:27–38  ·  view source on GitHub ↗
(role: Role, parts: Part[])

Source from the content-addressed store, hash-verified

25}
26
27function message(role: Role, parts: Part[]): Message {
28 return {
29 messageId: 'm-1',
30 contextId: 'ctx-1',
31 taskId: 'task-1',
32 role,
33 parts,
34 metadata: undefined,
35 extensions: [],
36 referenceTaskIds: [],
37 }
38}
39
40function artifact(name: string, description: string, parts: Part[]): Artifact {
41 return {

Callers 1

client.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected