MCPcopy Create free account
hub / github.com/freecodexyz/free-code / createUserInterruptionMessage

Function createUserInterruptionMessage

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

Source from the content-addressed store, hash-verified

543}
544
545export function createUserInterruptionMessage({
546 toolUse = false,
547}: {
548 toolUse?: boolean
549}): UserMessage {
550 const content = toolUse ? INTERRUPT_MESSAGE_FOR_TOOL_USE : INTERRUPT_MESSAGE
551
552 return createUserMessage({
553 content: [
554 {
555 type: 'text',
556 text: content,
557 },
558 ],
559 })
560}
561
562/**
563 * 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.85

Tested by

no test coverage detected