"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.LLMFallbacks$outboundSchema = exports.LLMRetry$outboundSchema = exports.LLMJudges$outboundSchema = exports.CreateEvalLLMFallbacks$outboundSchema = exports.CreateEvalLLMRetry$outboundSchema = exports.LLMCategoricalLabels$outboundSchema = exports.LLMType$outboundSchema = exports.LLMOutputType$outboundSchema = exports.LLMGuardrailConfig$outboundSchema = exports.CreateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema = exports.CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema = exports.CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema = exports.CreateEvalGuardrailConfigEvalsRequestOperator$outboundSchema = exports.Python$outboundSchema = exports.RequestBodyType$outboundSchema = exports.OutputType$outboundSchema = exports.RequestBodyGuardrailConfig$outboundSchema = exports.GuardrailConfigBoolean$outboundSchema = exports.GuardrailConfigCategorical$outboundSchema = exports.GuardrailConfigNumber$outboundSchema = exports.GuardrailConfigOperator$outboundSchema = exports.CreateEvalLLMEvalsType = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator = exports.CreateEvalLLMTieValue = exports.CreateEvalLLMEvalsResponseType = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator = exports.ResponseBodyType = exports.CreateEvalGuardrailConfigEvalsOperator = exports.CreateEvalResponseBodyMethod = exports.CreateEvalResponseBodyType = exports.CreateEvalGuardrailConfigEvalsResponseOperator = exports.CreateEvalResponseBodyEvalsType = exports.CreateEvalGuardrailConfigEvalsResponse200Operator = exports.CreateEvalResponseBodyEvalsResponseType = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator = exports.RagasMetric = exports.CreateEvalResponseBodyEvalsResponse200Type = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = exports.CreateEvalResponseBodyEvalsResponse200ApplicationJSONType = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator = exports.CreateEvalLLMType = exports.CreateEvalLLMOutputType = exports.CreateEvalGuardrailConfigOperator = exports.LLMTieValue = exports.LLMType = exports.LLMOutputType = exports.CreateEvalGuardrailConfigEvalsRequestOperator = exports.RequestBodyType = exports.OutputType = exports.GuardrailConfigOperator = void 0;
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.CreateEvalResponseBodyEvalsResponseType$inboundSchema = exports.CreateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = exports.Ragas$inboundSchema = exports.RagasMetric$inboundSchema = exports.CreateEvalResponseBodyEvalsResponse200Type$inboundSchema = exports.CreateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = exports.Typescript$inboundSchema = exports.CreateEvalResponseBodyEvalsResponse200ApplicationJSONType$inboundSchema = exports.CreateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator$inboundSchema = exports.CreateEvalRequestBody$outboundSchema = exports.Llm$outboundSchema = exports.Llm1$outboundSchema = exports.CreateEvalLLMCategoricalLabels$outboundSchema = exports.CreateEvalLLMType$outboundSchema = exports.CreateEvalLLMOutputType$outboundSchema = exports.CreateEvalLLMGuardrailConfig$outboundSchema = exports.CreateEvalGuardrailConfigBoolean$outboundSchema = exports.CreateEvalGuardrailConfigCategorical$outboundSchema = exports.CreateEvalGuardrailConfigNumber$outboundSchema = exports.CreateEvalGuardrailConfigOperator$outboundSchema = exports.Llm2$outboundSchema = exports.LLMJury$outboundSchema = exports.LLMTieValue$outboundSchema = exports.LLMReplacementJudges$outboundSchema = void 0;
exports.CreateEvalLLMEvalsResponseRetry$inboundSchema = exports.CreateEvalLLMEvalsCategoricalLabels$inboundSchema = exports.CreateEvalLLMEvalsResponseType$inboundSchema = exports.CreateEvalLLMEvalsResponseGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator$inboundSchema = exports.Json$inboundSchema = exports.ResponseBodyType$inboundSchema = exports.ResponseBodyGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsBoolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsCategorical$inboundSchema = exports.CreateEvalGuardrailConfigEvalsNumber$inboundSchema = exports.CreateEvalGuardrailConfigEvalsOperator$inboundSchema = exports.CreateEvalResponseBodyHTTP$inboundSchema = exports.CreateEvalResponseBodyMethod$inboundSchema = exports.CreateEvalResponseBodyType$inboundSchema = exports.CreateEvalResponseBodyGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponseOperator$inboundSchema = exports.ResponseBodyPython$inboundSchema = exports.CreateEvalResponseBodyEvalsType$inboundSchema = exports.CreateEvalResponseBodyEvalsGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema = exports.CreateEvalResponseBodyFunction$inboundSchema = exports.FunctionParams$inboundSchema = exports.FunctionParams1$inboundSchema = exports.FunctionParams2$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 = void 0;
exports.CreateEvalResponseBody$inboundSchema = exports.ResponseBodyLLM$inboundSchema = exports.CreateEvalLlm1$inboundSchema = exports.CreateEvalLLMEvalsResponseCategoricalLabels$inboundSchema = exports.CreateEvalLLMEvalsType$inboundSchema = exports.CreateEvalLLMEvalsGuardrailConfig$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema = exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator$inboundSchema = exports.CreateEvalLlm2$inboundSchema = exports.CreateEvalLLMJury$inboundSchema = exports.CreateEvalLLMTieValue$inboundSchema = exports.CreateEvalLLMReplacementJudges$inboundSchema = exports.CreateEvalLLMEvalsFallbacks$inboundSchema = exports.CreateEvalLLMEvalsRetry$inboundSchema = exports.CreateEvalLLMJudges$inboundSchema = exports.CreateEvalLLMEvalsResponseFallbacks$inboundSchema = void 0;
exports.guardrailConfigNumberToJSON = guardrailConfigNumberToJSON;
exports.guardrailConfigCategoricalToJSON = guardrailConfigCategoricalToJSON;
exports.guardrailConfigBooleanToJSON = guardrailConfigBooleanToJSON;
exports.requestBodyGuardrailConfigToJSON = requestBodyGuardrailConfigToJSON;
exports.pythonToJSON = pythonToJSON;
exports.createEvalGuardrailConfigEvalsRequestNumberToJSON = createEvalGuardrailConfigEvalsRequestNumberToJSON;
exports.createEvalGuardrailConfigEvalsRequestCategoricalToJSON = createEvalGuardrailConfigEvalsRequestCategoricalToJSON;
exports.createEvalGuardrailConfigEvalsRequestBooleanToJSON = createEvalGuardrailConfigEvalsRequestBooleanToJSON;
exports.llmGuardrailConfigToJSON = llmGuardrailConfigToJSON;
exports.llmCategoricalLabelsToJSON = llmCategoricalLabelsToJSON;
exports.createEvalLLMRetryToJSON = createEvalLLMRetryToJSON;
exports.createEvalLLMFallbacksToJSON = createEvalLLMFallbacksToJSON;
exports.llmJudgesToJSON = llmJudgesToJSON;
exports.llmRetryToJSON = llmRetryToJSON;
exports.llmFallbacksToJSON = llmFallbacksToJSON;
exports.llmReplacementJudgesToJSON = llmReplacementJudgesToJSON;
exports.llmJuryToJSON = llmJuryToJSON;
exports.llm2ToJSON = llm2ToJSON;
exports.createEvalGuardrailConfigNumberToJSON = createEvalGuardrailConfigNumberToJSON;
exports.createEvalGuardrailConfigCategoricalToJSON = createEvalGuardrailConfigCategoricalToJSON;
exports.createEvalGuardrailConfigBooleanToJSON = createEvalGuardrailConfigBooleanToJSON;
exports.createEvalLLMGuardrailConfigToJSON = createEvalLLMGuardrailConfigToJSON;
exports.createEvalLLMCategoricalLabelsToJSON = createEvalLLMCategoricalLabelsToJSON;
exports.llm1ToJSON = llm1ToJSON;
exports.llmToJSON = llmToJSON;
exports.createEvalRequestBodyToJSON = createEvalRequestBodyToJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7NumberFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7NumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7CategoricalFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7CategoricalFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7BooleanFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7BooleanFromJSON;
exports.createEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfigFromJSON = createEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfigFromJSON;
exports.typescriptFromJSON = typescriptFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategoricalFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategoricalFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON;
exports.createEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON = createEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON;
exports.ragasFromJSON = ragasFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON;
exports.createEvalResponseBodyEvalsResponseGuardrailConfigFromJSON = createEvalResponseBodyEvalsResponseGuardrailConfigFromJSON;
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.functionParams2FromJSON = functionParams2FromJSON;
exports.functionParams1FromJSON = functionParams1FromJSON;
exports.functionParamsFromJSON = functionParamsFromJSON;
exports.createEvalResponseBodyFunctionFromJSON = createEvalResponseBodyFunctionFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200NumberFromJSON = createEvalGuardrailConfigEvalsResponse200NumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200CategoricalFromJSON = createEvalGuardrailConfigEvalsResponse200CategoricalFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200BooleanFromJSON = createEvalGuardrailConfigEvalsResponse200BooleanFromJSON;
exports.createEvalResponseBodyEvalsGuardrailConfigFromJSON = createEvalResponseBodyEvalsGuardrailConfigFromJSON;
exports.responseBodyPythonFromJSON = responseBodyPythonFromJSON;
exports.createEvalGuardrailConfigEvalsResponseNumberFromJSON = createEvalGuardrailConfigEvalsResponseNumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponseCategoricalFromJSON = createEvalGuardrailConfigEvalsResponseCategoricalFromJSON;
exports.createEvalGuardrailConfigEvalsResponseBooleanFromJSON = createEvalGuardrailConfigEvalsResponseBooleanFromJSON;
exports.createEvalResponseBodyGuardrailConfigFromJSON = createEvalResponseBodyGuardrailConfigFromJSON;
exports.createEvalResponseBodyHTTPFromJSON = createEvalResponseBodyHTTPFromJSON;
exports.createEvalGuardrailConfigEvalsNumberFromJSON = createEvalGuardrailConfigEvalsNumberFromJSON;
exports.createEvalGuardrailConfigEvalsCategoricalFromJSON = createEvalGuardrailConfigEvalsCategoricalFromJSON;
exports.createEvalGuardrailConfigEvalsBooleanFromJSON = createEvalGuardrailConfigEvalsBooleanFromJSON;
exports.responseBodyGuardrailConfigFromJSON = responseBodyGuardrailConfigFromJSON;
exports.jsonFromJSON = jsonFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1NumberFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1NumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1CategoricalFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1CategoricalFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1BooleanFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1BooleanFromJSON;
exports.createEvalLLMEvalsResponseGuardrailConfigFromJSON = createEvalLLMEvalsResponseGuardrailConfigFromJSON;
exports.createEvalLLMEvalsCategoricalLabelsFromJSON = createEvalLLMEvalsCategoricalLabelsFromJSON;
exports.createEvalLLMEvalsResponseRetryFromJSON = createEvalLLMEvalsResponseRetryFromJSON;
exports.createEvalLLMEvalsResponseFallbacksFromJSON = createEvalLLMEvalsResponseFallbacksFromJSON;
exports.createEvalLLMJudgesFromJSON = createEvalLLMJudgesFromJSON;
exports.createEvalLLMEvalsRetryFromJSON = createEvalLLMEvalsRetryFromJSON;
exports.createEvalLLMEvalsFallbacksFromJSON = createEvalLLMEvalsFallbacksFromJSON;
exports.createEvalLLMReplacementJudgesFromJSON = createEvalLLMReplacementJudgesFromJSON;
exports.createEvalLLMJuryFromJSON = createEvalLLMJuryFromJSON;
exports.createEvalLLM2FromJSON = createEvalLLM2FromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumberFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumberFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategoricalFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategoricalFromJSON;
exports.createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBooleanFromJSON = createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBooleanFromJSON;
exports.createEvalLLMEvalsGuardrailConfigFromJSON = createEvalLLMEvalsGuardrailConfigFromJSON;
exports.createEvalLLMEvalsResponseCategoricalLabelsFromJSON = createEvalLLMEvalsResponseCategoricalLabelsFromJSON;
exports.createEvalLLM1FromJSON = createEvalLLM1FromJSON;
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.GuardrailConfigOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.OutputType = {
    Boolean: "boolean",
    Number: "number",
};
exports.RequestBodyType = {
    PythonEval: "python_eval",
};
exports.CreateEvalGuardrailConfigEvalsRequestOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
/**
 * The type of output expected from the evaluator
 */
exports.LLMOutputType = {
    Boolean: "boolean",
    Categorical: "categorical",
    Number: "number",
    String: "string",
};
exports.LLMType = {
    LlmEval: "llm_eval",
};
exports.LLMTieValue = {
    Tie: "Tie",
};
exports.CreateEvalGuardrailConfigOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
/**
 * The type of output expected from the evaluator
 */
exports.CreateEvalLLMOutputType = {
    Boolean: "boolean",
    Categorical: "categorical",
    Number: "number",
    String: "string",
};
exports.CreateEvalLLMType = {
    LlmEval: "llm_eval",
};
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalResponseBodyEvalsResponse200ApplicationJSONType = {
    TypescriptEval: "typescript_eval",
};
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalResponseBodyEvalsResponse200Type = {
    Ragas: "ragas",
};
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.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalResponseBodyEvalsResponseType = {
    FunctionEval: "function_eval",
};
exports.CreateEvalGuardrailConfigEvalsResponse200Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalResponseBodyEvalsType = {
    PythonEval: "python_eval",
};
exports.CreateEvalGuardrailConfigEvalsResponseOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalResponseBodyType = {
    HttpEval: "http_eval",
};
exports.CreateEvalResponseBodyMethod = {
    Get: "GET",
    Post: "POST",
};
exports.CreateEvalGuardrailConfigEvalsOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.ResponseBodyType = {
    JsonSchema: "json_schema",
};
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalLLMEvalsResponseType = {
    LlmEval: "llm_eval",
};
exports.CreateEvalLLMTieValue = {
    Tie: "Tie",
};
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.CreateEvalLLMEvalsType = {
    LlmEval: "llm_eval",
};
/** @internal */
exports.GuardrailConfigOperator$outboundSchema = z.nativeEnum(exports.GuardrailConfigOperator);
/** @internal */
exports.GuardrailConfigNumber$outboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.GuardrailConfigCategorical$outboundSchema = z.object({
    enabled: z.boolean().default(true),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function guardrailConfigCategoricalToJSON(guardrailConfigCategorical) {
    return JSON.stringify(exports.GuardrailConfigCategorical$outboundSchema.parse(guardrailConfigCategorical));
}
/** @internal */
exports.GuardrailConfigBoolean$outboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.GuardrailConfigCategorical$outboundSchema),
    z.lazy(() => exports.GuardrailConfigNumber$outboundSchema),
]);
function requestBodyGuardrailConfigToJSON(requestBodyGuardrailConfig) {
    return JSON.stringify(exports.RequestBodyGuardrailConfig$outboundSchema.parse(requestBodyGuardrailConfig));
}
/** @internal */
exports.OutputType$outboundSchema = z
    .nativeEnum(exports.OutputType);
/** @internal */
exports.RequestBodyType$outboundSchema = z.nativeEnum(exports.RequestBodyType);
/** @internal */
exports.Python$outboundSchema = z.object({
    guardrailConfig: z.nullable(z.union([
        z.lazy(() => exports.GuardrailConfigBoolean$outboundSchema),
        z.lazy(() => exports.GuardrailConfigCategorical$outboundSchema),
        z.lazy(() => exports.GuardrailConfigNumber$outboundSchema),
    ])).optional(),
    outputType: exports.OutputType$outboundSchema.optional(),
    code: z.string(),
    type: exports.RequestBodyType$outboundSchema,
    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.CreateEvalGuardrailConfigEvalsRequestOperator$outboundSchema = z
    .nativeEnum(exports.CreateEvalGuardrailConfigEvalsRequestOperator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema = z.object({
    enabled: z.boolean().default(true),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsRequestOperator$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function createEvalGuardrailConfigEvalsRequestNumberToJSON(createEvalGuardrailConfigEvalsRequestNumber) {
    return JSON.stringify(exports.CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema.parse(createEvalGuardrailConfigEvalsRequestNumber));
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema = z.object({
    enabled: z.boolean().default(true),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function createEvalGuardrailConfigEvalsRequestCategoricalToJSON(createEvalGuardrailConfigEvalsRequestCategorical) {
    return JSON.stringify(exports.CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema.parse(createEvalGuardrailConfigEvalsRequestCategorical));
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsRequestBooleanToJSON(createEvalGuardrailConfigEvalsRequestBoolean) {
    return JSON.stringify(exports.CreateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema.parse(createEvalGuardrailConfigEvalsRequestBoolean));
}
/** @internal */
exports.LLMGuardrailConfig$outboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema),
]);
function llmGuardrailConfigToJSON(llmGuardrailConfig) {
    return JSON.stringify(exports.LLMGuardrailConfig$outboundSchema.parse(llmGuardrailConfig));
}
/** @internal */
exports.LLMOutputType$outboundSchema = z.nativeEnum(exports.LLMOutputType);
/** @internal */
exports.LLMType$outboundSchema = z
    .nativeEnum(exports.LLMType);
/** @internal */
exports.LLMCategoricalLabels$outboundSchema = z.object({
    value: z.string(),
    description: z.string().optional(),
});
function llmCategoricalLabelsToJSON(llmCategoricalLabels) {
    return JSON.stringify(exports.LLMCategoricalLabels$outboundSchema.parse(llmCategoricalLabels));
}
/** @internal */
exports.CreateEvalLLMRetry$outboundSchema = z.object({
    count: z.number().int().default(2),
    onCodes: z.array(z.number().int()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        onCodes: "on_codes",
    });
});
function createEvalLLMRetryToJSON(createEvalLLMRetry) {
    return JSON.stringify(exports.CreateEvalLLMRetry$outboundSchema.parse(createEvalLLMRetry));
}
/** @internal */
exports.CreateEvalLLMFallbacks$outboundSchema = z.object({
    model: z.string(),
});
function createEvalLLMFallbacksToJSON(createEvalLLMFallbacks) {
    return JSON.stringify(exports.CreateEvalLLMFallbacks$outboundSchema.parse(createEvalLLMFallbacks));
}
/** @internal */
exports.LLMJudges$outboundSchema = z.object({
    model: z.string(),
    retry: z.lazy(() => exports.CreateEvalLLMRetry$outboundSchema).optional(),
    fallbacks: z.array(z.lazy(() => exports.CreateEvalLLMFallbacks$outboundSchema))
        .optional(),
});
function llmJudgesToJSON(llmJudges) {
    return JSON.stringify(exports.LLMJudges$outboundSchema.parse(llmJudges));
}
/** @internal */
exports.LLMRetry$outboundSchema = z.object({
    count: z.number().int().default(2),
    onCodes: z.array(z.number().int()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        onCodes: "on_codes",
    });
});
function llmRetryToJSON(llmRetry) {
    return JSON.stringify(exports.LLMRetry$outboundSchema.parse(llmRetry));
}
/** @internal */
exports.LLMFallbacks$outboundSchema = z.object({
    model: z.string(),
});
function llmFallbacksToJSON(llmFallbacks) {
    return JSON.stringify(exports.LLMFallbacks$outboundSchema.parse(llmFallbacks));
}
/** @internal */
exports.LLMReplacementJudges$outboundSchema = z.object({
    model: z.string(),
    retry: z.lazy(() => exports.LLMRetry$outboundSchema).optional(),
    fallbacks: z.array(z.lazy(() => exports.LLMFallbacks$outboundSchema)).optional(),
});
function llmReplacementJudgesToJSON(llmReplacementJudges) {
    return JSON.stringify(exports.LLMReplacementJudges$outboundSchema.parse(llmReplacementJudges));
}
/** @internal */
exports.LLMTieValue$outboundSchema = z
    .nativeEnum(exports.LLMTieValue);
/** @internal */
exports.LLMJury$outboundSchema = z.object({
    judges: z.array(z.lazy(() => exports.LLMJudges$outboundSchema)),
    replacementJudges: z.array(z.lazy(() => exports.LLMReplacementJudges$outboundSchema))
        .optional(),
    minSuccessfulJudges: z.number().int().default(2),
    tieValue: exports.LLMTieValue$outboundSchema.default("Tie"),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        replacementJudges: "replacement_judges",
        minSuccessfulJudges: "min_successful_judges",
        tieValue: "tie_value",
    });
});
function llmJuryToJSON(llmJury) {
    return JSON.stringify(exports.LLMJury$outboundSchema.parse(llmJury));
}
/** @internal */
exports.Llm2$outboundSchema = z.object({
    guardrailConfig: z.nullable(z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsRequestCategorical$outboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsRequestNumber$outboundSchema),
    ])).optional(),
    outputType: exports.LLMOutputType$outboundSchema.optional(),
    type: exports.LLMType$outboundSchema,
    repetitions: z.nullable(z.number().int()).optional(),
    prompt: z.string(),
    categories: z.nullable(z.array(z.string())).optional(),
    categoricalLabels: z.nullable(z.array(z.lazy(() => exports.LLMCategoricalLabels$outboundSchema))).optional(),
    datasetId: z.string().optional(),
    path: z.string(),
    description: z.string().default(""),
    key: z.string(),
    mode: z.literal("jury"),
    jury: z.lazy(() => exports.LLMJury$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        guardrailConfig: "guardrail_config",
        outputType: "output_type",
        categoricalLabels: "categorical_labels",
        datasetId: "dataset_id",
    });
});
function llm2ToJSON(llm2) {
    return JSON.stringify(exports.Llm2$outboundSchema.parse(llm2));
}
/** @internal */
exports.CreateEvalGuardrailConfigOperator$outboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigOperator);
/** @internal */
exports.CreateEvalGuardrailConfigNumber$outboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.CreateEvalGuardrailConfigCategorical$outboundSchema = z.object({
    enabled: z.boolean().default(true),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function createEvalGuardrailConfigCategoricalToJSON(createEvalGuardrailConfigCategorical) {
    return JSON.stringify(exports.CreateEvalGuardrailConfigCategorical$outboundSchema.parse(createEvalGuardrailConfigCategorical));
}
/** @internal */
exports.CreateEvalGuardrailConfigBoolean$outboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.CreateEvalLLMGuardrailConfig$outboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigBoolean$outboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigCategorical$outboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigNumber$outboundSchema),
]);
function createEvalLLMGuardrailConfigToJSON(createEvalLLMGuardrailConfig) {
    return JSON.stringify(exports.CreateEvalLLMGuardrailConfig$outboundSchema.parse(createEvalLLMGuardrailConfig));
}
/** @internal */
exports.CreateEvalLLMOutputType$outboundSchema = z.nativeEnum(exports.CreateEvalLLMOutputType);
/** @internal */
exports.CreateEvalLLMType$outboundSchema = z.nativeEnum(exports.CreateEvalLLMType);
/** @internal */
exports.CreateEvalLLMCategoricalLabels$outboundSchema = z.object({
    value: z.string(),
    description: z.string().optional(),
});
function createEvalLLMCategoricalLabelsToJSON(createEvalLLMCategoricalLabels) {
    return JSON.stringify(exports.CreateEvalLLMCategoricalLabels$outboundSchema.parse(createEvalLLMCategoricalLabels));
}
/** @internal */
exports.Llm1$outboundSchema = z.object({
    guardrailConfig: z.nullable(z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigBoolean$outboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigCategorical$outboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigNumber$outboundSchema),
    ])).optional(),
    outputType: exports.CreateEvalLLMOutputType$outboundSchema.optional(),
    type: exports.CreateEvalLLMType$outboundSchema,
    repetitions: z.nullable(z.number().int()).optional(),
    prompt: z.string(),
    categories: z.nullable(z.array(z.string())).optional(),
    categoricalLabels: z.nullable(z.array(z.lazy(() => exports.CreateEvalLLMCategoricalLabels$outboundSchema))).optional(),
    datasetId: z.string().optional(),
    path: z.string(),
    description: z.string().default(""),
    key: z.string(),
    mode: z.literal("single"),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        guardrailConfig: "guardrail_config",
        outputType: "output_type",
        categoricalLabels: "categorical_labels",
        datasetId: "dataset_id",
    });
});
function llm1ToJSON(llm1) {
    return JSON.stringify(exports.Llm1$outboundSchema.parse(llm1));
}
/** @internal */
exports.Llm$outboundSchema = z
    .union([
    z.lazy(() => exports.Llm1$outboundSchema),
    z.lazy(() => exports.Llm2$outboundSchema),
]);
function llmToJSON(llm) {
    return JSON.stringify(exports.Llm$outboundSchema.parse(llm));
}
/** @internal */
exports.CreateEvalRequestBody$outboundSchema = z.union([
    z.lazy(() => exports.Python$outboundSchema),
    z.union([
        z.lazy(() => exports.Llm1$outboundSchema),
        z.lazy(() => exports.Llm2$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().default(true),
    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.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7CategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.CreateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$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.CreateEvalResponseBodyEvalsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.CreateEvalResponseBodyEvalsResponse200ApplicationJSONType);
/** @internal */
exports.Typescript$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-28T21:48:20.169Z"),
    updated: z.string().default("2026-06-28T21:48:20.169Z"),
    updated_by_id: z.nullable(z.string()).optional(),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Categorical$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema),
    ])).optional(),
    code: z.string(),
    type: exports.CreateEvalResponseBodyEvalsResponse200ApplicationJSONType$inboundSchema,
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "updated_by_id": "updatedById",
        "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.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.CreateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$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.CreateEvalResponseBodyEvalsResponse200Type$inboundSchema = z
    .nativeEnum(exports.CreateEvalResponseBodyEvalsResponse200Type);
/** @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-06-28T21:48:20.169Z"),
    updated: z.string().default("2026-06-28T21:48:20.169Z"),
    updated_by_id: z.nullable(z.string()).optional(),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
    ])).optional(),
    type: exports.CreateEvalResponseBodyEvalsResponse200Type$inboundSchema,
    ragas_metric: exports.RagasMetric$inboundSchema,
    key: z.string(),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "updated_by_id": "updatedById",
        "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.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.CreateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$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.CreateEvalResponseBodyEvalsResponseType$inboundSchema = z
    .nativeEnum(exports.CreateEvalResponseBodyEvalsResponseType);
/** @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.FunctionParams2$inboundSchema = z.object({
    type: z.literal("contains_none"),
    keywords: z.array(z.string()),
});
function functionParams2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams2' from JSON`);
}
/** @internal */
exports.FunctionParams1$inboundSchema = z.object({
    type: z.literal("contains"),
    value: z.string(),
});
function functionParams1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams1' from JSON`);
}
/** @internal */
exports.FunctionParams$inboundSchema = z.union([
    z.lazy(() => exports.FunctionParams1$inboundSchema),
    z.lazy(() => exports.FunctionParams2$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-06-28T21:48:20.169Z"),
    updated: z.string().default("2026-06-28T21:48:20.169Z"),
    updated_by_id: z.nullable(z.string()).optional(),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
    ])).optional(),
    type: exports.CreateEvalResponseBodyEvalsResponseType$inboundSchema,
    function_params: z.union([
        z.lazy(() => exports.FunctionParams1$inboundSchema),
        z.lazy(() => exports.FunctionParams2$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",
        "updated_by_id": "updatedById",
        "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.CreateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema = z
    .nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponse200Operator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.CreateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsResponse200CategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200Categorical' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.CreateEvalResponseBodyEvalsGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Number$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.CreateEvalResponseBodyEvalsType$inboundSchema = z.nativeEnum(exports.CreateEvalResponseBodyEvalsType);
/** @internal */
exports.ResponseBodyPython$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-28T21:48:20.169Z"),
    updated: z.string().default("2026-06-28T21:48:20.169Z"),
    updated_by_id: z.nullable(z.string()).optional(),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
    ])).optional(),
    code: z.string(),
    type: exports.CreateEvalResponseBodyEvalsType$inboundSchema,
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "updated_by_id": "updatedById",
        "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.CreateEvalGuardrailConfigEvalsResponseOperator$inboundSchema = z
    .nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponseOperator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.CreateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsResponseCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponseCategorical' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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.CreateEvalResponseBodyGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseNumber$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.CreateEvalResponseBodyType$inboundSchema = z.nativeEnum(exports.CreateEvalResponseBodyType);
