MCPcopy Index your code
hub / github.com/Noumena-Network/code / createSystemMessage

Function createSystemMessage

src/utils/messages.ts:4435–4452  ·  view source on GitHub ↗
(
  content: string,
  level: SystemMessageLevel,
  toolUseID?: string,
  preventContinuation?: boolean,
)

Source from the content-addressed store, hash-verified

4433}
4434
4435export function createSystemMessage(
4436 content: string,
4437 level: SystemMessageLevel,
4438 toolUseID?: string,
4439 preventContinuation?: boolean,
4440): SystemInformationalMessage {
4441 return {
4442 type: 'system',
4443 subtype: 'informational',
4444 content,
4445 isMeta: false,
4446 timestamp: new Date().toISOString(),
4447 uuid: randomUUID(),
4448 toolUseID,
4449 level,
4450 ...(preventContinuation && { preventContinuation }),
4451 }
4452}
4453
4454export function createPermissionRetryMessage(
4455 commands: string[],

Callers 15

queryLoopFunction · 0.85
runFunction · 0.85
processSlashCommandFunction · 0.85
processUserInputFunction · 0.85
attachToAssistantSessionFunction · 0.85
onSelectFunction · 0.85
REPLFunction · 0.85

Calls 1

randomUUIDFunction · 0.90

Tested by

no test coverage detected