({
inputString,
precedingInputBlocks,
}: {
inputString: string
precedingInputBlocks: ContentBlockParam[]
})
| 523 | } |
| 524 | |
| 525 | export function prepareUserContent({ |
| 526 | inputString, |
| 527 | precedingInputBlocks, |
| 528 | }: { |
| 529 | inputString: string |
| 530 | precedingInputBlocks: ContentBlockParam[] |
| 531 | }): string | ContentBlockParam[] { |
| 532 | if (precedingInputBlocks.length === 0) { |
| 533 | return inputString |
| 534 | } |
| 535 | |
| 536 | return [ |
| 537 | ...precedingInputBlocks, |
| 538 | { |
| 539 | text: inputString, |
| 540 | type: 'text', |
| 541 | }, |
| 542 | ] |
| 543 | } |
| 544 | |
| 545 | export function createUserInterruptionMessage({ |
| 546 | toolUse = false, |
no outgoing calls
no test coverage detected