MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / makeInput

Function makeInput

packages/agent-core/test/loop/retry.test.ts:14–26  ·  view source on GitHub ↗
(
  llm: LLM,
  signal: AbortSignal,
)

Source from the content-addressed store, hash-verified

12}
13
14function 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
28describe('chatWithRetry: terminated stream drops', () => {
29 it('retries an APIConnectionError("terminated") and succeeds on a later attempt', async () => {

Callers 1

retry.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected