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

Function isToolCall

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

Source from the content-addressed store, hash-verified

112
113/** Check if a streamed part is a ToolCall. */
114export function isToolCall(part: StreamedMessagePart): part is ToolCall {
115 return part.type === 'function';
116}
117
118/** Check if a streamed part is a ToolCallPart (streaming argument delta). */
119export function isToolCallPart(part: StreamedMessagePart): part is ToolCallPart {

Callers 3

message.test.tsFile · 0.90
isPendingToolCallAtIndexFunction · 0.90
flushPartFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected