MCPcopy
hub / github.com/affaan-m/ECC / assistantMessage

Function assistantMessage

tests/scripts/loop-status.test.js:105–120  ·  view source on GitHub ↗
(timestamp, sessionId, text)

Source from the content-addressed store, hash-verified

103}
104
105function assistantMessage(timestamp, sessionId, text) {
106 return {
107 timestamp,
108 sessionId,
109 type: 'assistant',
110 message: {
111 role: 'assistant',
112 content: [
113 {
114 type: 'text',
115 text,
116 },
117 ],
118 },
119 };
120}
121
122function parsePayload(stdout) {
123 return JSON.parse(stdout.trim());

Callers 1

runTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected