@ax-llm/ax 11.0.2 → 11.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -5824,7 +5824,7 @@ var AxGen = class extends AxProgramWithSignature {
5824
5824
  this.usage.push({ ...usageInfo, ...res.modelUsage });
5825
5825
  }
5826
5826
  mem.addResult(result, sessionId);
5827
- if (result.functionCalls) {
5827
+ if (result.functionCalls?.length) {
5828
5828
  const funcs = parseFunctionCalls(ai, result.functionCalls, values);
5829
5829
  if (funcs) {
5830
5830
  if (!functions) {