UNPKG

@maximai/maxim-js

Version:

Maxim AI JS SDK. Visit https://getmaxim.ai for more info.

42 lines 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VariableType = void 0; /** * Enumeration of supported variable types for dataset entries. * * Defines the data types that can be stored in dataset variables, affecting * how the data is processed and validated during test runs and evaluations. * * @enum {string} * @example * import { VariableType } from '@maximai/maxim-js'; * * const textVariable = { * type: VariableType.TEXT, * payload: "Hello world" * }; * * const jsonVariable = { * type: VariableType.JSON, * payload: JSON.stringify({ key: "value", number: 42 }) * }; */ var VariableType; (function (VariableType) { /** * Plain text data type for simple string values. * @example "Hello world", "user input text", "response content" */ VariableType["TEXT"] = "text"; /** * JSON data type for structured data stored as serialized JSON. * @example '{"name": "John", "age": 30}', '[1, 2, 3]', '{"metadata": {...}}' */ VariableType["JSON"] = "json"; /** * File data type for file attachments. * @example "file.pdf", "image.png", "audio.mp3" */ VariableType["FILE"] = "file"; })(VariableType || (exports.VariableType = VariableType = {})); //# sourceMappingURL=dataset.js.map