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

Function onMessagePart

packages/kosong/test/generate.test.ts:114–116  ·  view source on GitHub ↗
(part: StreamedMessagePart)

Source from the content-addressed store, hash-verified

112
113 const result = await generate(provider, '', [], [], {
114 async onMessagePart(part: StreamedMessagePart): Promise<void> {
115 outputParts.push(part);
116 },
117 async onToolCall(toolCall: ToolCall): Promise<void> {
118 outputToolCalls.push(toolCall);
119 },

Callers

nothing calls this directly

Calls 3

sleepFunction · 0.70
abortMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected