@arizeai/phoenix-client
Version:
A client for the Phoenix API
13 lines • 578 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveReference = resolveReference;
/**
* Resolve an `Example`'s expected output from a value that may carry it
* under any of the `expected` / `reference` / `output` aliases (see
* {@link ReferenceOutput}). Returns the first one set, or `undefined` if none.
*/
function resolveReference(params) {
var _a, _b;
return (_b = (_a = params.expected) !== null && _a !== void 0 ? _a : params.reference) !== null && _b !== void 0 ? _b : params.output;
}
//# sourceMappingURL=types.js.map