Function
closeToolCallBlock
(
controller: ReadableStreamDefaultController,
encoder: TextEncoder,
index: number,
_toolCallId: string,
_toolCallName: string,
_toolCallArgs: string,
)
Source from the content-addressed store, hash-verified
| 630 | }) |
| 631 | |
| 632 | function closeToolCallBlock( |
| 633 | controller: ReadableStreamDefaultController, |
| 634 | encoder: TextEncoder, |
| 635 | index: number, |
| 636 | _toolCallId: string, |
| 637 | _toolCallName: string, |
| 638 | _toolCallArgs: string, |
| 639 | ) { |
| 640 | controller.enqueue( |
| 641 | encoder.encode( |
| 642 | formatSSE('content_block_stop', JSON.stringify({ |
| 643 | type: 'content_block_stop', |
| 644 | index, |
| 645 | })), |
| 646 | ), |
| 647 | ) |
| 648 | } |
| 649 | |
| 650 | function emitTextBlock( |
| 651 | controller: ReadableStreamDefaultController, |
Tested by
no test coverage detected