Files
n8n-nodes-strike/node_modules/n8n-workflow/dist/cjs/evaluation-helpers.js
Martien 5605b9b49a Initial commit: n8n Strike API node
- Add Strike API credentials configuration
- Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates)
- Add comprehensive operation descriptions for all resources
- Include CLAUDE.MD documentation
- Set up build configuration with TypeScript, ESLint, and Prettier

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-10 11:00:38 +01:00

38 lines
1.5 KiB
JavaScript

/**
* Evaluation-related utility functions
*
* This file contains utilities that need to be shared between different packages
* to avoid circular dependencies. For example, the evaluation test-runner (in CLI package)
* and the Evaluation node (in nodes-base package) both need to know which metrics
* require AI model connections, but they can't import from each other directly.
*
* By placing shared utilities here in the workflow package (which both packages depend on),
* we avoid circular dependency issues.
*/
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_EVALUATION_METRIC = void 0;
exports.metricRequiresModelConnection = metricRequiresModelConnection;
/**
* Default metric type used in evaluations
*/
exports.DEFAULT_EVALUATION_METRIC = 'correctness';
/**
* Determines if a given evaluation metric requires an AI model connection
* @param metric The metric name to check
* @returns true if the metric requires an AI model connection
*/
function metricRequiresModelConnection(metric) {
return ['correctness', 'helpfulness'].includes(metric);
}
});
//# sourceMappingURL=evaluation-helpers.js.map