"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.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator$inboundSchema = exports.Typescript$inboundSchema = exports.CreateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator$inboundSchema = exports.CreateEvalRequestBody$outboundSchema = exports.Llm$outboundSchema = exports.OutputType$outboundSchema = exports.GuardrailConfig$outboundSchema = exports.Boolean$outboundSchema = exports.NumberT$outboundSchema = exports.Operator$outboundSchema = exports.Json$outboundSchema = exports.RequestBodyOutputType$outboundSchema = exports.RequestBodyGuardrailConfig$outboundSchema = exports.GuardrailConfigBoolean$outboundSchema = exports.GuardrailConfigNumber$outboundSchema = exports.GuardrailConfigOperator$outboundSchema = exports.CreateEvalRequestBodyHTTP$outboundSchema = exports.CreateEvalRequestBodyMethod$outboundSchema = exports.CreateEvalRequestBodyOutputType$outboundSchema = exports.CreateEvalRequestBodyGuardrailConfig$outboundSchema = exports.CreateEvalGuardrailConfigBoolean$outboundSchema = exports.CreateEvalGuardrailConfigNumber$outboundSchema = exports.CreateEvalGuardrailConfigOperator$outboundSchema = exports.Python$outboundSchema = exports.CreateEvalRequestBodyEvalsOutputType$outboundSchema = exports.CreateEvalRequestBodyEvalsGuardrailConfig$outboundSchema = exports.CreateEvalGuardrailConfigEvalsBoolean$outboundSchema = exports.CreateEvalGuardrailConfigEvalsNumber$outboundSchema = exports.CreateEvalGuardrailConfigEvalsOperator$outboundSchema = exports.CreateEvalGuardrailConfigEvalsResponseOperator = exports.CreateEvalGuardrailConfigEvalsResponse200Operator = exports.ResponseBodyMethod = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator = exports.RagasMetric = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator = exports.OutputType = exports.Operator = exports.RequestBodyOutputType = exports.GuardrailConfigOperator = exports.CreateEvalRequestBodyMethod = exports.CreateEvalRequestBodyOutputType = exports.CreateEvalGuardrailConfigOperator = exports.CreateEvalRequestBodyEvalsOutputType = exports.CreateEvalGuardrailConfigEvalsOperator = void 0;
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = exports.ResponseBodyPython$inboundSchema = exports.CreateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = exports.CreateEvalResponseBodyFunction$inboundSchema = exports.FunctionParams$inboundSchema = exports.CreateEvalFunctionParams1$inboundSchema = exports.CreateEvalFunctionParams2$inboundSchema = exports.CreateEvalFunctionParams3$inboundSchema = exports.CreateEvalFunctionParams4$inboundSchema = exports.Five$inboundSchema = exports.Six$inboundSchema = exports.Seven$inboundSchema = exports.Eight$inboundSchema = exports.Nine$inboundSchema = exports.Ten$inboundSchema = exports.Eleven$inboundSchema = exports.Twelve$inboundSchema = exports.Thirteen$inboundSchema = exports.Fourteen$inboundSchema = exports.Fifteen$inboundSchema = exports.Sixteen$inboundSchema = exports.Seventeen$inboundSchema = exports.Eighteen$inboundSchema = exports.Nineteen$inboundSchema = exports.Twenty$inboundSchema = exports.TwentyOne$inboundSchema = exports.TwentyTwo$inboundSchema = exports.TwentyThree$inboundSchema = exports.TwentyFour$inboundSchema = exports.TwentyFive$inboundSchema = exports.TwentySix$inboundSchema = exports.TwentySeven$inboundSchema = exports.TwentyEight$inboundSchema = exports.TwentyNine$inboundSchema = exports.Thirty$inboundSchema = exports.ThirtyOne$inboundSchema = exports.ThirtyTwo$inboundSchema = exports.CreateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator$inboundSchema = exports.Ragas$inboundSchema = exports.RagasMetric$inboundSchema = exports.CreateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema = void 0;
exports.CreateEvalResponseBody$inboundSchema = exports.ResponseBodyLLM$inboundSchema = exports.ResponseBodyGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponseOperator$inboundSchema = exports.ResponseBodyJSON$inboundSchema = exports.CreateEvalResponseBodyGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema = exports.ResponseBodyHTTP$inboundSchema = exports.ResponseBodyMethod$inboundSchema = exports.CreateEvalResponseBodyEvalsGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema = void 0;
exports.createEvalGuardrailConfigEvalsNumberToJSON = createEvalGuardrailConfigEvalsNumberToJSON;
exports.createEvalGuardrailConfigEvalsBooleanToJSON = createEvalGuardrailConfigEvalsBooleanToJSON;
exports.createEvalRequestBodyEvalsGuardrailConfigToJSON = createEvalRequestBodyEvalsGuardrailConfigToJSON;
exports.pythonToJSON = pythonToJSON;
exports.createEvalGuardrailConfigNumberToJSON = createEvalGuardrailConfigNumberToJSON;
exports.createEvalGuardrailConfigBooleanToJSON = createEvalGuardrailConfigBooleanToJSON;
exports.createEvalRequestBodyGuardrailConfigToJSON = createEvalRequestBodyGuardrailConfigToJSON;
exports.createEvalRequestBodyHTTPToJSON = createEvalRequestBodyHTTPToJSON;
exports.guardrailConfigNumberToJSON = guardrailConfigNumberToJSON;
exports.guardrailConfigBooleanToJSON = guardrailConfigBooleanToJSON;
exports.requestBodyGuardrailConfigToJSON = requestBodyGuardrailConfigToJSON;
exports.jsonToJSON = jsonToJSON;
exports.numberToJSON = numberToJSON;
exports.booleanToJSON = booleanToJSON;
exports.guardrailConfigToJSON = guardrailConfigToJSON;
exports.llmToJSON = llmToJSON;
exports.createEvalRequestBodyToJSON = createEvalRequestBodyToJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7NumberFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7NumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7BooleanFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7BooleanFromJSON;
exports.createEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfigFromJSON = createEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfigFromJSON;
exports.typescriptFromJSON = typescriptFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6NumberFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6NumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6BooleanFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6BooleanFromJSON;
exports.createEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfigFromJSON = createEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfigFromJSON;
exports.ragasFromJSON = ragasFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5NumberFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5NumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5BooleanFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5BooleanFromJSON;
exports.createEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON = createEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON;
exports.thirtyTwoFromJSON = thirtyTwoFromJSON;
exports.thirtyOneFromJSON = thirtyOneFromJSON;
exports.thirtyFromJSON = thirtyFromJSON;
exports.twentyNineFromJSON = twentyNineFromJSON;
exports.twentyEightFromJSON = twentyEightFromJSON;
exports.twentySevenFromJSON = twentySevenFromJSON;
exports.twentySixFromJSON = twentySixFromJSON;
exports.twentyFiveFromJSON = twentyFiveFromJSON;
exports.twentyFourFromJSON = twentyFourFromJSON;
exports.twentyThreeFromJSON = twentyThreeFromJSON;
exports.twentyTwoFromJSON = twentyTwoFromJSON;
exports.twentyOneFromJSON = twentyOneFromJSON;
exports.twentyFromJSON = twentyFromJSON;
exports.nineteenFromJSON = nineteenFromJSON;
exports.eighteenFromJSON = eighteenFromJSON;
exports.seventeenFromJSON = seventeenFromJSON;
exports.sixteenFromJSON = sixteenFromJSON;
exports.fifteenFromJSON = fifteenFromJSON;
exports.fourteenFromJSON = fourteenFromJSON;
exports.thirteenFromJSON = thirteenFromJSON;
exports.twelveFromJSON = twelveFromJSON;
exports.elevenFromJSON = elevenFromJSON;
exports.tenFromJSON = tenFromJSON;
exports.nineFromJSON = nineFromJSON;
exports.eightFromJSON = eightFromJSON;
exports.sevenFromJSON = sevenFromJSON;
exports.sixFromJSON = sixFromJSON;
exports.fiveFromJSON = fiveFromJSON;
exports.createEvalFunctionParams4FromJSON = createEvalFunctionParams4FromJSON;
exports.createEvalFunctionParams3FromJSON = createEvalFunctionParams3FromJSON;
exports.createEvalFunctionParams2FromJSON = createEvalFunctionParams2FromJSON;
exports.createEvalFunctionParams1FromJSON = createEvalFunctionParams1FromJSON;
exports.functionParamsFromJSON = functionParamsFromJSON;
exports.createEvalResponseBodyFunctionFromJSON = createEvalResponseBodyFunctionFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON;
exports.createEvalResponseBodyEvalsResponseGuardrailConfigFromJSON = createEvalResponseBodyEvalsResponseGuardrailConfigFromJSON;
exports.responseBodyPythonFromJSON = responseBodyPythonFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON;
exports.createEvalResponseBodyEvalsGuardrailConfigFromJSON = createEvalResponseBodyEvalsGuardrailConfigFromJSON;
exports.responseBodyHTTPFromJSON = responseBodyHTTPFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200NumberFromJSON = createEvalGuardrailConfigEvalsResponse200NumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200BooleanFromJSON = createEvalGuardrailConfigEvalsResponse200BooleanFromJSON;
exports.createEvalResponseBodyGuardrailConfigFromJSON = createEvalResponseBodyGuardrailConfigFromJSON;
exports.responseBodyJSONFromJSON = responseBodyJSONFromJSON;
exports.createEvalGuardrailConfigEvalsResponseNumberFromJSON = createEvalGuardrailConfigEvalsResponseNumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponseBooleanFromJSON = createEvalGuardrailConfigEvalsResponseBooleanFromJSON;
exports.responseBodyGuardrailConfigFromJSON = responseBodyGuardrailConfigFromJSON;
exports.responseBodyLLMFromJSON = responseBodyLLMFromJSON;
exports.createEvalResponseBodyFromJSON = createEvalResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.CreateEvalGuardrailConfigEvalsOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalRequestBodyEvalsOutputType = {
    Boolean: "boolean",
    Number: "number",
};
exports.CreateEvalGuardrailConfigOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
/**
 * The type of output expected from the evaluator
 */
