(response)
| 79021 | } |
| 79022 | } |
| 79023 | if (textStrings.length > 0) { |
| 79024 | return textStrings.join(""); |
| 79025 | } else { |
| 79026 | return ""; |
| 79027 | } |
| 79028 | } |
| 79029 | function getFunctionCalls(response) { |
| 79030 | var _a5, _b2, _c2, _d2; |
| 79031 | const functionCalls = []; |
| 79032 | if ((_b2 = (_a5 = response.candidates) === null || _a5 === void 0 ? void 0 : _a5[0].content) === null || _b2 === void 0 ? void 0 : _b2.parts) { |
| 79033 | for (const part of (_d2 = (_c2 = response.candidates) === null || _c2 === void 0 ? void 0 : _c2[0].content) === null || _d2 === void 0 ? void 0 : _d2.parts) { |
| 79034 | if (part.functionCall) { |
| 79035 | functionCalls.push(part.functionCall); |
| 79036 | } |
| 79037 | } |
| 79038 | } |
| 79039 | if (functionCalls.length > 0) { |
| 79040 | return functionCalls; |
| 79041 | } else { |
no test coverage detected
searching dependent graphs…