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

Function chat

packages/agent-core/test/loop/retry.test.ts:37–41  ·  view source on GitHub ↗
(_params: LLMChatParams)

Source from the content-addressed store, hash-verified

35 modelName: 'mock',
36 isRetryableError: (e) => isRetryableGenerateError(e),
37 async chat(_params: LLMChatParams): Promise<LLMChatResponse> {
38 calls += 1;
39 if (calls === 1) throw new APIConnectionError('terminated');
40 return okResponse();
41 },
42 };
43
44 const response = await chatWithRetry(makeInput(llm, new AbortController().signal));

Callers

nothing calls this directly

Calls 2

okResponseFunction · 0.85
resolveAuthFunction · 0.85

Tested by

no test coverage detected