UNPKG

langsmith

Version:

Client library to connect to the LangSmith Observability and Evaluation Platform.

14 lines (13 loc) 455 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPrimitive = exports.isRecord = void 0; const isRecord = (value) => { return typeof value === "object" && value !== null && !Array.isArray(value); }; exports.isRecord = isRecord; const isPrimitive = (value) => { return (typeof value === "string" || typeof value === "number" || typeof value === "boolean"); }; exports.isPrimitive = isPrimitive;