MCPcopy
hub / github.com/chenglou/pretext / message

Function message

pages/demos/markdown-chat.data.ts:6–11  ·  view source on GitHub ↗
(role: 'assistant' | 'user', ...lines: string[])

Source from the content-addressed store, hash-verified

4}
5
6function message(role: 'assistant' | 'user', ...lines: string[]): MarkdownChatSeed {
7 return {
8 role,
9 markdown: lines.join('\n'),
10 }
11}
12
13export const BASE_MESSAGE_SPECS: MarkdownChatSeed[] = [
14 message(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…