( driver: WebDriver, condition: () => Promise<boolean>, message: string )
| 435 | |
| 436 | const { parsed: body, raw: rawBody } = await readRequestBody(request); |
| 437 | options.seenChatBodies?.push(rawBody); |
| 438 | assert.deepEqual(getRequestToolNames(body), options.toolNames ?? dangerousToolNames); |
| 439 | |
| 440 | if (chatCall === 1 && options.beforeFirstCompletion !== undefined) { |
| 441 | await options.beforeFirstCompletion(); |
| 442 | } |
| 443 | |
| 444 | if (response.writableEnded) { |
| 445 | return; |
| 446 | } |
no test coverage detected