MCPcopy
hub / github.com/coder/mux / hasIncompleteToolCallPart

Function hasIncompleteToolCallPart

src/node/services/streamManager.ts:462–464  ·  view source on GitHub ↗
(parts: CompletedMessagePart[])

Source from the content-addressed store, hash-verified

460}
461
462function hasIncompleteToolCallPart(parts: CompletedMessagePart[]): boolean {
463 return parts.some((part) => part.type === "dynamic-tool" && part.state !== "output-available");
464}
465
466type DynamicToolCompletedMessagePart = Extract<CompletedMessagePart, { type: "dynamic-tool" }>;
467type WorkflowRunToolAttachment = NonNullable<DynamicToolCompletedMessagePart["workflowRun"]>;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected