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

Method generate

packages/kosong/src/provider.ts:196–196  ·  view source on GitHub ↗

* Send a conversation to the LLM and return a streamed response. * * @param systemPrompt - System-level instruction prepended to the request. * @param tools - Tool definitions the model may invoke. * @param history - The conversation history (user, assistant, tool messages). * @param

(
    systemPrompt: string,
    tools: Tool[],
    history: Message[],
    options?: GenerateOptions,
  )

Source from the content-addressed store, hash-verified

194 * @param options - Optional per-call settings such as an {@link AbortSignal}.
195 */
196 generate(
197 systemPrompt: string,
198 tools: Tool[],
199 history: Message[],

Callers 15

captureRequestBodyFunction · 0.65
kimi.test.tsFile · 0.65
captureRequestBodyFunction · 0.65
captureBetaRequestBodyFunction · 0.65
anthropic.test.tsFile · 0.65
captureRequestBodyFunction · 0.65
captureRequestBodyFunction · 0.65

Implementers 14

KimiChatProviderpackages/kosong/src/providers/kimi.ts
EchoChatProviderpackages/kosong/test/fixtures/echo-pro
ScriptedEchoChatProviderpackages/kosong/test/fixtures/echo-pro
MockChatProviderpackages/kosong/test/fixtures/mock-pro
QueuedMockProviderpackages/kosong/test/e2e/multi-step-ag
TrackingProviderpackages/kosong/test/e2e/abort-cleanup
ConfigurableMockProviderpackages/kosong/test/e2e/provider-swit
QueuedProviderpackages/kosong/test/e2e/toolset-advan
SingleStreamProviderpackages/kosong/test/e2e/streaming-pro
QueuedProviderpackages/kosong/test/e2e/toolchain-bri
OpenAILegacyChatProviderpackages/kosong/src/providers/openai-l
OpenAIResponsesChatProviderpackages/kosong/src/providers/openai-r

Calls

no outgoing calls

Tested by 12

captureRequestBodyFunction · 0.52
captureRequestBodyFunction · 0.52
captureBetaRequestBodyFunction · 0.52
captureRequestBodyFunction · 0.52
captureRequestBodyFunction · 0.52
captureRequestBodyFunction · 0.52
collectStreamFunction · 0.52
collectStreamFunction · 0.52
collectStreamFunction · 0.52
generateFunction · 0.52
toAnthropicWireFunction · 0.52