/** @internal */
exports.CreateEvalResponseBodyMethod$inboundSchema = z.nativeEnum(exports.CreateEvalResponseBodyMethod);
/** @internal */
exports.CreateEvalResponseBodyHTTP$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-28T21:48:20.169Z"),
    updated: z.string().default("2026-06-28T21:48:20.169Z"),
    updated_by_id: z.nullable(z.string()).optional(),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
    ])).optional(),
    type: exports.CreateEvalResponseBodyType$inboundSchema,
    url: z.string(),
    method: exports.CreateEvalResponseBodyMethod$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",
        "updated_by_id": "updatedById",
        "guardrail_config": "guardrailConfig",
    });
});
function createEvalResponseBodyHTTPFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalResponseBodyHTTP$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalResponseBodyHTTP' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsOperator$inboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigEvalsOperator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsNumber$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function createEvalGuardrailConfigEvalsNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsNumber' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsCategorical$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsCategorical$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsCategorical' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsBoolean$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsBoolean' from JSON`);
}
/** @internal */
exports.ResponseBodyGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsBoolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsCategorical$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsNumber$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.ResponseBodyType$inboundSchema = z.nativeEnum(exports.ResponseBodyType);
/** @internal */
exports.Json$inboundSchema = z
    .object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-28T21:48:20.169Z"),
    updated: z.string().default("2026-06-28T21:48:20.169Z"),
    updated_by_id: z.nullable(z.string()).optional(),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsBoolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsCategorical$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsNumber$inboundSchema),
    ])).optional(),
    type: exports.ResponseBodyType$inboundSchema,
    schema: z.string(),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "updated_by_id": "updatedById",
        "guardrail_config": "guardrailConfig",
    });
});
function jsonFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Json$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Json' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator$inboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1CategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean' from JSON`);
}
/** @internal */
exports.CreateEvalLLMEvalsResponseGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema),
]);
function createEvalLLMEvalsResponseGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLLMEvalsResponseGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLLMEvalsResponseGuardrailConfig' from JSON`);
}
/** @internal */
exports.CreateEvalLLMEvalsResponseType$inboundSchema = z.nativeEnum(exports.CreateEvalLLMEvalsResponseType);
/** @internal */
exports.CreateEvalLLMEvalsCategoricalLabels$inboundSchema = z.object({
    value: z.string(),
    description: z.string().optional(),
});
function createEvalLLMEvalsCategoricalLabelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLLMEvalsCategoricalLabels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLLMEvalsCategoricalLabels' from JSON`);
}
/** @internal */
exports.CreateEvalLLMEvalsResponseRetry$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 createEvalLLMEvalsResponseRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLLMEvalsResponseRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLLMEvalsResponseRetry' from JSON`);
}
/** @internal */
exports.CreateEvalLLMEvalsResponseFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function createEvalLLMEvalsResponseFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLLMEvalsResponseFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLLMEvalsResponseFallbacks' from JSON`);
}
/** @internal */
exports.CreateEvalLLMJudges$inboundSchema = z.object({
    model: z.string(),
    retry: z.lazy(() => exports.CreateEvalLLMEvalsResponseRetry$inboundSchema).optional(),
    fallbacks: z.array(z.lazy(() => exports.CreateEvalLLMEvalsResponseFallbacks$inboundSchema)).optional(),
});
function createEvalLLMJudgesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLLMJudges$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLLMJudges' from JSON`);
}
/** @internal */
exports.CreateEvalLLMEvalsRetry$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 createEvalLLMEvalsRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLLMEvalsRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLLMEvalsRetry' from JSON`);
}
/** @internal */
exports.CreateEvalLLMEvalsFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function createEvalLLMEvalsFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLLMEvalsFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLLMEvalsFallbacks' from JSON`);
}
/** @internal */
exports.CreateEvalLLMReplacementJudges$inboundSchema = z.object({
    model: z.string(),
    retry: z.lazy(() => exports.CreateEvalLLMEvalsRetry$inboundSchema).optional(),
    fallbacks: z.array(z.lazy(() => exports.CreateEvalLLMEvalsFallbacks$inboundSchema))
        .optional(),
});
function createEvalLLMReplacementJudgesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLLMReplacementJudges$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLLMReplacementJudges' from JSON`);
}
/** @internal */
exports.CreateEvalLLMTieValue$inboundSchema = z.nativeEnum(exports.CreateEvalLLMTieValue);
/** @internal */
exports.CreateEvalLLMJury$inboundSchema = z.object({
    judges: z.array(z.lazy(() => exports.CreateEvalLLMJudges$inboundSchema)),
    replacement_judges: z.array(z.lazy(() => exports.CreateEvalLLMReplacementJudges$inboundSchema)).optional(),
    min_successful_judges: z.number().int().default(2),
    tie_value: exports.CreateEvalLLMTieValue$inboundSchema.default("Tie"),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "replacement_judges": "replacementJudges",
        "min_successful_judges": "minSuccessfulJudges",
        "tie_value": "tieValue",
    });
});
function createEvalLLMJuryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLLMJury$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLLMJury' from JSON`);
}
/** @internal */
exports.CreateEvalLlm2$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-28T21:48:20.169Z"),
    updated: z.string().default("2026-06-28T21:48:20.169Z"),
    updated_by_id: z.nullable(z.string()).optional(),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema),
    ])).optional(),
    type: exports.CreateEvalLLMEvalsResponseType$inboundSchema,
    repetitions: z.nullable(z.number().int()).optional(),
    prompt: z.string(),
    categories: z.nullable(z.array(z.string())).optional(),
    categorical_labels: z.nullable(z.array(z.lazy(() => exports.CreateEvalLLMEvalsCategoricalLabels$inboundSchema))).optional(),
    dataset_id: z.string().optional(),
    key: z.string(),
    mode: z.literal("jury"),
    jury: z.lazy(() => exports.CreateEvalLLMJury$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "updated_by_id": "updatedById",
        "guardrail_config": "guardrailConfig",
        "categorical_labels": "categoricalLabels",
        "dataset_id": "datasetId",
    });
});
function createEvalLLM2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLlm2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLlm2' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator$inboundSchema = z.nativeEnum(exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator);
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical' from JSON`);
}
/** @internal */
exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema = z.object({
    enabled: z.boolean().default(true),
    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 createEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean' from JSON`);
}
/** @internal */
exports.CreateEvalLLMEvalsGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema),
    z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema),
]);
function createEvalLLMEvalsGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLLMEvalsGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLLMEvalsGuardrailConfig' from JSON`);
}
/** @internal */
exports.CreateEvalLLMEvalsType$inboundSchema = z.nativeEnum(exports.CreateEvalLLMEvalsType);
/** @internal */
exports.CreateEvalLLMEvalsResponseCategoricalLabels$inboundSchema = z.object({
    value: z.string(),
    description: z.string().optional(),
});
function createEvalLLMEvalsResponseCategoricalLabelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLLMEvalsResponseCategoricalLabels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLLMEvalsResponseCategoricalLabels' from JSON`);
}
/** @internal */
exports.CreateEvalLlm1$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-06-28T21:48:20.169Z"),
    updated: z.string().default("2026-06-28T21:48:20.169Z"),
    updated_by_id: z.nullable(z.string()).optional(),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema),
        z.lazy(() => exports.CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema),
    ])).optional(),
    type: exports.CreateEvalLLMEvalsType$inboundSchema,
    repetitions: z.nullable(z.number().int()).optional(),
    prompt: z.string(),
    categories: z.nullable(z.array(z.string())).optional(),
    categorical_labels: z.nullable(z.array(z.lazy(() => exports.CreateEvalLLMEvalsResponseCategoricalLabels$inboundSchema))).optional(),
    dataset_id: z.string().optional(),
    key: z.string(),
    mode: z.literal("single"),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "updated_by_id": "updatedById",
        "guardrail_config": "guardrailConfig",
        "categorical_labels": "categoricalLabels",
        "dataset_id": "datasetId",
    });
});
function createEvalLLM1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateEvalLlm1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEvalLlm1' from JSON`);
}
/** @internal */
exports.ResponseBodyLLM$inboundSchema = z.union([
    z.lazy(() => exports.CreateEvalLlm1$inboundSchema),
    z.lazy(() => exports.CreateEvalLlm2$inboundSchema),
]);
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.CreateEvalResponseBodyHTTP$inboundSchema),
    z.lazy(() => exports.Ragas$inboundSchema),
    z.lazy(() => exports.Json$inboundSchema),
    z.lazy(() => exports.ResponseBodyPython$inboundSchema),
    z.lazy(() => exports.CreateEvalResponseBodyFunction$inboundSchema),
    z.lazy(() => exports.Typescript$inboundSchema),
    z.union([
        z.lazy(() => exports.CreateEvalLlm1$inboundSchema),
        z.lazy(() => exports.CreateEvalLlm2$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