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

Function createUserInterruptionMessage

src/utils/messages.ts:546–561  ·  view source on GitHub ↗
({
  toolUse = false,
}: {
  toolUse?: boolean
})

Source from the content-addressed store, hash-verified

544}
545
546export function createUserInterruptionMessage({
547 toolUse = false,
548}: {
549 toolUse?: boolean
550}): UserMessage {
551 const content = toolUse ? INTERRUPT_MESSAGE_FOR_TOOL_USE : INTERRUPT_MESSAGE
552
553 return createUserMessage({
554 content: [
555 {
556 type: 'text',
557 text: content,
558 },
559 ],
560 })
561}
562
563/**
564 * Creates a new synthetic user caveat message for local commands (eg. bash, slash).

Callers 4

queryLoopFunction · 0.85
processBashCommandFunction · 0.85
handleStopHooksFunction · 0.85

Calls 1

createUserMessageFunction · 0.70

Tested by

no test coverage detected