exports.CreateEvalRequestBodyOutputType = {
    Boolean: "boolean",
    Categorical: "categorical",
    Number: "number",
    String: "string",
};
exports.CreateEvalRequestBodyMethod = {
    Get: "GET",
    Post: "POST",
};
exports.GuardrailConfigOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.RequestBodyOutputType = {
    Boolean: "boolean",
};
exports.Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
/**
 * The type of output expected from the evaluator
 */
exports.OutputType = {
    Boolean: "boolean",
    Categorical: "categorical",
    Number: "number",
    String: "string",
};
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.RagasMetric = {
    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.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.ResponseBodyMethod = {
    Get: "GET",
    Post: "POST",
};
exports.CreateEvalGuardrailConfigEvalsResponse200Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalGuardrailConfigEvalsResponseOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
/** @internal */
exports.CreateEvalGuardrailConfigEvalsOperator$outboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigEvalsOperator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsNumber$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsOperator$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function createEvalGuardrailConfigEvalsNumberToJSON(createEvalGuardrailConfigEvalsNumber) {
    return JSON.stringify(exports.CreateEvalGuardrailConfigEvalsNumber$outboundSchema.parse(createEvalGuardrailConfigEvalsNumber));
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsBoolean$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function createEvalGuardrailConfigEvalsBooleanToJSON(createEvalGuardrailConfigEvalsBoolean) {
    return JSON.stringify(exports.CreateEvalGuardrailConfigEvalsBoolean$outboundSchema.parse(createEvalGuardrailConfigEvalsBoolean));
}
/** @internal */
exports.CreateEvalRequestBodyEvalsGuardrailConfig$outboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsBoolean$outboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsNumber$outboundSchema),
]);
function createEvalRequestBodyEvalsGuardrailConfigToJSON(createEvalRequestBodyEvalsGuardrailConfig) {
    return JSON.stringify(exports.CreateEvalRequestBodyEvalsGuardrailConfig$outboundSchema.parse(createEvalRequestBodyEvalsGuardrailConfig));
}
/** @internal */
exports.CreateEvalRequestBodyEvalsOutputType$outboundSchema = z.nativeEnum(exports.CreateEvalRequestBodyEvalsOutputType);
/** @internal */
exports.Python$outboundSchema = z.object({
    guardrailConfig: z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsBoolean$outboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsNumber$outboundSchema),
    ]).optional(),
    outputType: exports.CreateEvalRequestBodyEvalsOutputType$outboundSchema.optional(),
    code: z.string(),
    type: z.literal("python_eval"),
    path: z.string(),
    description: z.string().default(""),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        guardrailConfig: "guardrail_config",
        outputType: "output_type",
    });
});
function pythonToJSON(python) {
    return JSON.stringify(exports.Python$outboundSchema.parse(python));
}
/** @internal */
exports.CreateEvalGuardrailConfigOperator$outboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigOperator);
/** @internal */
exports.CreateEvalGuardrailConfigNumber$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigOperator$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function createEvalGuardrailConfigNumberToJSON(createEvalGuardrailConfigNumber) {
    return JSON.stringify(exports.CreateEvalGuardrailConfigNumber$outboundSchema.parse(createEvalGuardrailConfigNumber));
}
/** @internal */
exports.CreateEvalGuardrailConfigBoolean$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function createEvalGuardrailConfigBooleanToJSON(createEvalGuardrailConfigBoolean) {
    return JSON.stringify(exports.CreateEvalGuardrailConfigBoolean$outboundSchema.parse(createEvalGuardrailConfigBoolean));
}
/** @internal */
exports.CreateEvalRequestBodyGuardrailConfig$outboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigBoolean$outboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigNumber$outboundSchema),
]);
function createEvalRequestBodyGuardrailConfigToJSON(createEvalRequestBodyGuardrailConfig) {
    return JSON.stringify(exports.CreateEvalRequestBodyGuardrailConfig$outboundSchema.parse(createEvalRequestBodyGuardrailConfig));
}
/** @internal */
exports.CreateEvalRequestBodyOutputType$outboundSchema = z.nativeEnum(exports.CreateEvalRequestBodyOutputType);
/** @internal */
exports.CreateEvalRequestBodyMethod$outboundSchema = z.nativeEnum(exports.CreateEvalRequestBodyMethod);
/** @internal */
exports.CreateEvalRequestBodyHTTP$outboundSchema = z.object({
    guardrailConfig: z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigBoolean$outboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigNumber$outboundSchema),
    ]).optional(),
    outputType: exports.CreateEvalRequestBodyOutputType$outboundSchema.optional(),
    type: z.literal("http_eval"),
    url: z.string(),
    method: exports.CreateEvalRequestBodyMethod$outboundSchema,
    headers: z.record(z.string()),
    payload: z.record(z.any()),
    path: z.string(),
    description: z.string().default(""),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        guardrailConfig: "guardrail_config",
        outputType: "output_type",
    });
});
function createEvalRequestBodyHTTPToJSON(createEvalRequestBodyHTTP) {
    return JSON.stringify(exports.CreateEvalRequestBodyHTTP$outboundSchema.parse(createEvalRequestBodyHTTP));
}
/** @internal */
exports.GuardrailConfigOperator$outboundSchema = z.nativeEnum(exports.GuardrailConfigOperator);
/** @internal */
exports.GuardrailConfigNumber$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GuardrailConfigOperator$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function guardrailConfigNumberToJSON(guardrailConfigNumber) {
    return JSON.stringify(exports.GuardrailConfigNumber$outboundSchema.parse(guardrailConfigNumber));
}
/** @internal */
exports.GuardrailConfigBoolean$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function guardrailConfigBooleanToJSON(guardrailConfigBoolean) {
    return JSON.stringify(exports.GuardrailConfigBoolean$outboundSchema.parse(guardrailConfigBoolean));
}
/** @internal */
exports.RequestBodyGuardrailConfig$outboundSchema = z.union([
    z.lazy(() => exports.GuardrailConfigBoolean$outboundSchema),
    z.lazy(() => exports.GuardrailConfigNumber$outboundSchema),
]);
function requestBodyGuardrailConfigToJSON(requestBodyGuardrailConfig) {
    return JSON.stringify(exports.RequestBodyGuardrailConfig$outboundSchema.parse(requestBodyGuardrailConfig));
}
/** @internal */
exports.RequestBodyOutputType$outboundSchema = z.nativeEnum(exports.RequestBodyOutputType);
/** @internal */
exports.Json$outboundSchema = z.object({
    guardrailConfig: z.union([
        z.lazy(() => exports.GuardrailConfigBoolean$outboundSchema),
        z.lazy(() => exports.GuardrailConfigNumber$outboundSchema),
    ]).optional(),
    outputType: exports.RequestBodyOutputType$outboundSchema.optional(),
    type: z.literal("json_schema"),
    schema: z.string(),
    path: z.string(),
    description: z.string().default(""),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        guardrailConfig: "guardrail_config",
        outputType: "output_type",
    });
});
function jsonToJSON(json) {
    return JSON.stringify(exports.Json$outboundSchema.parse(json));
}
/** @internal */
exports.Operator$outboundSchema = z
    .nativeEnum(exports.Operator);
