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