"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetEvalsFunctionParams26$inboundSchema = exports.GetEvalsFunctionParams27$inboundSchema = exports.GetEvalsFunctionParams28$inboundSchema = exports.GetEvalsFunctionParams29$inboundSchema = exports.GetEvalsFunctionParams30$inboundSchema = exports.GetEvalsFunctionParams31$inboundSchema = exports.GetEvalsFunctionParams32$inboundSchema = exports.GetEvalsDataEvalsType$inboundSchema = exports.GetEvalsDataEvalsGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsBoolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsCategorical$inboundSchema = exports.GetEvalsGuardrailConfigEvalsNumber$inboundSchema = exports.GetEvalsGuardrailConfigEvalsOperator$inboundSchema = exports.DataRagas$inboundSchema = exports.DataRagasMetric$inboundSchema = exports.GetEvalsDataEvalsResponseType$inboundSchema = exports.GetEvalsDataEvalsResponseGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponseCategorical$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponseOperator$inboundSchema = exports.DataTypescript$inboundSchema = exports.GetEvalsDataEvalsResponse200Type$inboundSchema = exports.GetEvalsDataEvalsResponse200GuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200Categorical$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200Operator$inboundSchema = exports.ObjectT$inboundSchema = exports.GetEvalsRequest$outboundSchema = exports.GetEvalsLLMType = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator = exports.GetEvalsLLMTieValue = exports.GetEvalsLLMEvalsType = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Operator = exports.GetEvalsDataEvalsResponse200ApplicationJSONType = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator = exports.DataMethod = exports.DataType = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = exports.GetEvalsDataType = exports.GetEvalsGuardrailConfigOperator = exports.GetEvalsDataEvalsType = exports.GetEvalsGuardrailConfigEvalsOperator = exports.DataRagasMetric = exports.GetEvalsDataEvalsResponseType = exports.GetEvalsGuardrailConfigEvalsResponseOperator = exports.GetEvalsDataEvalsResponse200Type = exports.GetEvalsGuardrailConfigEvalsResponse200Operator = exports.ObjectT = void 0;
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Operator$inboundSchema = exports.DataJSON$inboundSchema = exports.GetEvalsDataEvalsResponse200ApplicationJSONType$inboundSchema = exports.GetEvalsDataEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = exports.DataHTTP$inboundSchema = exports.DataMethod$inboundSchema = exports.DataType$inboundSchema = exports.DataGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = exports.DataPython$inboundSchema = exports.GetEvalsDataType$inboundSchema = exports.GetEvalsDataGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigBoolean$inboundSchema = exports.GetEvalsGuardrailConfigCategorical$inboundSchema = exports.GetEvalsGuardrailConfigNumber$inboundSchema = exports.GetEvalsGuardrailConfigOperator$inboundSchema = exports.DataFunction$inboundSchema = exports.DataFunctionParams$inboundSchema = exports.GetEvalsFunctionParams1$inboundSchema = exports.GetEvalsFunctionParams2$inboundSchema = exports.GetEvalsFunctionParams3$inboundSchema = exports.GetEvalsFunctionParams4$inboundSchema = exports.GetEvalsFunctionParams5$inboundSchema = exports.GetEvalsFunctionParams6$inboundSchema = exports.GetEvalsFunctionParams7$inboundSchema = exports.GetEvalsFunctionParams8$inboundSchema = exports.GetEvalsFunctionParams9$inboundSchema = exports.GetEvalsFunctionParams10$inboundSchema = exports.GetEvalsFunctionParams11$inboundSchema = exports.GetEvalsFunctionParams12$inboundSchema = exports.GetEvalsFunctionParams13$inboundSchema = exports.GetEvalsFunctionParams14$inboundSchema = exports.GetEvalsFunctionParams15$inboundSchema = exports.GetEvalsFunctionParams16$inboundSchema = exports.GetEvalsFunctionParams17$inboundSchema = exports.GetEvalsFunctionParams18$inboundSchema = exports.GetEvalsFunctionParams19$inboundSchema = exports.GetEvalsFunctionParams20$inboundSchema = exports.GetEvalsFunctionParams21$inboundSchema = exports.GetEvalsFunctionParams22$inboundSchema = exports.GetEvalsFunctionParams23$inboundSchema = exports.GetEvalsFunctionParams24$inboundSchema = exports.GetEvalsFunctionParams25$inboundSchema = void 0;
exports.GetEvalsResponseBody$inboundSchema = exports.Data$inboundSchema = exports.DataLLM$inboundSchema = exports.GetEvalsLlm1$inboundSchema = exports.GetEvalsLLMCategoricalLabels$inboundSchema = exports.GetEvalsLLMType$inboundSchema = exports.GetEvalsLLMGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataCategorical$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator$inboundSchema = exports.GetEvalsLlm2$inboundSchema = exports.GetEvalsLLMJury$inboundSchema = exports.GetEvalsLLMTieValue$inboundSchema = exports.GetEvalsLLMReplacementJudges$inboundSchema = exports.GetEvalsLLMEvalsFallbacks$inboundSchema = exports.GetEvalsLLMEvalsRetry$inboundSchema = exports.GetEvalsLLMJudges$inboundSchema = exports.GetEvalsLLMFallbacks$inboundSchema = exports.GetEvalsLLMRetry$inboundSchema = exports.GetEvalsLLMEvalsCategoricalLabels$inboundSchema = exports.GetEvalsLLMEvalsType$inboundSchema = exports.GetEvalsLLMEvalsGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Boolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Categorical$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Number$inboundSchema = void 0;
exports.getEvalsRequestToJSON = getEvalsRequestToJSON;
exports.getEvalsGuardrailConfigEvalsResponse200NumberFromJSON = getEvalsGuardrailConfigEvalsResponse200NumberFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200CategoricalFromJSON = getEvalsGuardrailConfigEvalsResponse200CategoricalFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200BooleanFromJSON = getEvalsGuardrailConfigEvalsResponse200BooleanFromJSON;
exports.getEvalsDataEvalsResponse200GuardrailConfigFromJSON = getEvalsDataEvalsResponse200GuardrailConfigFromJSON;
exports.dataTypescriptFromJSON = dataTypescriptFromJSON;
exports.getEvalsGuardrailConfigEvalsResponseNumberFromJSON = getEvalsGuardrailConfigEvalsResponseNumberFromJSON;
exports.getEvalsGuardrailConfigEvalsResponseCategoricalFromJSON = getEvalsGuardrailConfigEvalsResponseCategoricalFromJSON;
exports.getEvalsGuardrailConfigEvalsResponseBooleanFromJSON = getEvalsGuardrailConfigEvalsResponseBooleanFromJSON;
exports.getEvalsDataEvalsResponseGuardrailConfigFromJSON = getEvalsDataEvalsResponseGuardrailConfigFromJSON;
exports.dataRagasFromJSON = dataRagasFromJSON;
exports.getEvalsGuardrailConfigEvalsNumberFromJSON = getEvalsGuardrailConfigEvalsNumberFromJSON;
exports.getEvalsGuardrailConfigEvalsCategoricalFromJSON = getEvalsGuardrailConfigEvalsCategoricalFromJSON;
exports.getEvalsGuardrailConfigEvalsBooleanFromJSON = getEvalsGuardrailConfigEvalsBooleanFromJSON;
exports.getEvalsDataEvalsGuardrailConfigFromJSON = getEvalsDataEvalsGuardrailConfigFromJSON;
exports.getEvalsFunctionParams32FromJSON = getEvalsFunctionParams32FromJSON;
exports.getEvalsFunctionParams31FromJSON = getEvalsFunctionParams31FromJSON;
exports.getEvalsFunctionParams30FromJSON = getEvalsFunctionParams30FromJSON;
exports.getEvalsFunctionParams29FromJSON = getEvalsFunctionParams29FromJSON;
exports.getEvalsFunctionParams28FromJSON = getEvalsFunctionParams28FromJSON;
exports.getEvalsFunctionParams27FromJSON = getEvalsFunctionParams27FromJSON;
exports.getEvalsFunctionParams26FromJSON = getEvalsFunctionParams26FromJSON;
exports.getEvalsFunctionParams25FromJSON = getEvalsFunctionParams25FromJSON;
exports.getEvalsFunctionParams24FromJSON = getEvalsFunctionParams24FromJSON;
exports.getEvalsFunctionParams23FromJSON = getEvalsFunctionParams23FromJSON;
exports.getEvalsFunctionParams22FromJSON = getEvalsFunctionParams22FromJSON;
exports.getEvalsFunctionParams21FromJSON = getEvalsFunctionParams21FromJSON;
exports.getEvalsFunctionParams20FromJSON = getEvalsFunctionParams20FromJSON;
exports.getEvalsFunctionParams19FromJSON = getEvalsFunctionParams19FromJSON;
exports.getEvalsFunctionParams18FromJSON = getEvalsFunctionParams18FromJSON;
exports.getEvalsFunctionParams17FromJSON = getEvalsFunctionParams17FromJSON;
exports.getEvalsFunctionParams16FromJSON = getEvalsFunctionParams16FromJSON;
exports.getEvalsFunctionParams15FromJSON = getEvalsFunctionParams15FromJSON;
exports.getEvalsFunctionParams14FromJSON = getEvalsFunctionParams14FromJSON;
exports.getEvalsFunctionParams13FromJSON = getEvalsFunctionParams13FromJSON;
exports.getEvalsFunctionParams12FromJSON = getEvalsFunctionParams12FromJSON;
exports.getEvalsFunctionParams11FromJSON = getEvalsFunctionParams11FromJSON;
exports.getEvalsFunctionParams10FromJSON = getEvalsFunctionParams10FromJSON;
exports.getEvalsFunctionParams9FromJSON = getEvalsFunctionParams9FromJSON;
exports.getEvalsFunctionParams8FromJSON = getEvalsFunctionParams8FromJSON;
exports.getEvalsFunctionParams7FromJSON = getEvalsFunctionParams7FromJSON;
exports.getEvalsFunctionParams6FromJSON = getEvalsFunctionParams6FromJSON;
exports.getEvalsFunctionParams5FromJSON = getEvalsFunctionParams5FromJSON;
exports.getEvalsFunctionParams4FromJSON = getEvalsFunctionParams4FromJSON;
exports.getEvalsFunctionParams3FromJSON = getEvalsFunctionParams3FromJSON;
exports.getEvalsFunctionParams2FromJSON = getEvalsFunctionParams2FromJSON;
exports.getEvalsFunctionParams1FromJSON = getEvalsFunctionParams1FromJSON;
exports.dataFunctionParamsFromJSON = dataFunctionParamsFromJSON;
exports.dataFunctionFromJSON = dataFunctionFromJSON;
exports.getEvalsGuardrailConfigNumberFromJSON = getEvalsGuardrailConfigNumberFromJSON;
exports.getEvalsGuardrailConfigCategoricalFromJSON = getEvalsGuardrailConfigCategoricalFromJSON;
exports.getEvalsGuardrailConfigBooleanFromJSON = getEvalsGuardrailConfigBooleanFromJSON;
exports.getEvalsDataGuardrailConfigFromJSON = getEvalsDataGuardrailConfigFromJSON;
exports.dataPythonFromJSON = dataPythonFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategoricalFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategoricalFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON;
exports.dataGuardrailConfigFromJSON = dataGuardrailConfigFromJSON;
exports.dataHTTPFromJSON = dataHTTPFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON;
exports.getEvalsDataEvalsResponse200ApplicationJSONGuardrailConfigFromJSON = getEvalsDataEvalsResponse200ApplicationJSONGuardrailConfigFromJSON;
exports.dataJSONFromJSON = dataJSONFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1NumberFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1NumberFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1CategoricalFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1CategoricalFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1BooleanFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1BooleanFromJSON;
exports.getEvalsLLMEvalsGuardrailConfigFromJSON = getEvalsLLMEvalsGuardrailConfigFromJSON;
exports.getEvalsLLMEvalsCategoricalLabelsFromJSON = getEvalsLLMEvalsCategoricalLabelsFromJSON;
exports.getEvalsLLMRetryFromJSON = getEvalsLLMRetryFromJSON;
exports.getEvalsLLMFallbacksFromJSON = getEvalsLLMFallbacksFromJSON;
exports.getEvalsLLMJudgesFromJSON = getEvalsLLMJudgesFromJSON;
exports.getEvalsLLMEvalsRetryFromJSON = getEvalsLLMEvalsRetryFromJSON;
exports.getEvalsLLMEvalsFallbacksFromJSON = getEvalsLLMEvalsFallbacksFromJSON;
exports.getEvalsLLMReplacementJudgesFromJSON = getEvalsLLMReplacementJudgesFromJSON;
exports.getEvalsLLMJuryFromJSON = getEvalsLLMJuryFromJSON;
exports.getEvalsLLM2FromJSON = getEvalsLLM2FromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumberFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumberFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataCategoricalFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataCategoricalFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBooleanFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBooleanFromJSON;
exports.getEvalsLLMGuardrailConfigFromJSON = getEvalsLLMGuardrailConfigFromJSON;
exports.getEvalsLLMCategoricalLabelsFromJSON = getEvalsLLMCategoricalLabelsFromJSON;
exports.getEvalsLLM1FromJSON = getEvalsLLM1FromJSON;
exports.dataLLMFromJSON = dataLLMFromJSON;
exports.dataFromJSON = dataFromJSON;
exports.getEvalsResponseBodyFromJSON = getEvalsResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.ObjectT = {
    List: "list",
};
exports.GetEvalsGuardrailConfigEvalsResponse200Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.GetEvalsDataEvalsResponse200Type = {
    TypescriptEval: "typescript_eval",
};
exports.GetEvalsGuardrailConfigEvalsResponseOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.GetEvalsDataEvalsResponseType = {
    Ragas: "ragas",
};
exports.DataRagasMetric = {
    ContextPrecision: "context_precision",
    ContextRecall: "context_recall",
    ContextEntitiesRecall: "context_entities_recall",
    Harmfulness: "harmfulness",
    Maliciousness: "maliciousness",
    Coherence: "coherence",
    Correctness: "correctness",
    Conciseness: "conciseness",
    ResponseRelevancy: "response_relevancy",
    Faithfulness: "faithfulness",
    Summarization: "summarization",
    NoiseSensitivity: "noise_sensitivity",
};
exports.GetEvalsGuardrailConfigEvalsOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.GetEvalsDataEvalsType = {
    FunctionEval: "function_eval",
};
exports.GetEvalsGuardrailConfigOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.GetEvalsDataType = {
    PythonEval: "python_eval",
};
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.DataType = {
    HttpEval: "http_eval",
};
exports.DataMethod = {
    Get: "GET",
    Post: "POST",
};
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.GetEvalsDataEvalsResponse200ApplicationJSONType = {
    JsonSchema: "json_schema",
};
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.GetEvalsLLMEvalsType = {
    LlmEval: "llm_eval",
};
exports.GetEvalsLLMTieValue = {
    Tie: "Tie",
};
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.GetEvalsLLMType = {
    LlmEval: "llm_eval",
};
/** @internal */
exports.GetEvalsRequest$outboundSchema = z.object({
    limit: z.number().int().default(10),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        startingAfter: "starting_after",
        endingBefore: "ending_before",
    });
});
function getEvalsRequestToJSON(getEvalsRequest) {
    return JSON.stringify(exports.GetEvalsRequest$outboundSchema.parse(getEvalsRequest));
}
/** @internal */
exports.ObjectT$inboundSchema = z
    .nativeEnum(exports.ObjectT);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200Operator$inboundSchema = z
    .nativeEnum(exports.GetEvalsGuardrailConfigEvalsResponse200Operator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsResponse200Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200Number' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200Categorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200CategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200Categorical$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200Categorical' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200Boolean' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsResponse200GuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200Categorical$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
]);
function getEvalsDataEvalsResponse200GuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsDataEvalsResponse200GuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsDataEvalsResponse200GuardrailConfig' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsResponse200Type$inboundSchema = z.nativeEnum(exports.GetEvalsDataEvalsResponse200Type);
/** @internal */
exports.DataTypescript$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-02T06:47:26.093Z"),
    updated: z.string().default("2026-06-02T06:47:26.093Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200Categorical$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
    ])).optional(),
    code: z.string(),
    type: exports.GetEvalsDataEvalsResponse200Type$inboundSchema,
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function dataTypescriptFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataTypescript$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataTypescript' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponseOperator$inboundSchema = z
    .nativeEnum(exports.GetEvalsGuardrailConfigEvalsResponseOperator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsResponseOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponseNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponseNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponseCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponseCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponseCategorical$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponseCategorical' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponseBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponseBoolean' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsResponseGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponseCategorical$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
]);
function getEvalsDataEvalsResponseGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsDataEvalsResponseGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsDataEvalsResponseGuardrailConfig' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsResponseType$inboundSchema = z.nativeEnum(exports.GetEvalsDataEvalsResponseType);
/** @internal */
exports.DataRagasMetric$inboundSchema = z.nativeEnum(exports.DataRagasMetric);
/** @internal */
exports.DataRagas$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-02T06:47:26.093Z"),
    updated: z.string().default("2026-06-02T06:47:26.093Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponseCategorical$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
    ])).optional(),
    type: exports.GetEvalsDataEvalsResponseType$inboundSchema,
    ragas_metric: exports.DataRagasMetric$inboundSchema,
    key: z.string(),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "ragas_metric": "ragasMetric",
    });
});
function dataRagasFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataRagas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataRagas' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsOperator$inboundSchema = z.nativeEnum(exports.GetEvalsGuardrailConfigEvalsOperator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsCategorical$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsCategorical' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsBoolean' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsCategorical$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
]);
function getEvalsDataEvalsGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsDataEvalsGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsDataEvalsGuardrailConfig' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsType$inboundSchema = z.nativeEnum(exports.GetEvalsDataEvalsType);
/** @internal */
exports.GetEvalsFunctionParams32$inboundSchema = z.object({
    type: z.literal("grammar_diversity"),
});
function getEvalsFunctionParams32FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams32$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams32' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams31$inboundSchema = z.object({
    type: z.literal("lexical_repetition"),
});
function getEvalsFunctionParams31FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams31$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams31' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams30$inboundSchema = z.object({
    type: z.literal("sentences_count"),
});
function getEvalsFunctionParams30FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams30$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams30' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams29$inboundSchema = z.object({
    type: z.literal("words_count"),
});
function getEvalsFunctionParams29FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams29$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams29' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams28$inboundSchema = z.object({
    type: z.literal("gse_english_level"),
});
function getEvalsFunctionParams28FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams28$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams28' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams27$inboundSchema = z.object({
    type: z.literal("flesch_reading_ease"),
});
function getEvalsFunctionParams27FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams27$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams27' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams26$inboundSchema = z.object({
    type: z.literal("most_repeated_words"),
});
function getEvalsFunctionParams26FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams26$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams26' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams25$inboundSchema = z.object({
    type: z.literal("keywords_match"),
    keywords: z.array(z.string()),
});
function getEvalsFunctionParams25FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams25$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams25' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams24$inboundSchema = z.object({
    type: z.literal("levenshtein_distance"),
});
function getEvalsFunctionParams24FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams24' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams23$inboundSchema = z.object({
    type: z.literal("cosine_similarity"),
});
function getEvalsFunctionParams23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams23' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams22$inboundSchema = z.object({
    type: z.literal("meteor_score"),
});
function getEvalsFunctionParams22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams22' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams21$inboundSchema = z.object({
    type: z.literal("rouge_n"),
});
function getEvalsFunctionParams21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams21' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams20$inboundSchema = z.object({
    type: z.literal("bleu_score"),
});
function getEvalsFunctionParams20FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams20$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams20' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams19$inboundSchema = z.object({
    type: z.literal("bert_score"),
});
function getEvalsFunctionParams19FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams19$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams19' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams18$inboundSchema = z.object({
    type: z.literal("moderations_google"),
});
function getEvalsFunctionParams18FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams18$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams18' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams17$inboundSchema = z.object({
    type: z.literal("moderations_openai"),
});
function getEvalsFunctionParams17FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams17$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams17' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams16$inboundSchema = z.object({
    type: z.literal("is_valid_json"),
});
function getEvalsFunctionParams16FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams16$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams16' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams15$inboundSchema = z.object({
    type: z.literal("regex"),
    pattern: z.string(),
});
function getEvalsFunctionParams15FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams15$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams15' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams14$inboundSchema = z.object({
    type: z.literal("one_line"),
});
function getEvalsFunctionParams14FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams14$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams14' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams13$inboundSchema = z.object({
    type: z.literal("length_greater_than"),
    value: z.number(),
});
function getEvalsFunctionParams13FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams13$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams13' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams12$inboundSchema = z.object({
    type: z.literal("length_between"),
    min: z.number(),
    max: z.number(),
});
function getEvalsFunctionParams12FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams12$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams12' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams11$inboundSchema = z.object({
    type: z.literal("length_less_than"),
    value: z.number(),
});
function getEvalsFunctionParams11FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams11$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams11' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams10$inboundSchema = z.object({
    type: z.literal("exact_match"),
});
function getEvalsFunctionParams10FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams10$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams10' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams9$inboundSchema = z.object({
    type: z.literal("ends_with"),
    value: z.string(),
});
function getEvalsFunctionParams9FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams9$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams9' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams8$inboundSchema = z.object({
    type: z.literal("start_with"),
    value: z.string(),
});
function getEvalsFunctionParams8FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams8$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams8' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams7$inboundSchema = z.object({
    type: z.literal("contains_valid_link"),
});
function getEvalsFunctionParams7FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams7' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams6$inboundSchema = z.object({
    type: z.literal("contains_url"),
});
function getEvalsFunctionParams6FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams6' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams5$inboundSchema = z.object({
    type: z.literal("contains_email"),
});
function getEvalsFunctionParams5FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams5' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams4$inboundSchema = z.object({
    type: z.literal("contains_any"),
    keywords: z.array(z.string()),
});
function getEvalsFunctionParams4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams4' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams3$inboundSchema = z.object({
    type: z.literal("contains_all"),
    keywords: z.array(z.string()),
});
function getEvalsFunctionParams3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams3' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams2$inboundSchema = z.object({
    type: z.literal("contains_none"),
    keywords: z.array(z.string()),
});
function getEvalsFunctionParams2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams2' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams1$inboundSchema = z.object({
    type: z.literal("contains"),
    value: z.string(),
});
function getEvalsFunctionParams1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams1' from JSON`);
}
/** @internal */
exports.DataFunctionParams$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsFunctionParams1$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams2$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams3$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams4$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams5$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams6$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams7$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams8$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams9$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams10$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams11$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams12$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams13$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams14$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams15$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams16$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams17$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams18$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams19$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams20$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams21$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams22$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams23$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams24$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams25$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams26$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams27$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams28$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams29$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams30$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams31$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams32$inboundSchema),
]);
function dataFunctionParamsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataFunctionParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataFunctionParams' from JSON`);
}
/** @internal */
exports.DataFunction$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-02T06:47:26.093Z"),
    updated: z.string().default("2026-06-02T06:47:26.093Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsCategorical$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
    ])).optional(),
    type: exports.GetEvalsDataEvalsType$inboundSchema,
    function_params: z.union([
        z.lazy(() => exports.GetEvalsFunctionParams1$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams2$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams3$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams4$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams5$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams6$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams7$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams8$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams9$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams10$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams11$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams12$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams13$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams14$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams15$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams16$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams17$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams18$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams19$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams20$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams21$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams22$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams23$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams24$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams25$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams26$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams27$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams28$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams29$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams30$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams31$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams32$inboundSchema),
    ]),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "function_params": "functionParams",
    });
});
function dataFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataFunction' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigOperator$inboundSchema = z.nativeEnum(exports.GetEvalsGuardrailConfigOperator);
/** @internal */
exports.GetEvalsGuardrailConfigNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigCategorical$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigCategorical' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigBoolean' from JSON`);
}
/** @internal */
exports.GetEvalsDataGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigCategorical$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigNumber$inboundSchema),
]);
function getEvalsDataGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsDataGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsDataGuardrailConfig' from JSON`);
}
/** @internal */
exports.GetEvalsDataType$inboundSchema = z.nativeEnum(exports.GetEvalsDataType);
/** @internal */
exports.DataPython$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-02T06:47:26.093Z"),
    updated: z.string().default("2026-06-02T06:47:26.093Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigCategorical$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigNumber$inboundSchema),
    ])).optional(),
    code: z.string(),
    type: exports.GetEvalsDataType$inboundSchema,
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function dataPythonFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataPython$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataPython' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = z.nativeEnum(exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean' from JSON`);
}
/** @internal */
exports.DataGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
]);
function dataGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataGuardrailConfig' from JSON`);
}
/** @internal */
exports.DataType$inboundSchema = z
    .nativeEnum(exports.DataType);
