(args: unknown)
| 8 | type TestFetch = (...args: Parameters<typeof globalThis.fetch>) => Promise<Response> |
| 9 | |
| 10 | function agentResponse(args: unknown): Response { |
| 11 | return new Response( |
| 12 | JSON.stringify({ |
| 13 | choices: [ |
| 14 | { |
| 15 | finish_reason: 'tool_calls', |
| 16 | message: { |
| 17 | tool_calls: [ |
| 18 | { |
| 19 | function: { |
| 20 | name: 'AgentOutput', |
| 21 | arguments: JSON.stringify(args), |
| 22 | }, |
| 23 | }, |
| 24 | ], |
| 25 | }, |
| 26 | }, |
| 27 | ], |
| 28 | usage: {}, |
| 29 | }) |
| 30 | ) |
| 31 | } |
| 32 | |
| 33 | function createPageController(): PageController { |
| 34 | const browserState: BrowserState = { |
no outgoing calls
no test coverage detected