/** @internal */
exports.NumberT$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.Operator$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function numberToJSON(numberT) {
    return JSON.stringify(exports.NumberT$outboundSchema.parse(numberT));
}
/** @internal */
exports.Boolean$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function booleanToJSON(value) {
    return JSON.stringify(exports.Boolean$outboundSchema.parse(value));
}
/** @internal */
exports.GuardrailConfig$outboundSchema = z.union([
    z.lazy(() => exports.Boolean$outboundSchema),
    z.lazy(() => exports.NumberT$outboundSchema),
]);
function guardrailConfigToJSON(guardrailConfig) {
    return JSON.stringify(exports.GuardrailConfig$outboundSchema.parse(guardrailConfig));
}
/** @internal */
exports.OutputType$outboundSchema = z
    .nativeEnum(exports.OutputType);
/** @internal */
exports.Llm$outboundSchema = z
    .object({
    guardrailConfig: z.union([
        z.lazy(() => exports.Boolean$outboundSchema),
        z.lazy(() => exports.NumberT$outboundSchema),
    ]).optional(),
    outputType: exports.OutputType$outboundSchema.optional(),
    type: z.literal("llm_eval"),
    prompt: z.string(),
    path: z.string(),
    description: z.string().default(""),
    model: z.string(),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        guardrailConfig: "guardrail_config",
        outputType: "output_type",
    });
});
function llmToJSON(llm) {
    return JSON.stringify(exports.Llm$outboundSchema.parse(llm));
}
/** @internal */
exports.CreateEvalRequestBody$outboundSchema = z.union([
    z.lazy(() => exports.Llm$outboundSchema),
    z.lazy(() => exports.Json$outboundSchema),
    z.lazy(() => exports.CreateEvalRequestBodyHTTP$outboundSchema),
    z.lazy(() => exports.Python$outboundSchema),
]);
function createEvalRequestBodyToJSON(createEvalRequestBody) {
    return JSON.stringify(exports.CreateEvalRequestBody$outboundSchema.parse(createEvalRequestBody));
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator$inboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean' from JSON`);
}
/** @internal */
exports.CreateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema),
]);
function createEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig' from JSON`);
}
/** @internal */
exports.Typescript$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema),
    ]).optional(),
    code: z.string(),
    type: z.literal("typescript_eval"),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function typescriptFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Typescript$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Typescript' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator$inboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean' from JSON`);
}
/** @internal */
exports.CreateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema),
]);
function createEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig' from JSON`);
}
/** @internal */
exports.RagasMetric$inboundSchema = z
    .nativeEnum(exports.RagasMetric);
