(toolInput)
| 601 | } |
| 602 | |
| 603 | function extractSendFileToolInput(toolInput) { |
| 604 | if (!toolInput || typeof toolInput !== "object") { |
| 605 | return null; |
| 606 | } |
| 607 | |
| 608 | const filePath = |
| 609 | typeof toolInput.filePath === "string" ? toolInput.filePath.trim() : ""; |
| 610 | const caption = |
| 611 | typeof toolInput.caption === "string" ? toolInput.caption.trim() : ""; |
| 612 | |
| 613 | if (!filePath) { |
| 614 | return null; |
| 615 | } |
| 616 | |
| 617 | return { |
| 618 | filePath, |
| 619 | caption, |
| 620 | }; |
| 621 | } |
| 622 | |
| 623 | function getVisibleSendFileToolCalls(toolCalls) { |
| 624 | if (!Array.isArray(toolCalls)) { |
no outgoing calls
no test coverage detected