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

Function buildUserMessage

apps/sim/lib/copilot/chat/effective-transcript.test.ts:27–34  ·  view source on GitHub ↗
(id: string, content: string)

Source from the content-addressed store, hash-verified

25}
26
27function buildUserMessage(id: string, content: string) {
28 return normalizeMessage({
29 id,
30 role: 'user',
31 content,
32 timestamp: '2026-04-15T12:00:00.000Z',
33 })
34}
35
36describe('buildEffectiveChatTranscript', () => {
37 it('returns the existing transcript when the stream owner is no longer the trailing user', () => {

Callers 1

Calls 1

normalizeMessageFunction · 0.90

Tested by

no test coverage detected