UNPKG

@arizeai/phoenix-client

Version:
13 lines 578 B
"use strict"; 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