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