MCPcopy Create free account
hub / github.com/ConardLi/easy-agent / createTranscriptMessage

Function createTranscriptMessage

step/step26.js:20–28  ·  view source on GitHub ↗
(role, content, extra = {})

Source from the content-addressed store, hash-verified

18// -----------------------------------------------------------------------------
19
20export function createTranscriptMessage(role, content, extra = {}) {
21 return {
22 messageId: extra.messageId || randomUUID(),
23 role,
24 content,
25 timestamp: extra.timestamp || new Date().toISOString(),
26 ...extra,
27 };
28}
29
30export class TranscriptStore {
31 constructor() {

Callers 1

appendMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected