Function
makeInput
(
llm: LLM,
signal: AbortSignal,
)
Source from the content-addressed store, hash-verified
| 12 | } |
| 13 | |
| 14 | function makeInput( |
| 15 | llm: LLM, |
| 16 | signal: AbortSignal, |
| 17 | ): Parameters<typeof chatWithRetry>[0] { |
| 18 | return { |
| 19 | llm, |
| 20 | params: { messages: [], tools: [], signal }, |
| 21 | dispatchEvent: async () => {}, |
| 22 | turnId: 't', |
| 23 | currentStep: 1, |
| 24 | stepUuid: 'u', |
| 25 | }; |
| 26 | } |
| 27 | |
| 28 | describe('chatWithRetry: terminated stream drops', () => { |
| 29 | it('retries an APIConnectionError("terminated") and succeeds on a later attempt', async () => { |
Tested by
no test coverage detected