id: 1 unit: function inner_stringify() file: src/internal/qs/stringify.ts start line: 63 end line: 223 size: 136 LOC McCabe index: 48 number of parameters: 4 id: 2 unit: protected async _runTools() file: src/lib/AbstractChatCompletionRunner.ts start line: 354 end line: 481 size: 111 LOC McCabe index: 25 number of parameters: 3 id: 3 unit: function finalizeChatCompletion() file: src/lib/ChatCompletionStream.ts start line: 608 end line: 704 size: 90 LOC McCabe index: 17 number of parameters: 2 id: 4 unit: protected async _runFunctions() file: src/lib/AbstractChatCompletionRunner.ts start line: 269 end line: 352 size: 73 LOC McCabe index: 17 number of parameters: 3 id: 5 unit: function normalize_stringify_options() file: src/internal/qs/stringify.ts start line: 225 end line: 307 size: 72 LOC McCabe index: 36 number of parameters: 1 id: 6 unit: export const encode:() file: src/internal/qs/utils.ts start line: 136 end line: 213 size: 65 LOC McCabe index: 24 number of parameters: 5 id: 7 unit: export function stringify() file: src/internal/qs/stringify.ts start line: 309 end line: 388 size: 65 LOC McCabe index: 16 number of parameters: 2 id: 8 unit: export function getRuntime() file: src/_shims/web-runtime.ts start line: 8 end line: 103 size: 63 LOC McCabe index: 7 number of parameters: 1 id: 9 unit: static accumulateDelta() file: src/lib/AssistantStream.ts start line: 658 end line: 720 size: 53 LOC McCabe index: 22 number of parameters: 2 id: 10 unit: function nodejsRecordAudio() file: src/helpers/audio.ts start line: 75 end line: 135 size: 50 LOC McCabe index: 5 number of parameters: 3 id: 11 unit: private async makeRequest() file: src/core.ts start line: 472 end line: 531 size: 47 LOC McCabe index: 12 number of parameters: 2 id: 12 unit: for await() file: scripts/utils/postprocess-files.cjs start line: 106 end line: 163 size: 40 LOC McCabe index: 12 number of parameters: 4 id: 13 unit: for await() file: src/streaming.ts start line: 37 end line: 80 size: 38 LOC McCabe index: 12 number of parameters: 2 id: 14 unit: private buildHeaders() file: src/core.ts start line: 384 end line: 429 size: 37 LOC McCabe index: 9 number of parameters: 5 id: 15 unit: static generate() file: src/error.ts start line: 59 end line: 104 size: 36 LOC McCabe index: 11 number of parameters: 4 id: 16 unit: decode() file: src/streaming.ts start line: 278 end line: 319 size: 31 LOC McCabe index: 9 number of parameters: 1 id: 17 unit: private async retryRequest() file: src/core.ts start line: 628 end line: 664 size: 29 LOC McCabe index: 9 number of parameters: 3 id: 18 unit: function replaceRanges() file: scripts/utils/convert-jsr-readme.cjs start line: 25 end line: 54 size: 28 LOC McCabe index: 7 number of parameters: 2 id: 19 unit: function replaceRanges() file: scripts/utils/postprocess-files.cjs start line: 39 end line: 68 size: 28 LOC McCabe index: 7 number of parameters: 2 id: 20 unit: export async function toFile() file: src/uploads.ts start line: 102 end line: 139 size: 28 LOC McCabe index: 8 number of parameters: 3 id: 21 unit: async function defaultParseResponse() file: src/core.ts start line: 59 end line: 99 size: 27 LOC McCabe index: 7 number of parameters: 1 id: 22 unit: export function debug() file: src/core.ts start line: 1182 end line: 1218 size: 27 LOC McCabe index: 9 number of parameters: 2 id: 23 unit: static fromReadableStream() file: src/streaming.ts start line: 99 end line: 140 size: 26 LOC McCabe index: 7 number of parameters: 2 id: 24 unit: parsed: parseTextFormat() file: src/lib/ResponsesParser.ts start line: 77 end line: 108 size: 26 LOC McCabe index: 7 number of parameters: 2 id: 25 unit: function processReadme() file: scripts/utils/convert-jsr-readme.cjs start line: 104 end line: 133 size: 25 LOC McCabe index: 3 number of parameters: 2 id: 26 unit: async fetchWithTimeout() file: src/core.ts start line: 576 end line: 603 size: 25 LOC McCabe index: 4 number of parameters: 4 id: 27 unit: export function zodFunction() file: src/helpers/zod.ts start line: 103 end line: 129 size: 25 LOC McCabe index: 2 number of parameters: 1 id: 28 unit: export function setShims() file: src/_shims/registry.ts start line: 42 end line: 65 size: 24 LOC McCabe index: 3 number of parameters: 2 id: 29 unit: function getBrowserInfo() file: src/core.ts start line: 975 end line: 1003 size: 23 LOC McCabe index: 8 number of parameters: 0 id: 30 unit: export function zodResponsesFunction() file: src/helpers/zod.ts start line: 131 end line: 154 size: 23 LOC McCabe index: 2 number of parameters: 1 id: 31 unit: protected async _createToolAssistantStream() file: src/lib/AssistantStream.ts start line: 206 end line: 235 size: 23 LOC McCabe index: 4 number of parameters: 5 id: 32 unit: async function nodejsPlayAudio() file: src/helpers/audio.ts start line: 34 end line: 57 size: 22 LOC McCabe index: 5 number of parameters: 1 id: 33 unit: protected _addMessage() file: src/lib/AbstractChatCompletionRunner.ts start line: 52 end line: 76 size: 22 LOC McCabe index: 12 number of parameters: 3 id: 34 unit: protected override async _createChatCompletion() file: src/lib/ChatCompletionStream.ts start line: 369 end line: 394 size: 22 LOC McCabe index: 4 number of parameters: 3 id: 35 unit: export function findDoubleNewlineIndex() file: src/internal/decoders/line.ts start line: 147 end line: 176 size: 22 LOC McCabe index: 11 number of parameters: 1 id: 36 unit: async function getBytes() file: src/uploads.ts start line: 141 end line: 165 size: 21 LOC McCabe index: 6 number of parameters: 1 id: 37 unit: protected async _createResponse() file: src/lib/responses/ResponseStream.ts start line: 131 end line: 155 size: 21 LOC McCabe index: 4 number of parameters: 3 id: 38 unit: export function getRuntime() file: src/_shims/node-runtime.ts start line: 60 end line: 81 size: 20 LOC McCabe index: 3 number of parameters: 0 id: 39 unit: async getNextPage() file: src/core.ts start line: 716 end line: 735 size: 20 LOC McCabe index: 7 number of parameters: 0 id: 40 unit: static fromSSEResponse() file: src/streaming.ts start line: 27 end line: 93 size: 19 LOC McCabe index: 6 number of parameters: 2 id: 41 unit: protected _onError() file: src/beta/realtime/internal-base.ts start line: 51 end line: 74 size: 19 LOC McCabe index: 3 number of parameters: 3 id: 42 unit: protected async _createAssistantStream() file: src/lib/AssistantStream.ts start line: 329 end line: 354 size: 19 LOC McCabe index: 4 number of parameters: 4 id: 43 unit: private static makeMessage() file: src/error.ts start line: 38 end line: 57 size: 19 LOC McCabe index: 8 number of parameters: 3 id: 44 unit: export function compact() file: src/internal/qs/utils.ts start line: 215 end line: 238 size: 19 LOC McCabe index: 6 number of parameters: 1 id: 45 unit: for await() file: src/streaming.ts start line: 240 end line: 260 size: 18 LOC McCabe index: 6 number of parameters: 1 id: 46 unit: protected async _createChatCompletion() file: src/lib/AbstractChatCompletionRunner.ts start line: 238 end line: 256 size: 18 LOC McCabe index: 3 number of parameters: 3 id: 47 unit: protected async _fromReadableStream() file: src/lib/ChatCompletionStream.ts start line: 396 end line: 422 size: 18 LOC McCabe index: 4 number of parameters: 2 id: 48 unit: protected async _createThreadAssistantStream() file: src/lib/AssistantStream.ts start line: 303 end line: 327 size: 18 LOC McCabe index: 4 number of parameters: 3 id: 49 unit: private methodRequest() file: src/core.ts start line: 289 end line: 305 size: 17 LOC McCabe index: 7 number of parameters: 3 id: 50 unit: export function zodResponseFormat() file: src/helpers/zod.ts start line: 62 end line: 79 size: 17 LOC McCabe index: 1 number of parameters: 3 id: 51 unit: protected override _emitFinal() file: src/lib/AbstractChatCompletionRunner.ts start line: 209 end line: 228 size: 17 LOC McCabe index: 7 number of parameters: 1 id: 52 unit: export function makeParseableResponseFormat() file: src/lib/parser.ts start line: 35 end line: 53 size: 17 LOC McCabe index: 1 number of parameters: 2 id: 53 unit: export function makeParseableTextFormat() file: src/lib/parser.ts start line: 62 end line: 80 size: 17 LOC McCabe index: 1 number of parameters: 2 id: 54 unit: protected stringifyQuery() file: src/core.ts start line: 559 end line: 574 size: 16 LOC McCabe index: 6 number of parameters: 1 id: 55 unit: function parseToolCall() file: src/lib/parser.ts start line: 221 end line: 236 size: 16 LOC McCabe index: 3 number of parameters: 2 id: 56 unit: protected async _fromReadableStream() file: src/lib/AssistantStream.ts start line: 164 end line: 182 size: 16 LOC McCabe index: 4 number of parameters: 2 id: 57 unit: static createToolAssistantStream() file: src/lib/AssistantStream.ts start line: 189 end line: 204 size: 16 LOC McCabe index: 1 number of parameters: 5 id: 58 unit: function findNewlineIndex() file: src/internal/decoders/line.ts start line: 127 end line: 145 size: 16 LOC McCabe index: 4 number of parameters: 2 id: 59 unit: function replaceImports() file: scripts/utils/convert-jsr-readme.cjs start line: 73 end line: 102 size: 15 LOC McCabe index: 3 number of parameters: 2 id: 60 unit: node() file: scripts/utils/postprocess-files.cjs start line: 78 end line: 92 size: 15 LOC McCabe index: 7 number of parameters: 1 id: 61 unit: protected override async prepareOptions() file: src/index.ts start line: 723 end line: 743 size: 15 LOC McCabe index: 4 number of parameters: 1 id: 62 unit: private calculateContentLength() file: src/core.ts start line: 315 end line: 331 size: 15 LOC McCabe index: 5 number of parameters: 1 id: 63 unit: export function zodTextFormat() file: src/helpers/zod.ts start line: 81 end line: 96 size: 15 LOC McCabe index: 1 number of parameters: 3 id: 64 unit: static runTools() file: src/lib/ChatCompletionStreamingRunner.ts start line: 56 end line: 71 size: 15 LOC McCabe index: 1 number of parameters: 3 id: 65 unit: static createChatCompletion() file: src/lib/ChatCompletionStream.ts start line: 159 end line: 173 size: 15 LOC McCabe index: 1 number of parameters: 3 id: 66 unit: static createAssistantStream() file: src/lib/AssistantStream.ts start line: 252 end line: 266 size: 15 LOC McCabe index: 1 number of parameters: 4 id: 67 unit: node() file: scripts/utils/convert-jsr-readme.cjs start line: 78 end line: 91 size: 14 LOC McCabe index: 7 number of parameters: 1 id: 68 unit: static createResponse() file: src/lib/responses/ResponseStream.ts start line: 48 end line: 61 size: 14 LOC McCabe index: 1 number of parameters: 3 id: 69 unit: export function validateInputTools() file: src/lib/parser.ts start line: 262 end line: 276 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 70 unit: static createThreadAssistantStream() file: src/lib/AssistantStream.ts start line: 237 end line: 250 size: 14 LOC McCabe index: 1 number of parameters: 3 id: 71 unit: function parseToolCall() file: src/lib/ResponsesParser.ts start line: 203 end line: 217 size: 14 LOC McCabe index: 3 number of parameters: 2 id: 72 unit: export function validateInputTools() file: src/lib/ResponsesParser.ts start line: 231 end line: 245 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 73 unit: export function addOutputText() file: src/lib/ResponsesParser.ts start line: 247 end line: 262 size: 14 LOC McCabe index: 5 number of parameters: 1 id: 74 unit: function traverse() file: scripts/utils/convert-jsr-readme.cjs start line: 8 end line: 20 size: 13 LOC McCabe index: 7 number of parameters: 2 id: 75 unit: function traverse() file: scripts/utils/postprocess-files.cjs start line: 16 end line: 28 size: 13 LOC McCabe index: 7 number of parameters: 2 id: 76 unit: function applyHeadersMut() file: src/core.ts start line: 1164 end line: 1178 size: 13 LOC McCabe index: 6 number of parameters: 2 id: 77 unit: export function buildRealtimeURL() file: src/beta/realtime/internal-base.ts start line: 81 end line: 93 size: 13 LOC McCabe index: 3 number of parameters: 2 id: 78 unit: static runFunctions() file: src/lib/ChatCompletionRunner.ts start line: 38 end line: 50 size: 13 LOC McCabe index: 1 number of parameters: 3 id: 79 unit: static runTools() file: src/lib/ChatCompletionRunner.ts start line: 52 end line: 64 size: 13 LOC McCabe index: 1 number of parameters: 3 id: 80 unit: static runFunctions() file: src/lib/ChatCompletionStreamingRunner.ts start line: 42 end line: 54 size: 13 LOC McCabe index: 1 number of parameters: 3 id: 81 unit: get() file: src/lib/ResponsesParser.ts start line: 101 end line: 115 size: 13 LOC McCabe index: 6 number of parameters: 0 id: 82 unit: async _getAzureADToken() file: src/index.ts start line: 706 end line: 717 size: 12 LOC McCabe index: 4 number of parameters: 0 id: 83 unit: async function getAzureHeaders() file: src/beta/realtime/ws.ts start line: 85 end line: 96 size: 12 LOC McCabe index: 3 number of parameters: 1 id: 84 unit: next: async() file: src/lib/responses/ResponseStream.ts start line: 262 end line: 273 size: 12 LOC McCabe index: 4 number of parameters: 0 id: 85 unit: constructor() file: src/lib/EventStream.ts start line: 23 end line: 40 size: 12 LOC McCabe index: 1 number of parameters: 0 id: 86 unit: next: async() file: src/lib/ChatCompletionStream.ts start line: 583 end line: 594 size: 12 LOC McCabe index: 4 number of parameters: 0 id: 87 unit: next: async() file: src/lib/AssistantStream.ts start line: 139 end line: 150 size: 12 LOC McCabe index: 4 number of parameters: 0 id: 88 unit: function onURL() file: src/beta/realtime/websocket.ts start line: 102 end line: 112 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 89 unit: protected _emit() file: src/lib/EventEmitter.ts start line: 82 end line: 92 size: 11 LOC McCabe index: 2 number of parameters: 3 id: 90 unit: constructor() file: src/error.ts start line: 25 end line: 36 size: 11 LOC McCabe index: 1 number of parameters: 4 id: 91 unit: export function decode() file: src/internal/qs/utils.ts start line: 120 end line: 132 size: 11 LOC McCabe index: 3 number of parameters: 3 id: 92 unit: async pull() file: src/streaming.ts start line: 188 end line: 199 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 93 unit: private shouldRetry() file: src/core.ts start line: 605 end line: 626 size: 10 LOC McCabe index: 7 number of parameters: 1 id: 94 unit: protected _addChatCompletion() file: src/lib/AbstractChatCompletionRunner.ts start line: 41 end line: 50 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 95 unit: protected async _runChatCompletion() file: src/lib/AbstractChatCompletionRunner.ts start line: 258 end line: 267 size: 10 LOC McCabe index: 2 number of parameters: 3 id: 96 unit: override _addMessage() file: src/lib/ChatCompletionRunner.ts start line: 66 end line: 75 size: 10 LOC McCabe index: 3 number of parameters: 3 id: 97 unit: export function shouldParseToolCall() file: src/lib/parser.ts start line: 238 end line: 248 size: 10 LOC McCabe index: 4 number of parameters: 2 id: 98 unit: export function hasAutoParseableInput() file: src/lib/parser.ts start line: 250 end line: 260 size: 10 LOC McCabe index: 4 number of parameters: 1 id: 99 unit: export function shouldParseToolCall() file: src/lib/ResponsesParser.ts start line: 219 end line: 229 size: 10 LOC McCabe index: 4 number of parameters: 2 id: 100 unit: async next() file: src/internal/stream-utils.ts start line: 12 end line: 21 size: 10 LOC McCabe index: 3 number of parameters: 0 id: 101 unit: export function maybe_map() file: src/internal/qs/utils.ts start line: 256 end line: 265 size: 10 LOC McCabe index: 3 number of parameters: 2 id: 102 unit: function _addRequestID() file: src/core.ts start line: 106 end line: 115 size: 9 LOC McCabe index: 4 number of parameters: 2 id: 103 unit: protected defaultHeaders() file: src/core.ts start line: 248 end line: 256 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 104 unit: function zodToJsonSchema() file: src/helpers/zod.ts start line: 15 end line: 23 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 105 unit: export function makeParseableTool() file: src/lib/parser.ts start line: 107 end line: 115 size: 9 LOC McCabe index: 1 number of parameters: 4 id: 106 unit: protected async _runToolAssistantStream() file: src/lib/AssistantStream.ts start line: 768 end line: 776 size: 9 LOC McCabe index: 1 number of parameters: 5 id: 107 unit: export function makeParseableResponseTool() file: src/lib/ResponsesParser.ts start line: 163 end line: 171 size: 9 LOC McCabe index: 1 number of parameters: 4 id: 108 unit: export function ReadableStreamToAsyncIterable() file: src/internal/stream-utils.ts start line: 7 end line: 32 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 109 unit: function array_to_object() file: src/internal/qs/utils.ts start line: 38 end line: 47 size: 9 LOC McCabe index: 5 number of parameters: 2 id: 110 unit: function is_non_nullish_primitive() file: src/internal/qs/stringify.ts start line: 51 end line: 59 size: 9 LOC McCabe index: 5 number of parameters: 1 id: 111 unit: protected override defaultHeaders() file: src/index.ts start line: 319 end line: 326 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: async function fileFromPath() file: src/_shims/node-runtime.ts start line: 29 end line: 39 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 113 unit: async upload() file: src/resources/vector-stores/files.ts start line: 166 end line: 173 size: 8 LOC McCabe index: 1 number of parameters: 3 id: 114 unit: private parseResponse:() file: src/core.ts start line: 126 end line: 136 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 115 unit: protected parseHeaders() file: src/core.ts start line: 447 end line: 454 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 116 unit: protected makeStatusError() file: src/core.ts start line: 456 end line: 463 size: 8 LOC McCabe index: 1 number of parameters: 4 id: 117 unit: private calculateDefaultRetryTimeoutMillis() file: src/core.ts start line: 666 end line: 679 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 118 unit: function getName() file: src/uploads.ts start line: 172 end line: 179 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 119 unit: export async function playAudio() file: src/helpers/audio.ts start line: 59 end line: 67 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 120 unit: export async function recordAudio() file: src/helpers/audio.ts start line: 137 end line: 145 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 121 unit: protected _run() file: src/lib/EventStream.ts start line: 42 end line: 51 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 122 unit: protected async _runAssistantStream() file: src/lib/AssistantStream.ts start line: 759 end line: 766 size: 8 LOC McCabe index: 1 number of parameters: 4 id: 123 unit: function mapModulePaths() file: scripts/utils/postprocess-files.cjs start line: 74 end line: 95 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 124 unit: function processExportMap() file: scripts/utils/make-dist-package-json.cjs start line: 3 end line: 9 size: 7 LOC McCabe index: 3 number of parameters: 1 id: 125 unit: function partition() file: src/streaming.ts start line: 322 end line: 329 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 126 unit: send() file: src/beta/realtime/websocket.ts start line: 128 end line: 134 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 127 unit: send() file: src/beta/realtime/ws.ts start line: 68 end line: 74 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 128 unit: constructor() file: src/lib/RunnableFunction.ts start line: 115 end line: 121 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 129 unit: for await() file: src/lib/ChatCompletionStream.ts start line: 409 end line: 417 size: 7 LOC McCabe index: 4 number of parameters: 1 id: 130 unit: protected async _threadAssistantStream() file: src/lib/AssistantStream.ts start line: 751 end line: 757 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 131 unit: override hasNextPage() file: src/pagination.ts start line: 80 end line: 86 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 132 unit: async function processFiles() file: src/resources/vector-stores/file-batches.ts start line: 175 end line: 180 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 133 unit: for await() file: src/streaming.ts start line: 220 end line: 225 size: 6 LOC McCabe index: 4 number of parameters: 1 id: 134 unit: private parse() file: src/core.ts start line: 181 end line: 186 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 135 unit: constructor() file: src/core.ts start line: 695 end line: 700 size: 6 LOC McCabe index: 1 number of parameters: 4 id: 136 unit: await defaultParseResponse() file: src/core.ts start line: 783 end line: 796 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 137 unit: async finalChatCompletion() file: src/lib/AbstractChatCompletionRunner.ts start line: 82 end line: 87 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 138 unit: async finalResponse() file: src/lib/responses/ResponseStream.ts start line: 285 end line: 290 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 139 unit: function finalizeResponse() file: src/lib/responses/ResponseStream.ts start line: 293 end line: 298 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 140 unit: throw Error() file: src/lib/AssistantStream.ts start line: 610 end line: 618 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 141 unit: export function hasAutoParseableInput() file: src/lib/ResponsesParser.ts start line: 137 end line: 143 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 142 unit: async return() file: src/internal/stream-utils.ts start line: 22 end line: 27 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 143 unit: export function assign_single_source() file: src/internal/qs/utils.ts start line: 113 end line: 118 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 144 unit: export function is_buffer() file: src/internal/qs/utils.ts start line: 244 end line: 250 size: 6 LOC McCabe index: 5 number of parameters: 1 id: 145 unit: for await() file: scripts/utils/postprocess-files.cjs start line: 98 end line: 102 size: 5 LOC McCabe index: 4 number of parameters: 1 id: 146 unit: export function fileFromPath() file: src/_shims/index-deno.ts start line: 80 end line: 84 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 147 unit: constructor() file: src/_shims/web-runtime.ts start line: 46 end line: 50 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 148 unit: constructor() file: src/_shims/web-runtime.ts start line: 56 end line: 60 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 149 unit: constructor() file: src/_shims/web-runtime.ts start line: 68 end line: 72 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 150 unit: constructor() file: src/_shims/web-runtime.ts start line: 80 end line: 84 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 151 unit: constructor() file: src/pagination.ts start line: 19 end line: 24 size: 5 LOC McCabe index: 2 number of parameters: 4 id: 152 unit: async submitToolOutputsAndPoll() file: src/resources/beta/threads/runs/runs.ts start line: 270 end line: 274 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 153 unit: private iterator:() file: src/streaming.ts start line: 21 end line: 25 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 154 unit: for await() file: src/streaming.ts start line: 106 end line: 110 size: 5 LOC McCabe index: 3 number of parameters: 1 id: 155 unit: constructor() file: src/streaming.ts start line: 272 end line: 276 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 156 unit: override catch() file: src/core.ts start line: 195 end line: 199 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 157 unit: for await() file: src/core.ts start line: 748 end line: 752 size: 5 LOC McCabe index: 3 number of parameters: 1 id: 158 unit: export function isEmptyObj() file: src/core.ts start line: 1147 end line: 1151 size: 5 LOC McCabe index: 3 number of parameters: 1 id: 159 unit: function returnData() file: src/helpers/audio.ts start line: 113 end line: 117 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 160 unit: constructor() file: src/beta/realtime/internal-base.ts start line: 17 end line: 22 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 161 unit: export function isRunnableFunctionWithParse() file: src/lib/RunnableFunction.ts start line: 80 end line: 84 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 162 unit: static override fromReadableStream() file: src/lib/ChatCompletionStreamingRunner.ts start line: 35 end line: 39 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 163 unit: protected _connected() file: src/lib/EventStream.ts start line: 53 end line: 57 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 164 unit: constructor() file: src/lib/ChatCompletionStream.ts start line: 136 end line: 140 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 165 unit: static fromReadableStream() file: src/lib/ChatCompletionStream.ts start line: 153 end line: 157 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 166 unit: export function isAutoParsableResponseFormat() file: src/lib/parser.ts start line: 82 end line: 86 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 167 unit: static fromReadableStream() file: src/lib/AssistantStream.ts start line: 158 end line: 162 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 168 unit: async finalRun() file: src/lib/AssistantStream.ts start line: 296 end line: 301 size: 5 LOC McCabe index: 2 number of parameters: 0 id: 169 unit: parsed_arguments: parseToolCall() file: src/lib/ResponsesParser.ts start line: 69 end line: 73 size: 5 LOC McCabe index: 2 number of parameters: 2 id: 170 unit: function getInputToolByName() file: src/lib/ResponsesParser.ts start line: 197 end line: 201 size: 5 LOC McCabe index: 2 number of parameters: 2 id: 171 unit: export function getRuntime() file: src/_shims/bun-runtime.ts start line: 8 end line: 14 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 172 unit: async createAndPoll() file: src/resources/vector-stores/file-batches.ts start line: 62 end line: 65 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 173 unit: async poll() file: src/resources/vector-stores/file-batches.ts start line: 107 end line: 110 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 174 unit: async createAndPoll() file: src/resources/vector-stores/files.ts start line: 104 end line: 107 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 175 unit: async poll() file: src/resources/vector-stores/files.ts start line: 119 end line: 122 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 176 unit: async uploadAndPoll() file: src/resources/vector-stores/files.ts start line: 178 end line: 181 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 177 unit: async createAndPoll() file: src/resources/beta/threads/runs/runs.ts start line: 144 end line: 147 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 178 unit: async poll() file: src/resources/beta/threads/runs/runs.ts start line: 171 end line: 174 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 179 unit: for await() file: src/streaming.ts start line: 124 end line: 127 size: 4 LOC McCabe index: 4 number of parameters: 1 id: 180 unit: async withResponse() file: src/core.ts start line: 176 end line: 179 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 181 unit: get() file: src/core.ts start line: 813 end line: 816 size: 4 LOC McCabe index: 2 number of parameters: 2 id: 182 unit: function propsForError() file: src/uploads.ts start line: 167 end line: 170 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 183 unit: typeof globalThis extends() file: src/beta/realtime/websocket.ts start line: 12 end line: 15 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 184 unit: constructor() file: src/lib/RunnableFunction.ts start line: 132 end line: 135 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 185 unit: async finalContent() file: src/lib/AbstractChatCompletionRunner.ts start line: 97 end line: 100 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 186 unit: async finalMessage() file: src/lib/AbstractChatCompletionRunner.ts start line: 128 end line: 131 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 187 unit: async finalFunctionCall() file: src/lib/AbstractChatCompletionRunner.ts start line: 151 end line: 154 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 188 unit: async finalFunctionCallResult() file: src/lib/AbstractChatCompletionRunner.ts start line: 179 end line: 182 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 189 unit: async totalUsage() file: src/lib/AbstractChatCompletionRunner.ts start line: 200 end line: 203 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 190 unit: constructor() file: src/lib/responses/ResponseStream.ts start line: 43 end line: 46 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 191 unit: return: async() file: src/lib/responses/ResponseStream.ts start line: 274 end line: 277 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 192 unit: async done() file: src/lib/EventStream.ts start line: 141 end line: 144 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 193 unit: protected _hasListener() file: src/lib/EventEmitter.ts start line: 94 end line: 97 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 194 unit: return: async() file: src/lib/ChatCompletionStream.ts start line: 595 end line: 598 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 195 unit: return: async() file: src/lib/AssistantStream.ts start line: 151 end line: 154 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 196 unit: async finalRunSteps() file: src/lib/AssistantStream.ts start line: 284 end line: 288 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 197 unit: async finalMessages() file: src/lib/AssistantStream.ts start line: 290 end line: 294 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 198 unit: constructor() file: src/internal/decoders/line.ts start line: 20 end line: 23 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 199 unit: export function merge() file: src/internal/qs/utils.ts start line: 49 end line: 52 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 200 unit: function replaceProcessEnv() file: scripts/utils/convert-jsr-readme.cjs start line: 56 end line: 59 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 201 unit: function replaceProcessStdout() file: scripts/utils/convert-jsr-readme.cjs start line: 61 end line: 63 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 202 unit: function replaceInstallationDirections() file: scripts/utils/convert-jsr-readme.cjs start line: 65 end line: 68 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 203 unit: protected override defaultQuery() file: src/index.ts start line: 315 end line: 317 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 204 unit: protected override authHeaders() file: src/index.ts start line: 328 end line: 330 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 205 unit: protected override stringifyQuery() file: src/index.ts start line: 332 end line: 334 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 206 unit: override buildRequest() file: src/index.ts start line: 686 end line: 688 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 207 unit: protected override authHeaders() file: src/index.ts start line: 719 end line: 721 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 208 unit: function isFsReadStream() file: src/_shims/bun-runtime.ts start line: 10 end line: 12 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 209 unit: export function getDefaultAgent() file: src/_shims/index-deno.ts start line: 77 end line: 79 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 210 unit: get() file: src/_shims/index.js start line: 11 end line: 13 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 211 unit: async uploadAndPoll() file: src/resources/vector-stores/file-batches.ts start line: 153 end line: 155 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 212 unit: async createAndRunPoll() file: src/resources/beta/threads/threads.ts start line: 156 end line: 158 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 213 unit: async waitForProcessing() file: src/resources/files.ts start line: 91 end line: 93 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 214 unit: async start() file: src/streaming.ts start line: 185 end line: 187 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 215 unit: async cancel() file: src/streaming.ts start line: 200 end line: 202 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 216 unit: override finally() file: src/core.ts start line: 201 end line: 203 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 217 unit: protected authHeaders() file: src/core.ts start line: 236 end line: 238 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 218 unit: protected defaultIdempotencyKey() file: src/core.ts start line: 265 end line: 267 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 219 unit: protected async prepareRequest() file: src/core.ts start line: 442 end line: 444 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 220 unit: private getUserAgent() file: src/core.ts start line: 681 end line: 683 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 221 unit: for await() file: src/core.ts start line: 798 end line: 800 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 222 unit: export function hasOwn() file: src/core.ts start line: 1154 end line: 1156 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 223 unit: for await() file: src/uploads.ts start line: 154 end line: 156 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 224 unit: function isResponse() file: src/helpers/audio.ts start line: 26 end line: 28 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 225 unit: function isFile() file: src/helpers/audio.ts start line: 30 end line: 32 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 226 unit: static async azure() file: src/beta/realtime/websocket.ts start line: 97 end line: 99 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 227 unit: export function isAzure() file: src/beta/realtime/internal-base.ts start line: 77 end line: 79 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 228 unit: static async azure() file: src/beta/realtime/ws.ts start line: 54 end line: 56 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 229 unit: constructor() file: src/resource.ts start line: 8 end line: 10 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 230 unit: for await() file: src/lib/responses/ResponseStream.ts start line: 148 end line: 150 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 231 unit: export function isPresent() file: src/lib/chatCompletionUtils.ts start line: 26 end line: 28 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 232 unit: get ended() file: src/lib/EventStream.ts start line: 59 end line: 61 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 233 unit: get errored() file: src/lib/EventStream.ts start line: 63 end line: 65 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 234 unit: get aborted() file: src/lib/EventStream.ts start line: 67 end line: 69 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 235 unit: abort() file: src/lib/EventStream.ts start line: 71 end line: 73 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 236 unit: get currentChatCompletionSnapshot() file: src/lib/ChatCompletionStream.ts start line: 142 end line: 144 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 237 unit: for await() file: src/lib/ChatCompletionStream.ts start line: 387 end line: 389 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 238 unit: function str() file: src/lib/ChatCompletionStream.ts start line: 706 end line: 708 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 239 unit: function assertIsEmpty() file: src/lib/ChatCompletionStream.ts start line: 867 end line: 869 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 240 unit: export function isAutoParsableTool() file: src/lib/parser.ts start line: 137 end line: 139 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 241 unit: for await() file: src/lib/AssistantStream.ts start line: 175 end line: 177 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 242 unit: for await() file: src/lib/AssistantStream.ts start line: 227 end line: 229 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 243 unit: for await() file: src/lib/AssistantStream.ts start line: 319 end line: 321 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 244 unit: for await() file: src/lib/AssistantStream.ts start line: 346 end line: 348 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 245 unit: protected _addRun() file: src/lib/AssistantStream.ts start line: 747 end line: 749 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 246 unit: export function isAutoParsableTool() file: src/lib/ResponsesParser.ts start line: 193 end line: 195 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 247 unit: constructor() file: src/error.ts start line: 108 end line: 110 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 248 unit: constructor() file: src/error.ts start line: 123 end line: 125 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 249 unit: constructor() file: src/error.ts start line: 145 end line: 147 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 250 unit: constructor() file: src/error.ts start line: 151 end line: 153 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 251 unit: export function is_regexp() file: src/internal/qs/utils.ts start line: 240 end line: 242 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 252 unit: export function combine() file: src/internal/qs/utils.ts start line: 252 end line: 254 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 253 unit: brackets() file: src/internal/qs/stringify.ts start line: 8 end line: 10 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 254 unit: indices() file: src/internal/qs/stringify.ts start line: 12 end line: 14 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 255 unit: repeat() file: src/internal/qs/stringify.ts start line: 15 end line: 17 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 256 unit: const push_to_array = function() file: src/internal/qs/stringify.ts start line: 22 end line: 24 size: 3 LOC McCabe index: 2 number of parameters: 2 id: 257 unit: serializeDate() file: src/internal/qs/stringify.ts start line: 44 end line: 46 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 258 unit: async function postprocess() file: scripts/utils/postprocess-files.cjs start line: 105 end line: 164 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 259 unit: protected validateHeaders() file: src/core.ts start line: 263 end line: 263 size: 1 LOC McCabe index: 1 number of parameters: 2 id: 260 unit: protected async prepareOptions() file: src/core.ts start line: 434 end line: 434 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 261 unit: schema: zodToJsonSchema() file: src/helpers/zod.ts start line: 74 end line: 74 size: 1 LOC McCabe index: 1 number of parameters: 2 id: 262 unit: schema: zodToJsonSchema() file: src/helpers/zod.ts start line: 92 end line: 92 size: 1 LOC McCabe index: 1 number of parameters: 2 id: 263 unit: parameters: zodToJsonSchema() file: src/helpers/zod.ts start line: 119 end line: 119 size: 1 LOC McCabe index: 1 number of parameters: 2 id: 264 unit: parameters: zodToJsonSchema() file: src/helpers/zod.ts start line: 145 end line: 145 size: 1 LOC McCabe index: 1 number of parameters: 2 id: 265 unit: protected _emitFinal() file: src/lib/EventStream.ts start line: 220 end line: 220 size: 1 LOC McCabe index: 1 number of parameters: 0 id: 266 unit: function assertNever() file: src/lib/ChatCompletionStream.ts start line: 871 end line: 871 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 267 unit: function assertNever() file: src/lib/AssistantStream.ts start line: 779 end line: 779 size: 1 LOC McCabe index: 1 number of parameters: 1