/** @internal */
exports.DataMethod$inboundSchema = z
    .nativeEnum(exports.DataMethod);
/** @internal */
exports.DataHTTP$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-02T06:47:26.093Z"),
    updated: z.string().default("2026-06-02T06:47:26.093Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
    ])).optional(),
    type: exports.DataType$inboundSchema,
    url: z.string(),
    method: exports.DataMethod$inboundSchema,
    headers: z.record(z.string()),
    payload: z.record(z.any()),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function dataHTTPFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataHTTP$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataHTTP' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = z.nativeEnum(exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONCategorical' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
]);
function getEvalsDataEvalsResponse200ApplicationJSONGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsDataEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsDataEvalsResponse200ApplicationJSONGuardrailConfig' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsResponse200ApplicationJSONType$inboundSchema = z
    .nativeEnum(exports.GetEvalsDataEvalsResponse200ApplicationJSONType);
/** @internal */
exports.DataJSON$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-02T06:47:26.093Z"),
    updated: z.string().default("2026-06-02T06:47:26.093Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
    ])).optional(),
    type: exports.GetEvalsDataEvalsResponse200ApplicationJSONType$inboundSchema,
    schema: z.string(),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function dataJSONFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataJSON$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataJSON' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Operator$inboundSchema = z.nativeEnum(exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Operator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Number$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Number' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Categorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1CategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Categorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Categorical' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Boolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Boolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Boolean' from JSON`);
}
/** @internal */
exports.GetEvalsLLMEvalsGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Boolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Categorical$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Number$inboundSchema),
]);
function getEvalsLLMEvalsGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLLMEvalsGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLLMEvalsGuardrailConfig' from JSON`);
}
/** @internal */
exports.GetEvalsLLMEvalsType$inboundSchema = z.nativeEnum(exports.GetEvalsLLMEvalsType);
/** @internal */
exports.GetEvalsLLMEvalsCategoricalLabels$inboundSchema = z.object({
    value: z.string(),
    description: z.string().optional(),
});
function getEvalsLLMEvalsCategoricalLabelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLLMEvalsCategoricalLabels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLLMEvalsCategoricalLabels' from JSON`);
}
/** @internal */
exports.GetEvalsLLMRetry$inboundSchema = z.object({
    count: z.number().int().default(2),
    on_codes: z.array(z.number().int()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "on_codes": "onCodes",
    });
});
function getEvalsLLMRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLLMRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLLMRetry' from JSON`);
}
/** @internal */
exports.GetEvalsLLMFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function getEvalsLLMFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLLMFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLLMFallbacks' from JSON`);
}
/** @internal */
exports.GetEvalsLLMJudges$inboundSchema = z.object({
    model: z.string(),
    retry: z.lazy(() => exports.GetEvalsLLMRetry$inboundSchema).optional(),
    fallbacks: z.array(z.lazy(() => exports.GetEvalsLLMFallbacks$inboundSchema))
        .optional(),
});
function getEvalsLLMJudgesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLLMJudges$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLLMJudges' from JSON`);
}
/** @internal */
exports.GetEvalsLLMEvalsRetry$inboundSchema = z.object({
    count: z.number().int().default(2),
    on_codes: z.array(z.number().int()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "on_codes": "onCodes",
    });
});
function getEvalsLLMEvalsRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLLMEvalsRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLLMEvalsRetry' from JSON`);
}
/** @internal */
exports.GetEvalsLLMEvalsFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function getEvalsLLMEvalsFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLLMEvalsFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLLMEvalsFallbacks' from JSON`);
}
/** @internal */
exports.GetEvalsLLMReplacementJudges$inboundSchema = z.object({
    model: z.string(),
    retry: z.lazy(() => exports.GetEvalsLLMEvalsRetry$inboundSchema).optional(),
    fallbacks: z.array(z.lazy(() => exports.GetEvalsLLMEvalsFallbacks$inboundSchema))
        .optional(),
});
function getEvalsLLMReplacementJudgesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLLMReplacementJudges$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLLMReplacementJudges' from JSON`);
}
/** @internal */
exports.GetEvalsLLMTieValue$inboundSchema = z.nativeEnum(exports.GetEvalsLLMTieValue);
/** @internal */
exports.GetEvalsLLMJury$inboundSchema = z.object({
    judges: z.array(z.lazy(() => exports.GetEvalsLLMJudges$inboundSchema)),
    replacement_judges: z.array(z.lazy(() => exports.GetEvalsLLMReplacementJudges$inboundSchema)).optional(),
    min_successful_judges: z.number().int().default(2),
    tie_value: exports.GetEvalsLLMTieValue$inboundSchema.default("Tie"),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "replacement_judges": "replacementJudges",
        "min_successful_judges": "minSuccessfulJudges",
        "tie_value": "tieValue",
    });
});
function getEvalsLLMJuryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLLMJury$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLLMJury' from JSON`);
}
/** @internal */
exports.GetEvalsLlm2$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-02T06:47:26.093Z"),
    updated: z.string().default("2026-06-02T06:47:26.093Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Boolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Categorical$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Number$inboundSchema),
    ])).optional(),
    type: exports.GetEvalsLLMEvalsType$inboundSchema,
    repetitions: z.number().int().optional(),
    prompt: z.string(),
    categories: z.array(z.string()).optional(),
    categorical_labels: z.array(z.lazy(() => exports.GetEvalsLLMEvalsCategoricalLabels$inboundSchema)).optional(),
    key: z.string(),
    mode: z.literal("jury"),
    jury: z.lazy(() => exports.GetEvalsLLMJury$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "categorical_labels": "categoricalLabels",
    });
});
function getEvalsLLM2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLlm2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLlm2' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator$inboundSchema = z.nativeEnum(exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataCategorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataCategorical' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean' from JSON`);
}
/** @internal */
exports.GetEvalsLLMGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataCategorical$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema),
]);
function getEvalsLLMGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLLMGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLLMGuardrailConfig' from JSON`);
}
/** @internal */
exports.GetEvalsLLMType$inboundSchema = z.nativeEnum(exports.GetEvalsLLMType);
/** @internal */
exports.GetEvalsLLMCategoricalLabels$inboundSchema = z.object({
    value: z.string(),
    description: z.string().optional(),
});
function getEvalsLLMCategoricalLabelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLLMCategoricalLabels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLLMCategoricalLabels' from JSON`);
}
/** @internal */
exports.GetEvalsLlm1$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-02T06:47:26.093Z"),
    updated: z.string().default("2026-06-02T06:47:26.093Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataCategorical$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema),
    ])).optional(),
    type: exports.GetEvalsLLMType$inboundSchema,
    repetitions: z.number().int().optional(),
    prompt: z.string(),
    categories: z.array(z.string()).optional(),
    categorical_labels: z.array(z.lazy(() => exports.GetEvalsLLMCategoricalLabels$inboundSchema)).optional(),
    key: z.string(),
    mode: z.literal("single"),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "categorical_labels": "categoricalLabels",
    });
});
function getEvalsLLM1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsLlm1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsLlm1' from JSON`);
}
/** @internal */
exports.DataLLM$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsLlm1$inboundSchema),
    z.lazy(() => exports.GetEvalsLlm2$inboundSchema),
]);
function dataLLMFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataLLM$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataLLM' from JSON`);
}
/** @internal */
exports.Data$inboundSchema = z
    .union([
    z.lazy(() => exports.DataHTTP$inboundSchema),
    z.lazy(() => exports.DataRagas$inboundSchema),
    z.lazy(() => exports.DataJSON$inboundSchema),
    z.lazy(() => exports.DataPython$inboundSchema),
    z.lazy(() => exports.DataFunction$inboundSchema),
    z.lazy(() => exports.DataTypescript$inboundSchema),
    z.union([
        z.lazy(() => exports.GetEvalsLlm1$inboundSchema),
        z.lazy(() => exports.GetEvalsLlm2$inboundSchema),
    ]),
]);
function dataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Data$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Data' from JSON`);
}
/** @internal */
exports.GetEvalsResponseBody$inboundSchema = z.object({
    object: exports.ObjectT$inboundSchema,
    data: z.array(z.union([
        z.lazy(() => exports.DataHTTP$inboundSchema),
        z.lazy(() => exports.DataRagas$inboundSchema),
        z.lazy(() => exports.DataJSON$inboundSchema),
        z.lazy(() => exports.DataPython$inboundSchema),
        z.lazy(() => exports.DataFunction$inboundSchema),
        z.lazy(() => exports.DataTypescript$inboundSchema),
        z.union([
            z.lazy(() => exports.GetEvalsLlm1$inboundSchema),
            z.lazy(() => exports.GetEvalsLlm2$inboundSchema),
        ]),
    ])),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
function getEvalsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsResponseBody' from JSON`);
}
//# sourceMappingURL=getevals.js.map