MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getFunctionCalls

Function getFunctionCalls

out/cli.cjs:79023–79038  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

79021 }
79022 }
79023 if (textStrings.length > 0) {
79024 return textStrings.join("");
79025 } else {
79026 return "";
79027 }
79028}
79029function 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 {

Callers 1

addHelpersFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…