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

Function generate

packages/node-sdk/test/session-cancel.test.ts:20–28  ·  view source on GitHub ↗
(
        _systemPrompt: string,
        _tools: unknown,
        _history: unknown,
        options?: { readonly signal?: AbortSignal },
      )

Source from the content-addressed store, hash-verified

18 modelName: 'fake-model',
19 thinkingEffort: null,
20 async generate(
21 _systemPrompt: string,
22 _tools: unknown,
23 _history: unknown,
24 options?: { readonly signal?: AbortSignal },
25 ) {
26 await waitForAbort(options?.signal);
27 throwAbortError();
28 },
29 withThinking() {
30 return this;
31 },

Callers

nothing calls this directly

Calls 2

waitForAbortFunction · 0.85
throwAbortErrorFunction · 0.70

Tested by

no test coverage detected