MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / isToolCall

Function isToolCall

packages/core/src/pipes/pipes.ts:532–533  ·  view source on GitHub ↗
(chunk: Chunk)

Source from the content-addressed store, hash-verified

530 * @returns True if the chunk is of type 'toolCall', otherwise false.
531 */
532export const isToolCall = (chunk: Chunk): chunk is ToolCallChunk =>
533 chunk.type === 'toolCall';
534
535/**
536 * Checks if the given chunk is of type 'unknown'.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected