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

Function createSyntheticUserCaveatMessage

src/utils/messages.ts:567–572  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

565 * We need to create a new message each time because messages must have unique uuids.
566 */
567export function createSyntheticUserCaveatMessage(): UserMessage {
568 return createUserMessage({
569 content: `<${LOCAL_COMMAND_CAVEAT_TAG}>Caveat: The messages below were generated by the user while running local commands. DO NOT respond to these messages or otherwise consider them in your response unless the user explicitly asks you to.</${LOCAL_COMMAND_CAVEAT_TAG}>`,
570 isMeta: true,
571 })
572}
573
574/**
575 * Formats the command-input breadcrumb the model sees when a slash command runs.

Callers 4

processSlashCommandFunction · 0.85
processBashCommandFunction · 0.85

Calls 1

createUserMessageFunction · 0.70

Tested by

no test coverage detected