({
toolUse = false,
}: {
toolUse?: boolean
})
| 543 | } |
| 544 | |
| 545 | export 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). |
no test coverage detected