@agent-e/core 1.5.3 → 1.5.4

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/dist/index.js CHANGED
@@ -494,7 +494,7 @@ var Observer = class {
494
494
  custom[name] = fn(state);
495
495
  } catch (err) {
496
496
  console.warn(`[AgentE] Custom metric '${name}' threw an error:`, err);
497
- custom[name] = NaN;
497
+ custom[name] = 0;
498
498
  }
499
499
  }
500
500
  const metrics = {