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