@arizeai/phoenix-client
Version:
A client for the Phoenix API
13 lines • 497 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getExampleGlobalId = getExampleGlobalId;
/**
* The example's node GlobalID, which experiment runs record as their
* `dataset_example_id`. Servers that predate the `nodeId` field deliver the
* GlobalID in the `id` field instead.
*/
function getExampleGlobalId(example) {
var _a;
return (_a = example.nodeId) !== null && _a !== void 0 ? _a : example.id;
}
//# sourceMappingURL=getExampleGlobalId.js.map