/** @internal */
exports.Ragas$inboundSchema = z
    .object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema),
    ]).optional(),
    type: z.literal("ragas"),
    ragas_metric: exports.RagasMetric$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 ragasFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Ragas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Ragas' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator$inboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean' from JSON`);
}
/** @internal */
exports.CreateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema),
]);
function createEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalResponseBodyEvalsResponse200GuardrailConfig' from JSON`);
}
/** @internal */
exports.ThirtyTwo$inboundSchema = z.object({
    type: z.literal("grammar_diversity"),
});
function thirtyTwoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ThirtyTwo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThirtyTwo' from JSON`);
}
/** @internal */
exports.ThirtyOne$inboundSchema = z.object({
    type: z.literal("lexical_repetition"),
});
function thirtyOneFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ThirtyOne$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThirtyOne' from JSON`);
}
/** @internal */
exports.Thirty$inboundSchema = z
    .object({
    type: z.literal("sentences_count"),
});
function thirtyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Thirty$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Thirty' from JSON`);
}
/** @internal */
exports.TwentyNine$inboundSchema = z.object({
    type: z.literal("words_count"),
});
function twentyNineFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyNine$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyNine' from JSON`);
}
/** @internal */
exports.TwentyEight$inboundSchema = z.object({
    type: z.literal("gse_english_level"),
});
function twentyEightFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyEight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyEight' from JSON`);
}
/** @internal */
exports.TwentySeven$inboundSchema = z.object({
    type: z.literal("flesch_reading_ease"),
});
function twentySevenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentySeven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentySeven' from JSON`);
}
/** @internal */
exports.TwentySix$inboundSchema = z.object({
    type: z.literal("most_repeated_words"),
});
function twentySixFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentySix$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentySix' from JSON`);
}
/** @internal */
exports.TwentyFive$inboundSchema = z.object({
    type: z.literal("keywords_match"),
    keywords: z.array(z.string()),
});
function twentyFiveFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyFive$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyFive' from JSON`);
}
/** @internal */
exports.TwentyFour$inboundSchema = z.object({
    type: z.literal("levenshtein_distance"),
});
function twentyFourFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyFour$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyFour' from JSON`);
}
/** @internal */
exports.TwentyThree$inboundSchema = z.object({
    type: z.literal("cosine_similarity"),
});
function twentyThreeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyThree$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyThree' from JSON`);
}
/** @internal */
exports.TwentyTwo$inboundSchema = z.object({
    type: z.literal("meteor_score"),
});
function twentyTwoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyTwo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyTwo' from JSON`);
}
/** @internal */
exports.TwentyOne$inboundSchema = z.object({
    type: z.literal("rouge_n"),
});
function twentyOneFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyOne$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyOne' from JSON`);
}
/** @internal */
exports.Twenty$inboundSchema = z
    .object({
    type: z.literal("bleu_score"),
});
function twentyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Twenty$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Twenty' from JSON`);
}
/** @internal */
exports.Nineteen$inboundSchema = z.object({
    type: z.literal("bert_score"),
});
function nineteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Nineteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Nineteen' from JSON`);
}
/** @internal */
exports.Eighteen$inboundSchema = z.object({
    type: z.literal("moderations_google"),
});
function eighteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Eighteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Eighteen' from JSON`);
}
/** @internal */
exports.Seventeen$inboundSchema = z.object({
    type: z.literal("moderations_openai"),
});
function seventeenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Seventeen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Seventeen' from JSON`);
}
/** @internal */
exports.Sixteen$inboundSchema = z.object({
    type: z.literal("is_valid_json"),
});
function sixteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Sixteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Sixteen' from JSON`);
}
/** @internal */
exports.Fifteen$inboundSchema = z.object({
    type: z.literal("regex"),
    pattern: z.string(),
});
function fifteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Fifteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Fifteen' from JSON`);
}
/** @internal */
exports.Fourteen$inboundSchema = z.object({
    type: z.literal("one_line"),
});
function fourteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Fourteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Fourteen' from JSON`);
}
/** @internal */
exports.Thirteen$inboundSchema = z.object({
    type: z.literal("length_greater_than"),
    value: z.number(),
});
function thirteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Thirteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Thirteen' from JSON`);
}
/** @internal */
exports.Twelve$inboundSchema = z
    .object({
    type: z.literal("length_between"),
    min: z.number(),
    max: z.number(),
});
function twelveFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Twelve$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Twelve' from JSON`);
}
/** @internal */
exports.Eleven$inboundSchema = z
    .object({
    type: z.literal("length_less_than"),
    value: z.number(),
});
function elevenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Eleven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Eleven' from JSON`);
}
/** @internal */
exports.Ten$inboundSchema = z
    .object({
    type: z.literal("exact_match"),
});
function tenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Ten$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Ten' from JSON`);
}
/** @internal */
exports.Nine$inboundSchema = z
    .object({
    type: z.literal("ends_with"),
    value: z.string(),
});
function nineFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Nine$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Nine' from JSON`);
}
/** @internal */
exports.Eight$inboundSchema = z
    .object({
    type: z.literal("start_with"),
    value: z.string(),
});
function eightFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Eight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Eight' from JSON`);
}
/** @internal */
exports.Seven$inboundSchema = z
    .object({
    type: z.literal("contains_valid_link"),
});
function sevenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Seven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Seven' from JSON`);
}
/** @internal */
exports.Six$inboundSchema = z
    .object({
    type: z.literal("contains_url"),
});
function sixFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Six$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Six' from JSON`);
}
/** @internal */
exports.Five$inboundSchema = z
    .object({
    type: z.literal("contains_email"),
});
function fiveFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Five$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Five' from JSON`);
}
/** @internal */
exports.CreateEvalFunctionParams4$inboundSchema = z.object({
    type: z.literal("contains_any"),
    keywords: z.array(z.string()),
});
function createEvalFunctionParams4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalFunctionParams4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalFunctionParams4' from JSON`);
}
/** @internal */
exports.CreateEvalFunctionParams3$inboundSchema = z.object({
    type: z.literal("contains_all"),
    keywords: z.array(z.string()),
});
function createEvalFunctionParams3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalFunctionParams3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalFunctionParams3' from JSON`);
}
/** @internal */
exports.CreateEvalFunctionParams2$inboundSchema = z.object({
    type: z.literal("contains_none"),
    keywords: z.array(z.string()),
});
function createEvalFunctionParams2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalFunctionParams2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalFunctionParams2' from JSON`);
}
/** @internal */
exports.CreateEvalFunctionParams1$inboundSchema = z.object({
    type: z.literal("contains"),
    value: z.string(),
});
function createEvalFunctionParams1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalFunctionParams1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalFunctionParams1' from JSON`);
}
/** @internal */
exports.FunctionParams$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalFunctionParams1$inboundSchema),
    z.lazy(() => exports.CreateEvalFunctionParams2$inboundSchema),
    z.lazy(() => exports.CreateEvalFunctionParams3$inboundSchema),
    z.lazy(() => exports.CreateEvalFunctionParams4$inboundSchema),
    z.lazy(() => exports.Five$inboundSchema),
    z.lazy(() => exports.Six$inboundSchema),
    z.lazy(() => exports.Seven$inboundSchema),
    z.lazy(() => exports.Eight$inboundSchema),
    z.lazy(() => exports.Nine$inboundSchema),
    z.lazy(() => exports.Ten$inboundSchema),
    z.lazy(() => exports.Eleven$inboundSchema),
    z.lazy(() => exports.Twelve$inboundSchema),
    z.lazy(() => exports.Thirteen$inboundSchema),
    z.lazy(() => exports.Fourteen$inboundSchema),
    z.lazy(() => exports.Fifteen$inboundSchema),
    z.lazy(() => exports.Sixteen$inboundSchema),
    z.lazy(() => exports.Seventeen$inboundSchema),
    z.lazy(() => exports.Eighteen$inboundSchema),
    z.lazy(() => exports.Nineteen$inboundSchema),
    z.lazy(() => exports.Twenty$inboundSchema),
    z.lazy(() => exports.TwentyOne$inboundSchema),
    z.lazy(() => exports.TwentyTwo$inboundSchema),
    z.lazy(() => exports.TwentyThree$inboundSchema),
    z.lazy(() => exports.TwentyFour$inboundSchema),
    z.lazy(() => exports.TwentyFive$inboundSchema),
    z.lazy(() => exports.TwentySix$inboundSchema),
    z.lazy(() => exports.TwentySeven$inboundSchema),
    z.lazy(() => exports.TwentyEight$inboundSchema),
    z.lazy(() => exports.TwentyNine$inboundSchema),
    z.lazy(() => exports.Thirty$inboundSchema),
    z.lazy(() => exports.ThirtyOne$inboundSchema),
    z.lazy(() => exports.ThirtyTwo$inboundSchema),
]);
function functionParamsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams' from JSON`);
}
/** @internal */
exports.CreateEvalResponseBodyFunction$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema),
    ]).optional(),
    type: z.literal("function_eval"),
    function_params: z.union([
        z.lazy(() => exports.CreateEvalFunctionParams1$inboundSchema),
        z.lazy(() => exports.CreateEvalFunctionParams2$inboundSchema),
        z.lazy(() => exports.CreateEvalFunctionParams3$inboundSchema),
        z.lazy(() => exports.CreateEvalFunctionParams4$inboundSchema),
        z.lazy(() => exports.Five$inboundSchema),
        z.lazy(() => exports.Six$inboundSchema),
        z.lazy(() => exports.Seven$inboundSchema),
        z.lazy(() => exports.Eight$inboundSchema),
        z.lazy(() => exports.Nine$inboundSchema),
        z.lazy(() => exports.Ten$inboundSchema),
        z.lazy(() => exports.Eleven$inboundSchema),
        z.lazy(() => exports.Twelve$inboundSchema),
        z.lazy(() => exports.Thirteen$inboundSchema),
        z.lazy(() => exports.Fourteen$inboundSchema),
        z.lazy(() => exports.Fifteen$inboundSchema),
        z.lazy(() => exports.Sixteen$inboundSchema),
        z.lazy(() => exports.Seventeen$inboundSchema),
        z.lazy(() => exports.Eighteen$inboundSchema),
        z.lazy(() => exports.Nineteen$inboundSchema),
        z.lazy(() => exports.Twenty$inboundSchema),
        z.lazy(() => exports.TwentyOne$inboundSchema),
        z.lazy(() => exports.TwentyTwo$inboundSchema),
        z.lazy(() => exports.TwentyThree$inboundSchema),
        z.lazy(() => exports.TwentyFour$inboundSchema),
        z.lazy(() => exports.TwentyFive$inboundSchema),
        z.lazy(() => exports.TwentySix$inboundSchema),
        z.lazy(() => exports.TwentySeven$inboundSchema),
        z.lazy(() => exports.TwentyEight$inboundSchema),
        z.lazy(() => exports.TwentyNine$inboundSchema),
        z.lazy(() => exports.Thirty$inboundSchema),
        z.lazy(() => exports.ThirtyOne$inboundSchema),
        z.lazy(() => exports.ThirtyTwo$inboundSchema),
    ]),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "function_params": "functionParams",
    });
});
function createEvalResponseBodyFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalResponseBodyFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalResponseBodyFunction' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean' from JSON`);
}
/** @internal */
exports.CreateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
]);
function createEvalResponseBodyEvalsResponseGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalResponseBodyEvalsResponseGuardrailConfig' from JSON`);
}
/** @internal */
exports.ResponseBodyPython$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
    ]).optional(),
    code: z.string(),
    type: z.literal("python_eval"),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function responseBodyPythonFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyPython$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyPython' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function createEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean' from JSON`);
}
/** @internal */
exports.CreateEvalResponseBodyEvalsGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
]);
function createEvalResponseBodyEvalsGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalResponseBodyEvalsGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalResponseBodyEvalsGuardrailConfig' from JSON`);
}
/** @internal */
exports.ResponseBodyMethod$inboundSchema = z.nativeEnum(exports.ResponseBodyMethod);
/** @internal */
exports.ResponseBodyHTTP$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
    ]).optional(),
    type: z.literal("http_eval"),
    url: z.string(),
    method: exports.ResponseBodyMethod$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 responseBodyHTTPFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyHTTP$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyHTTP' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema = z
    .nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponse200Operator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function createEvalGuardrailConfigEvalsResponse200NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200Number' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200Boolean$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 createEvalGuardrailConfigEvalsResponse200BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200Boolean' from JSON`);
}
/** @internal */
exports.CreateEvalResponseBodyGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
]);
function createEvalResponseBodyGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalResponseBodyGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalResponseBodyGuardrailConfig' from JSON`);
}
/** @internal */
exports.ResponseBodyJSON$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
    ]).optional(),
    type: z.literal("json_schema"),
    schema: z.string(),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function responseBodyJSONFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyJSON$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyJSON' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponseOperator$inboundSchema = z
    .nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponseOperator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsResponseOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function createEvalGuardrailConfigEvalsResponseNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponseNumber' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponseBoolean$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 createEvalGuardrailConfigEvalsResponseBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponseBoolean' from JSON`);
}
/** @internal */
exports.ResponseBodyGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
]);
function responseBodyGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyGuardrailConfig' from JSON`);
}
/** @internal */
exports.ResponseBodyLLM$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
    ]).optional(),
    type: z.literal("llm_eval"),
    prompt: z.string(),
    key: z.string(),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function responseBodyLLMFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyLLM$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyLLM' from JSON`);
}
/** @internal */
exports.CreateEvalResponseBody$inboundSchema = z.union([
    z.lazy(() => exports.ResponseBodyLLM$inboundSchema),
    z.lazy(() => exports.ResponseBodyJSON$inboundSchema),
    z.lazy(() => exports.ResponseBodyHTTP$inboundSchema),
    z.lazy(() => exports.ResponseBodyPython$inboundSchema),
    z.lazy(() => exports.CreateEvalResponseBodyFunction$inboundSchema),
    z.lazy(() => exports.Ragas$inboundSchema),
    z.lazy(() => exports.Typescript$inboundSchema),
]);
function createEvalResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalResponseBody' from JSON`);
}
//# sourceMappingURL=createeval.js.map