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

Function isToolCallPart

packages/kosong/src/message.ts:119–121  ·  view source on GitHub ↗
(part: StreamedMessagePart)

Source from the content-addressed store, hash-verified

117
118/** Check if a streamed part is a ToolCallPart (streaming argument delta). */
119export function isToolCallPart(part: StreamedMessagePart): part is ToolCallPart {
120 return part.type === 'tool_call_part';
121}
122
123/**
124 * Merge `source` into `target` in-place for streaming accumulation.

Callers 2

message.test.tsFile · 0.90
generateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected