MCPcopy Create free account
hub / github.com/freecodexyz/free-code / closeToolCallBlock

Function closeToolCallBlock

src/services/api/codex-fetch-adapter.ts:632–648  ·  view source on GitHub ↗
(
    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,

Callers 1

startFunction · 0.85

Calls 2

formatSSEFunction · 0.85
enqueueMethod · 0.45

Tested by

no test coverage detected