MCPcopy Create free account
hub / github.com/Noumena-Network/code / createUserMessage

Function createUserMessage

src/session/localQueryTurnCancelRestore.test.ts:4–18  ·  view source on GitHub ↗
(
  uuid: string,
  content: string,
  options?: { isMeta?: boolean; toolUseResult?: unknown },
)

Source from the content-addressed store, hash-verified

2import { resolveCanceledTurnRestoreMessage } from './localQueryTurnCancelRestore.js'
3
4function createUserMessage(
5 uuid: string,
6 content: string,
7 options?: { isMeta?: boolean; toolUseResult?: unknown },
8) {
9 return {
10 type: 'user',
11 uuid,
12 isMeta: options?.isMeta ?? false,
13 toolUseResult: options?.toolUseResult,
14 message: {
15 content,
16 },
17 } as never
18}
19
20function createAssistantMessage(uuid: string) {
21 return {

Calls

no outgoing calls

Tested by

no test coverage detected