"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.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = exports.ResponseBodyTypescript$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = exports.UpdateEvalRequest$outboundSchema = exports.UpdateEvalRequestBody$outboundSchema = exports.VersionIncrement$outboundSchema = exports.GuardrailConfig$outboundSchema = exports.Boolean$outboundSchema = exports.Categorical$outboundSchema = exports.NumberT$outboundSchema = exports.Operator$outboundSchema = exports.Jury$outboundSchema = exports.TieValue$outboundSchema = exports.ReplacementJudges$outboundSchema = exports.UpdateEvalFallbacks$outboundSchema = exports.UpdateEvalRetry$outboundSchema = exports.Judges$outboundSchema = exports.Fallbacks$outboundSchema = exports.Retry$outboundSchema = exports.Mode$outboundSchema = exports.CategoricalLabels$outboundSchema = exports.UpdateEvalLLMType = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator = exports.UpdateEvalLLMTieValue = exports.UpdateEvalLLMEvalsType = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator = exports.UpdateEvalResponseBodyType = exports.UpdateEvalGuardrailConfigOperator = exports.UpdateEvalResponseBodyMethod = exports.UpdateEvalResponseBodyEvalsType = exports.UpdateEvalGuardrailConfigEvalsOperator = exports.UpdateEvalResponseBodyEvalsResponseType = exports.UpdateEvalGuardrailConfigEvalsResponseOperator = exports.UpdateEvalResponseBodyEvalsResponse200Type = exports.UpdateEvalGuardrailConfigEvalsResponse200Operator = exports.ResponseBodyRagasMetric = exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONType = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator = exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = exports.VersionIncrement = exports.Operator = exports.TieValue = exports.Mode = void 0;
exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponseOperator$inboundSchema = exports.ResponseBodyFunction$inboundSchema = exports.ResponseBodyFunctionParams$inboundSchema = exports.UpdateEvalFunctionParams1$inboundSchema = exports.UpdateEvalFunctionParams2$inboundSchema = exports.FunctionParams3$inboundSchema = exports.FunctionParams4$inboundSchema = exports.FunctionParams5$inboundSchema = exports.FunctionParams6$inboundSchema = exports.FunctionParams7$inboundSchema = exports.FunctionParams8$inboundSchema = exports.FunctionParams9$inboundSchema = exports.FunctionParams10$inboundSchema = exports.FunctionParams11$inboundSchema = exports.FunctionParams12$inboundSchema = exports.FunctionParams13$inboundSchema = exports.FunctionParams14$inboundSchema = exports.FunctionParams15$inboundSchema = exports.FunctionParams16$inboundSchema = exports.FunctionParams17$inboundSchema = exports.FunctionParams18$inboundSchema = exports.FunctionParams19$inboundSchema = exports.FunctionParams20$inboundSchema = exports.FunctionParams21$inboundSchema = exports.FunctionParams22$inboundSchema = exports.FunctionParams23$inboundSchema = exports.FunctionParams24$inboundSchema = exports.FunctionParams25$inboundSchema = exports.FunctionParams26$inboundSchema = exports.FunctionParams27$inboundSchema = exports.FunctionParams28$inboundSchema = exports.FunctionParams29$inboundSchema = exports.FunctionParams30$inboundSchema = exports.FunctionParams31$inboundSchema = exports.FunctionParams32$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponse200Type$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema = exports.ResponseBodyRagas$inboundSchema = exports.ResponseBodyRagasMetric$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONType$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema = void 0;
exports.UpdateEvalResponseBody$inboundSchema = exports.UpdateEvalResponseBodyLLM$inboundSchema = exports.UpdateEvalLlm1$inboundSchema = exports.UpdateEvalLLMCategoricalLabels$inboundSchema = exports.UpdateEvalLLMType$inboundSchema = exports.UpdateEvalLLMGuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator$inboundSchema = exports.UpdateEvalLlm2$inboundSchema = exports.UpdateEvalLLMJury$inboundSchema = exports.UpdateEvalLLMTieValue$inboundSchema = exports.UpdateEvalLLMReplacementJudges$inboundSchema = exports.UpdateEvalLLMEvalsFallbacks$inboundSchema = exports.UpdateEvalLLMEvalsRetry$inboundSchema = exports.UpdateEvalLLMJudges$inboundSchema = exports.UpdateEvalLLMFallbacks$inboundSchema = exports.UpdateEvalLLMRetry$inboundSchema = exports.UpdateEvalLLMEvalsCategoricalLabels$inboundSchema = exports.UpdateEvalLLMEvalsType$inboundSchema = exports.UpdateEvalLLMEvalsGuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator$inboundSchema = exports.UpdateEvalResponseBodyJSON$inboundSchema = exports.UpdateEvalResponseBodyType$inboundSchema = exports.UpdateEvalResponseBodyGuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigBoolean$inboundSchema = exports.UpdateEvalGuardrailConfigCategorical$inboundSchema = exports.UpdateEvalGuardrailConfigNumber$inboundSchema = exports.UpdateEvalGuardrailConfigOperator$inboundSchema = exports.UpdateEvalResponseBodyHTTP$inboundSchema = exports.UpdateEvalResponseBodyMethod$inboundSchema = exports.UpdateEvalResponseBodyEvalsType$inboundSchema = exports.UpdateEvalResponseBodyEvalsGuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsCategorical$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsNumber$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsOperator$inboundSchema = exports.UpdateEvalResponseBodyPython$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponseType$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema = void 0;
exports.categoricalLabelsToJSON = categoricalLabelsToJSON;
exports.retryToJSON = retryToJSON;
exports.fallbacksToJSON = fallbacksToJSON;
exports.judgesToJSON = judgesToJSON;
exports.updateEvalRetryToJSON = updateEvalRetryToJSON;
exports.updateEvalFallbacksToJSON = updateEvalFallbacksToJSON;
exports.replacementJudgesToJSON = replacementJudgesToJSON;
exports.juryToJSON = juryToJSON;
exports.numberToJSON = numberToJSON;
exports.categoricalToJSON = categoricalToJSON;
exports.booleanToJSON = booleanToJSON;
exports.guardrailConfigToJSON = guardrailConfigToJSON;
exports.updateEvalRequestBodyToJSON = updateEvalRequestBodyToJSON;
exports.updateEvalRequestToJSON = updateEvalRequestToJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategoricalFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategoricalFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON;
exports.updateEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfigFromJSON = updateEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfigFromJSON;
exports.responseBodyTypescriptFromJSON = responseBodyTypescriptFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON;
exports.updateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfigFromJSON = updateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfigFromJSON;
exports.responseBodyRagasFromJSON = responseBodyRagasFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200NumberFromJSON = updateEvalGuardrailConfigEvalsResponse200NumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200CategoricalFromJSON = updateEvalGuardrailConfigEvalsResponse200CategoricalFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200BooleanFromJSON = updateEvalGuardrailConfigEvalsResponse200BooleanFromJSON;
exports.updateEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON = updateEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON;
exports.functionParams32FromJSON = functionParams32FromJSON;
exports.functionParams31FromJSON = functionParams31FromJSON;
exports.functionParams30FromJSON = functionParams30FromJSON;
exports.functionParams29FromJSON = functionParams29FromJSON;
exports.functionParams28FromJSON = functionParams28FromJSON;
exports.functionParams27FromJSON = functionParams27FromJSON;
exports.functionParams26FromJSON = functionParams26FromJSON;
exports.functionParams25FromJSON = functionParams25FromJSON;
exports.functionParams24FromJSON = functionParams24FromJSON;
exports.functionParams23FromJSON = functionParams23FromJSON;
exports.functionParams22FromJSON = functionParams22FromJSON;
exports.functionParams21FromJSON = functionParams21FromJSON;
exports.functionParams20FromJSON = functionParams20FromJSON;
exports.functionParams19FromJSON = functionParams19FromJSON;
exports.functionParams18FromJSON = functionParams18FromJSON;
exports.functionParams17FromJSON = functionParams17FromJSON;
exports.functionParams16FromJSON = functionParams16FromJSON;
exports.functionParams15FromJSON = functionParams15FromJSON;
exports.functionParams14FromJSON = functionParams14FromJSON;
exports.functionParams13FromJSON = functionParams13FromJSON;
exports.functionParams12FromJSON = functionParams12FromJSON;
exports.functionParams11FromJSON = functionParams11FromJSON;
exports.functionParams10FromJSON = functionParams10FromJSON;
exports.functionParams9FromJSON = functionParams9FromJSON;
exports.functionParams8FromJSON = functionParams8FromJSON;
exports.functionParams7FromJSON = functionParams7FromJSON;
exports.functionParams6FromJSON = functionParams6FromJSON;
exports.functionParams5FromJSON = functionParams5FromJSON;
exports.functionParams4FromJSON = functionParams4FromJSON;
exports.functionParams3FromJSON = functionParams3FromJSON;
exports.updateEvalFunctionParams2FromJSON = updateEvalFunctionParams2FromJSON;
exports.updateEvalFunctionParams1FromJSON = updateEvalFunctionParams1FromJSON;
exports.responseBodyFunctionParamsFromJSON = responseBodyFunctionParamsFromJSON;
exports.responseBodyFunctionFromJSON = responseBodyFunctionFromJSON;
exports.updateEvalGuardrailConfigEvalsResponseNumberFromJSON = updateEvalGuardrailConfigEvalsResponseNumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponseCategoricalFromJSON = updateEvalGuardrailConfigEvalsResponseCategoricalFromJSON;
exports.updateEvalGuardrailConfigEvalsResponseBooleanFromJSON = updateEvalGuardrailConfigEvalsResponseBooleanFromJSON;
exports.updateEvalResponseBodyEvalsResponseGuardrailConfigFromJSON = updateEvalResponseBodyEvalsResponseGuardrailConfigFromJSON;
exports.updateEvalResponseBodyPythonFromJSON = updateEvalResponseBodyPythonFromJSON;
exports.updateEvalGuardrailConfigEvalsNumberFromJSON = updateEvalGuardrailConfigEvalsNumberFromJSON;
exports.updateEvalGuardrailConfigEvalsCategoricalFromJSON = updateEvalGuardrailConfigEvalsCategoricalFromJSON;
exports.updateEvalGuardrailConfigEvalsBooleanFromJSON = updateEvalGuardrailConfigEvalsBooleanFromJSON;
exports.updateEvalResponseBodyEvalsGuardrailConfigFromJSON = updateEvalResponseBodyEvalsGuardrailConfigFromJSON;
exports.updateEvalResponseBodyHTTPFromJSON = updateEvalResponseBodyHTTPFromJSON;
exports.updateEvalGuardrailConfigNumberFromJSON = updateEvalGuardrailConfigNumberFromJSON;
exports.updateEvalGuardrailConfigCategoricalFromJSON = updateEvalGuardrailConfigCategoricalFromJSON;
exports.updateEvalGuardrailConfigBooleanFromJSON = updateEvalGuardrailConfigBooleanFromJSON;
exports.updateEvalResponseBodyGuardrailConfigFromJSON = updateEvalResponseBodyGuardrailConfigFromJSON;
exports.updateEvalResponseBodyJSONFromJSON = updateEvalResponseBodyJSONFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumberFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategoricalFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategoricalFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBooleanFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBooleanFromJSON;
exports.updateEvalLLMEvalsGuardrailConfigFromJSON = updateEvalLLMEvalsGuardrailConfigFromJSON;
exports.updateEvalLLMEvalsCategoricalLabelsFromJSON = updateEvalLLMEvalsCategoricalLabelsFromJSON;
exports.updateEvalLLMRetryFromJSON = updateEvalLLMRetryFromJSON;
exports.updateEvalLLMFallbacksFromJSON = updateEvalLLMFallbacksFromJSON;
exports.updateEvalLLMJudgesFromJSON = updateEvalLLMJudgesFromJSON;
exports.updateEvalLLMEvalsRetryFromJSON = updateEvalLLMEvalsRetryFromJSON;
exports.updateEvalLLMEvalsFallbacksFromJSON = updateEvalLLMEvalsFallbacksFromJSON;
exports.updateEvalLLMReplacementJudgesFromJSON = updateEvalLLMReplacementJudgesFromJSON;
exports.updateEvalLLMJuryFromJSON = updateEvalLLMJuryFromJSON;
exports.updateEvalLLM2FromJSON = updateEvalLLM2FromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1NumberFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1NumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1CategoricalFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1CategoricalFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1BooleanFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1BooleanFromJSON;
exports.updateEvalLLMGuardrailConfigFromJSON = updateEvalLLMGuardrailConfigFromJSON;
exports.updateEvalLLMCategoricalLabelsFromJSON = updateEvalLLMCategoricalLabelsFromJSON;
exports.updateEvalLLM1FromJSON = updateEvalLLM1FromJSON;
exports.updateEvalResponseBodyLLMFromJSON = updateEvalResponseBodyLLMFromJSON;
exports.updateEvalResponseBodyFromJSON = updateEvalResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.Mode = {
    Single: "single",
    Jury: "jury",
};
exports.TieValue = {
    Tie: "Tie",
};
exports.Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.VersionIncrement = {
    Major: "major",
    Minor: "minor",
    Patch: "patch",
};
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type = {
    TypescriptEval: "typescript_eval",
};
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONType = {
    Ragas: "ragas",
};
exports.ResponseBodyRagasMetric = {
    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.UpdateEvalGuardrailConfigEvalsResponse200Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalResponseBodyEvalsResponse200Type = {
    FunctionEval: "function_eval",
};
exports.UpdateEvalGuardrailConfigEvalsResponseOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalResponseBodyEvalsResponseType = {
    PythonEval: "python_eval",
};
exports.UpdateEvalGuardrailConfigEvalsOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalResponseBodyEvalsType = {
    HttpEval: "http_eval",
};
exports.UpdateEvalResponseBodyMethod = {
    Get: "GET",
    Post: "POST",
};
exports.UpdateEvalGuardrailConfigOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalResponseBodyType = {
    JsonSchema: "json_schema",
};
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalLLMEvalsType = {
    LlmEval: "llm_eval",
};
exports.UpdateEvalLLMTieValue = {
    Tie: "Tie",
};
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalLLMType = {
    LlmEval: "llm_eval",
};
/** @internal */
exports.CategoricalLabels$outboundSchema = z.object({
    value: z.string(),
    description: z.string().optional(),
});
function categoricalLabelsToJSON(categoricalLabels) {
    return JSON.stringify(exports.CategoricalLabels$outboundSchema.parse(categoricalLabels));
}
/** @internal */
exports.Mode$outboundSchema = z.nativeEnum(exports.Mode);
/** @internal */
exports.Retry$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 retryToJSON(retry) {
    return JSON.stringify(exports.Retry$outboundSchema.parse(retry));
}
/** @internal */
exports.Fallbacks$outboundSchema = z.object({
    model: z.string(),
});
function fallbacksToJSON(fallbacks) {
    return JSON.stringify(exports.Fallbacks$outboundSchema.parse(fallbacks));
}
/** @internal */
exports.Judges$outboundSchema = z.object({
    model: z.string(),
    retry: z.lazy(() => exports.Retry$outboundSchema).optional(),
    fallbacks: z.array(z.lazy(() => exports.Fallbacks$outboundSchema)).optional(),
});
function judgesToJSON(judges) {
    return JSON.stringify(exports.Judges$outboundSchema.parse(judges));
}
/** @internal */
exports.UpdateEvalRetry$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 updateEvalRetryToJSON(updateEvalRetry) {
    return JSON.stringify(exports.UpdateEvalRetry$outboundSchema.parse(updateEvalRetry));
}
/** @internal */
exports.UpdateEvalFallbacks$outboundSchema = z.object({
    model: z.string(),
});
function updateEvalFallbacksToJSON(updateEvalFallbacks) {
    return JSON.stringify(exports.UpdateEvalFallbacks$outboundSchema.parse(updateEvalFallbacks));
}
/** @internal */
exports.ReplacementJudges$outboundSchema = z.object({
    model: z.string(),
    retry: z.lazy(() => exports.UpdateEvalRetry$outboundSchema).optional(),
    fallbacks: z.array(z.lazy(() => exports.UpdateEvalFallbacks$outboundSchema))
        .optional(),
});
function replacementJudgesToJSON(replacementJudges) {
    return JSON.stringify(exports.ReplacementJudges$outboundSchema.parse(replacementJudges));
}
/** @internal */
exports.TieValue$outboundSchema = z
    .nativeEnum(exports.TieValue);
/** @internal */
exports.Jury$outboundSchema = z.object({
    judges: z.array(z.lazy(() => exports.Judges$outboundSchema)),
    replacementJudges: z.array(z.lazy(() => exports.ReplacementJudges$outboundSchema))
        .optional(),
    minSuccessfulJudges: z.number().int().default(2),
    tieValue: exports.TieValue$outboundSchema.default("Tie"),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        replacementJudges: "replacement_judges",
        minSuccessfulJudges: "min_successful_judges",
        tieValue: "tie_value",
    });
});
function juryToJSON(jury) {
    return JSON.stringify(exports.Jury$outboundSchema.parse(jury));
}
/** @internal */
exports.Operator$outboundSchema = z
    .nativeEnum(exports.Operator);
/** @internal */
exports.NumberT$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.Operator$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function numberToJSON(numberT) {
    return JSON.stringify(exports.NumberT$outboundSchema.parse(numberT));
}
/** @internal */
exports.Categorical$outboundSchema = z.object({
    enabled: z.boolean(),
    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 categoricalToJSON(categorical) {
    return JSON.stringify(exports.Categorical$outboundSchema.parse(categorical));
}
/** @internal */
exports.Boolean$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function booleanToJSON(value) {
    return JSON.stringify(exports.Boolean$outboundSchema.parse(value));
}
/** @internal */
exports.GuardrailConfig$outboundSchema = z.union([
    z.lazy(() => exports.Boolean$outboundSchema),
    z.lazy(() => exports.Categorical$outboundSchema),
    z.lazy(() => exports.NumberT$outboundSchema),
]);
function guardrailConfigToJSON(guardrailConfig) {
    return JSON.stringify(exports.GuardrailConfig$outboundSchema.parse(guardrailConfig));
}
/** @internal */
exports.VersionIncrement$outboundSchema = z.nativeEnum(exports.VersionIncrement);
/** @internal */
exports.UpdateEvalRequestBody$outboundSchema = z.object({
    type: z.string().optional(),
    path: z.string().optional(),
    key: z.string().optional(),
    description: z.string().optional(),
    prompt: z.string().optional(),
    outputType: z.string().optional(),
    categories: z.array(z.string()).optional(),
    categoricalLabels: z.array(z.lazy(() => exports.CategoricalLabels$outboundSchema))
        .optional(),
    repetitions: z.number().optional(),
    mode: exports.Mode$outboundSchema.optional(),
    model: z.string().optional(),
    jury: z.lazy(() => exports.Jury$outboundSchema).optional(),
    schema: z.string().optional(),
    url: z.string().optional(),
    method: z.string().optional(),
    headers: z.record(z.string()).optional(),
    payload: z.record(z.any()).optional(),
    code: z.string().optional(),
    guardrailConfig: z.nullable(z.union([
        z.lazy(() => exports.Boolean$outboundSchema),
        z.lazy(() => exports.Categorical$outboundSchema),
        z.lazy(() => exports.NumberT$outboundSchema),
    ])).optional(),
    versionIncrement: exports.VersionIncrement$outboundSchema.optional(),
    versionDescription: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        outputType: "output_type",
        categoricalLabels: "categorical_labels",
        guardrailConfig: "guardrail_config",
    });
});
function updateEvalRequestBodyToJSON(updateEvalRequestBody) {
    return JSON.stringify(exports.UpdateEvalRequestBody$outboundSchema.parse(updateEvalRequestBody));
}
/** @internal */
exports.UpdateEvalRequest$outboundSchema = z.object({
    id: z.string(),
    requestBody: z.lazy(() => exports.UpdateEvalRequestBody$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        requestBody: "RequestBody",
    });
});
function updateEvalRequestToJSON(updateEvalRequest) {
    return JSON.stringify(exports.UpdateEvalRequest$outboundSchema.parse(updateEvalRequest));
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
]);
function updateEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type$inboundSchema = z.nativeEnum(exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type);
/** @internal */
exports.ResponseBodyTypescript$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-05-18T15:01:38.747Z"),
    updated: z.string().default("2026-05-18T15:01:38.747Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
    ])).optional(),
    code: z.string(),
    type: exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type$inboundSchema,
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function responseBodyTypescriptFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyTypescript$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyTypescript' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
]);
function updateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONType);
/** @internal */
exports.ResponseBodyRagasMetric$inboundSchema = z.nativeEnum(exports.ResponseBodyRagasMetric);
/** @internal */
exports.ResponseBodyRagas$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-05-18T15:01:38.747Z"),
    updated: z.string().default("2026-05-18T15:01:38.747Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
    ])).optional(),
    type: exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONType$inboundSchema,
    ragas_metric: exports.ResponseBodyRagasMetric$inboundSchema,
    key: z.string(),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "ragas_metric": "ragasMetric",
    });
});
function responseBodyRagasFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyRagas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyRagas' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema = z
    .nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponse200Operator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200Number' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200CategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200Categorical' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200Boolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
]);
function updateEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyEvalsResponse200GuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponse200Type$inboundSchema = z
    .nativeEnum(exports.UpdateEvalResponseBodyEvalsResponse200Type);
/** @internal */
exports.FunctionParams32$inboundSchema = z.object({
    type: z.literal("grammar_diversity"),
});
function functionParams32FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams32$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams32' from JSON`);
}
/** @internal */
exports.FunctionParams31$inboundSchema = z.object({
    type: z.literal("lexical_repetition"),
});
function functionParams31FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams31$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams31' from JSON`);
}
/** @internal */
exports.FunctionParams30$inboundSchema = z.object({
    type: z.literal("sentences_count"),
});
function functionParams30FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams30$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams30' from JSON`);
}
/** @internal */
exports.FunctionParams29$inboundSchema = z.object({
    type: z.literal("words_count"),
});
function functionParams29FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams29$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams29' from JSON`);
}
/** @internal */
exports.FunctionParams28$inboundSchema = z.object({
    type: z.literal("gse_english_level"),
});
function functionParams28FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams28$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams28' from JSON`);
}
/** @internal */
exports.FunctionParams27$inboundSchema = z.object({
    type: z.literal("flesch_reading_ease"),
});
function functionParams27FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams27$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams27' from JSON`);
}
/** @internal */
exports.FunctionParams26$inboundSchema = z.object({
    type: z.literal("most_repeated_words"),
});
function functionParams26FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams26$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams26' from JSON`);
}
/** @internal */
exports.FunctionParams25$inboundSchema = z.object({
    type: z.literal("keywords_match"),
    keywords: z.array(z.string()),
});
function functionParams25FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams25$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams25' from JSON`);
}
/** @internal */
exports.FunctionParams24$inboundSchema = z.object({
    type: z.literal("levenshtein_distance"),
});
function functionParams24FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams24' from JSON`);
}
/** @internal */
exports.FunctionParams23$inboundSchema = z.object({
    type: z.literal("cosine_similarity"),
});
function functionParams23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams23' from JSON`);
}
/** @internal */
exports.FunctionParams22$inboundSchema = z.object({
    type: z.literal("meteor_score"),
});
function functionParams22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams22' from JSON`);
}
/** @internal */
exports.FunctionParams21$inboundSchema = z.object({
    type: z.literal("rouge_n"),
});
function functionParams21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams21' from JSON`);
}
/** @internal */
exports.FunctionParams20$inboundSchema = z.object({
    type: z.literal("bleu_score"),
});
function functionParams20FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams20$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams20' from JSON`);
}
/** @internal */
exports.FunctionParams19$inboundSchema = z.object({
    type: z.literal("bert_score"),
});
function functionParams19FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams19$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams19' from JSON`);
}
/** @internal */
exports.FunctionParams18$inboundSchema = z.object({
    type: z.literal("moderations_google"),
});
function functionParams18FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams18$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams18' from JSON`);
}
/** @internal */
exports.FunctionParams17$inboundSchema = z.object({
    type: z.literal("moderations_openai"),
});
function functionParams17FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams17$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams17' from JSON`);
}
/** @internal */
exports.FunctionParams16$inboundSchema = z.object({
    type: z.literal("is_valid_json"),
});
function functionParams16FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams16$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams16' from JSON`);
}
/** @internal */
exports.FunctionParams15$inboundSchema = z.object({
    type: z.literal("regex"),
    pattern: z.string(),
});
function functionParams15FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams15$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams15' from JSON`);
}
/** @internal */
exports.FunctionParams14$inboundSchema = z.object({
    type: z.literal("one_line"),
});
function functionParams14FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams14$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams14' from JSON`);
}
/** @internal */
exports.FunctionParams13$inboundSchema = z.object({
    type: z.literal("length_greater_than"),
    value: z.number(),
});
function functionParams13FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams13$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams13' from JSON`);
}
/** @internal */
exports.FunctionParams12$inboundSchema = z.object({
    type: z.literal("length_between"),
    min: z.number(),
    max: z.number(),
});
function functionParams12FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams12$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams12' from JSON`);
}
/** @internal */
exports.FunctionParams11$inboundSchema = z.object({
    type: z.literal("length_less_than"),
    value: z.number(),
});
function functionParams11FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams11$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams11' from JSON`);
}
/** @internal */
exports.FunctionParams10$inboundSchema = z.object({
    type: z.literal("exact_match"),
});
function functionParams10FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams10$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams10' from JSON`);
}
/** @internal */
exports.FunctionParams9$inboundSchema = z.object({
    type: z.literal("ends_with"),
    value: z.string(),
});
function functionParams9FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams9$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams9' from JSON`);
}
/** @internal */
exports.FunctionParams8$inboundSchema = z.object({
    type: z.literal("start_with"),
    value: z.string(),
});
function functionParams8FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams8$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams8' from JSON`);
}
/** @internal */
exports.FunctionParams7$inboundSchema = z.object({
    type: z.literal("contains_valid_link"),
});
function functionParams7FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams7' from JSON`);
}
/** @internal */
exports.FunctionParams6$inboundSchema = z.object({
    type: z.literal("contains_url"),
});
function functionParams6FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams6' from JSON`);
}
/** @internal */
exports.FunctionParams5$inboundSchema = z.object({
    type: z.literal("contains_email"),
});
function functionParams5FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams5' from JSON`);
}
/** @internal */
exports.FunctionParams4$inboundSchema = z.object({
    type: z.literal("contains_any"),
    keywords: z.array(z.string()),
});
function functionParams4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams4' from JSON`);
}
/** @internal */
exports.FunctionParams3$inboundSchema = z.object({
    type: z.literal("contains_all"),
    keywords: z.array(z.string()),
});
function functionParams3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams3' from JSON`);
}
/** @internal */
exports.UpdateEvalFunctionParams2$inboundSchema = z.object({
    type: z.literal("contains_none"),
    keywords: z.array(z.string()),
});
function updateEvalFunctionParams2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalFunctionParams2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalFunctionParams2' from JSON`);
}
/** @internal */
exports.UpdateEvalFunctionParams1$inboundSchema = z.object({
    type: z.literal("contains"),
    value: z.string(),
});
function updateEvalFunctionParams1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalFunctionParams1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalFunctionParams1' from JSON`);
}
/** @internal */
exports.ResponseBodyFunctionParams$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalFunctionParams1$inboundSchema),
    z.lazy(() => exports.UpdateEvalFunctionParams2$inboundSchema),
    z.lazy(() => exports.FunctionParams3$inboundSchema),
    z.lazy(() => exports.FunctionParams4$inboundSchema),
    z.lazy(() => exports.FunctionParams5$inboundSchema),
    z.lazy(() => exports.FunctionParams6$inboundSchema),
    z.lazy(() => exports.FunctionParams7$inboundSchema),
    z.lazy(() => exports.FunctionParams8$inboundSchema),
    z.lazy(() => exports.FunctionParams9$inboundSchema),
    z.lazy(() => exports.FunctionParams10$inboundSchema),
    z.lazy(() => exports.FunctionParams11$inboundSchema),
    z.lazy(() => exports.FunctionParams12$inboundSchema),
    z.lazy(() => exports.FunctionParams13$inboundSchema),
    z.lazy(() => exports.FunctionParams14$inboundSchema),
    z.lazy(() => exports.FunctionParams15$inboundSchema),
    z.lazy(() => exports.FunctionParams16$inboundSchema),
    z.lazy(() => exports.FunctionParams17$inboundSchema),
    z.lazy(() => exports.FunctionParams18$inboundSchema),
    z.lazy(() => exports.FunctionParams19$inboundSchema),
    z.lazy(() => exports.FunctionParams20$inboundSchema),
    z.lazy(() => exports.FunctionParams21$inboundSchema),
    z.lazy(() => exports.FunctionParams22$inboundSchema),
    z.lazy(() => exports.FunctionParams23$inboundSchema),
    z.lazy(() => exports.FunctionParams24$inboundSchema),
    z.lazy(() => exports.FunctionParams25$inboundSchema),
    z.lazy(() => exports.FunctionParams26$inboundSchema),
    z.lazy(() => exports.FunctionParams27$inboundSchema),
    z.lazy(() => exports.FunctionParams28$inboundSchema),
    z.lazy(() => exports.FunctionParams29$inboundSchema),
    z.lazy(() => exports.FunctionParams30$inboundSchema),
    z.lazy(() => exports.FunctionParams31$inboundSchema),
    z.lazy(() => exports.FunctionParams32$inboundSchema),
]);
function responseBodyFunctionParamsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyFunctionParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyFunctionParams' from JSON`);
}
/** @internal */
exports.ResponseBodyFunction$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-05-18T15:01:38.747Z"),
    updated: z.string().default("2026-05-18T15:01:38.747Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
    ])).optional(),
    type: exports.UpdateEvalResponseBodyEvalsResponse200Type$inboundSchema,
    function_params: z.union([
        z.lazy(() => exports.UpdateEvalFunctionParams1$inboundSchema),
        z.lazy(() => exports.UpdateEvalFunctionParams2$inboundSchema),
        z.lazy(() => exports.FunctionParams3$inboundSchema),
        z.lazy(() => exports.FunctionParams4$inboundSchema),
        z.lazy(() => exports.FunctionParams5$inboundSchema),
        z.lazy(() => exports.FunctionParams6$inboundSchema),
        z.lazy(() => exports.FunctionParams7$inboundSchema),
        z.lazy(() => exports.FunctionParams8$inboundSchema),
        z.lazy(() => exports.FunctionParams9$inboundSchema),
        z.lazy(() => exports.FunctionParams10$inboundSchema),
        z.lazy(() => exports.FunctionParams11$inboundSchema),
        z.lazy(() => exports.FunctionParams12$inboundSchema),
        z.lazy(() => exports.FunctionParams13$inboundSchema),
        z.lazy(() => exports.FunctionParams14$inboundSchema),
        z.lazy(() => exports.FunctionParams15$inboundSchema),
        z.lazy(() => exports.FunctionParams16$inboundSchema),
        z.lazy(() => exports.FunctionParams17$inboundSchema),
        z.lazy(() => exports.FunctionParams18$inboundSchema),
        z.lazy(() => exports.FunctionParams19$inboundSchema),
        z.lazy(() => exports.FunctionParams20$inboundSchema),
        z.lazy(() => exports.FunctionParams21$inboundSchema),
        z.lazy(() => exports.FunctionParams22$inboundSchema),
        z.lazy(() => exports.FunctionParams23$inboundSchema),
        z.lazy(() => exports.FunctionParams24$inboundSchema),
        z.lazy(() => exports.FunctionParams25$inboundSchema),
        z.lazy(() => exports.FunctionParams26$inboundSchema),
        z.lazy(() => exports.FunctionParams27$inboundSchema),
        z.lazy(() => exports.FunctionParams28$inboundSchema),
        z.lazy(() => exports.FunctionParams29$inboundSchema),
        z.lazy(() => exports.FunctionParams30$inboundSchema),
        z.lazy(() => exports.FunctionParams31$inboundSchema),
        z.lazy(() => exports.FunctionParams32$inboundSchema),
    ]),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "function_params": "functionParams",
    });
});
function responseBodyFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyFunction' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponseOperator$inboundSchema = z
    .nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponseOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponseOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponseNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponseNumber' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponseCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponseCategorical' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponseBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponseBoolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
]);
function updateEvalResponseBodyEvalsResponseGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyEvalsResponseGuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponseType$inboundSchema = z
    .nativeEnum(exports.UpdateEvalResponseBodyEvalsResponseType);
/** @internal */
exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-05-18T15:01:38.747Z"),
    updated: z.string().default("2026-05-18T15:01:38.747Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
    ])).optional(),
    code: z.string(),
    type: exports.UpdateEvalResponseBodyEvalsResponseType$inboundSchema,
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function updateEvalResponseBodyPythonFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyPython$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyPython' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsOperator$inboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsNumber' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsCategorical$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsCategorical' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsBoolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsCategorical$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsNumber$inboundSchema),
]);
function updateEvalResponseBodyEvalsGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyEvalsGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyEvalsGuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsType$inboundSchema = z.nativeEnum(exports.UpdateEvalResponseBodyEvalsType);
/** @internal */
exports.UpdateEvalResponseBodyMethod$inboundSchema = z.nativeEnum(exports.UpdateEvalResponseBodyMethod);
/** @internal */
exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-05-18T15:01:38.747Z"),
    updated: z.string().default("2026-05-18T15:01:38.747Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsCategorical$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsNumber$inboundSchema),
    ])).optional(),
    type: exports.UpdateEvalResponseBodyEvalsType$inboundSchema,
    url: z.string(),
    method: exports.UpdateEvalResponseBodyMethod$inboundSchema,
    headers: z.record(z.string()),
    payload: z.record(z.any()),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function updateEvalResponseBodyHTTPFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyHTTP$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyHTTP' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigOperator$inboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigNumber' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigCategorical$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigCategorical' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigBoolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigBoolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigCategorical$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigNumber$inboundSchema),
]);
function updateEvalResponseBodyGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyGuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyType$inboundSchema = z.nativeEnum(exports.UpdateEvalResponseBodyType);
/** @internal */
exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-05-18T15:01:38.747Z"),
    updated: z.string().default("2026-05-18T15:01:38.747Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigBoolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigCategorical$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigNumber$inboundSchema),
    ])).optional(),
    type: exports.UpdateEvalResponseBodyType$inboundSchema,
    schema: z.string(),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function updateEvalResponseBodyJSONFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyJSON$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyJSON' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator$inboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean' from JSON`);
}
/** @internal */
exports.UpdateEvalLLMEvalsGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema),
]);
function updateEvalLLMEvalsGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLLMEvalsGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLLMEvalsGuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalLLMEvalsType$inboundSchema = z.nativeEnum(exports.UpdateEvalLLMEvalsType);
/** @internal */
exports.UpdateEvalLLMEvalsCategoricalLabels$inboundSchema = z.object({
    value: z.string(),
    description: z.string().optional(),
});
function updateEvalLLMEvalsCategoricalLabelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLLMEvalsCategoricalLabels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLLMEvalsCategoricalLabels' from JSON`);
}
/** @internal */
exports.UpdateEvalLLMRetry$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 updateEvalLLMRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLLMRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLLMRetry' from JSON`);
}
/** @internal */
exports.UpdateEvalLLMFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function updateEvalLLMFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLLMFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLLMFallbacks' from JSON`);
}
/** @internal */
exports.UpdateEvalLLMJudges$inboundSchema = z.object({
    model: z.string(),
    retry: z.lazy(() => exports.UpdateEvalLLMRetry$inboundSchema).optional(),
    fallbacks: z.array(z.lazy(() => exports.UpdateEvalLLMFallbacks$inboundSchema))
        .optional(),
});
function updateEvalLLMJudgesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLLMJudges$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLLMJudges' from JSON`);
}
/** @internal */
exports.UpdateEvalLLMEvalsRetry$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 updateEvalLLMEvalsRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLLMEvalsRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLLMEvalsRetry' from JSON`);
}
/** @internal */
exports.UpdateEvalLLMEvalsFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function updateEvalLLMEvalsFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLLMEvalsFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLLMEvalsFallbacks' from JSON`);
}
/** @internal */
exports.UpdateEvalLLMReplacementJudges$inboundSchema = z.object({
    model: z.string(),
    retry: z.lazy(() => exports.UpdateEvalLLMEvalsRetry$inboundSchema).optional(),
    fallbacks: z.array(z.lazy(() => exports.UpdateEvalLLMEvalsFallbacks$inboundSchema))
        .optional(),
});
function updateEvalLLMReplacementJudgesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLLMReplacementJudges$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLLMReplacementJudges' from JSON`);
}
/** @internal */
exports.UpdateEvalLLMTieValue$inboundSchema = z.nativeEnum(exports.UpdateEvalLLMTieValue);
/** @internal */
exports.UpdateEvalLLMJury$inboundSchema = z.object({
    judges: z.array(z.lazy(() => exports.UpdateEvalLLMJudges$inboundSchema)),
    replacement_judges: z.array(z.lazy(() => exports.UpdateEvalLLMReplacementJudges$inboundSchema)).optional(),
    min_successful_judges: z.number().int().default(2),
    tie_value: exports.UpdateEvalLLMTieValue$inboundSchema.default("Tie"),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "replacement_judges": "replacementJudges",
        "min_successful_judges": "minSuccessfulJudges",
        "tie_value": "tieValue",
    });
});
function updateEvalLLMJuryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLLMJury$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLLMJury' from JSON`);
}
/** @internal */
exports.UpdateEvalLlm2$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-05-18T15:01:38.747Z"),
    updated: z.string().default("2026-05-18T15:01:38.747Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMNumber$inboundSchema),
    ])).optional(),
    type: exports.UpdateEvalLLMEvalsType$inboundSchema,
    repetitions: z.number().int().optional(),
    prompt: z.string(),
    categories: z.array(z.string()).optional(),
    categorical_labels: z.array(z.lazy(() => exports.UpdateEvalLLMEvalsCategoricalLabels$inboundSchema)).optional(),
    key: z.string(),
    mode: z.literal("jury"),
    jury: z.lazy(() => exports.UpdateEvalLLMJury$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "categorical_labels": "categoricalLabels",
    });
});
function updateEvalLLM2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLlm2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLlm2' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator$inboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("categorical"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1CategoricalFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean' from JSON`);
}
/** @internal */
exports.UpdateEvalLLMGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema),
]);
function updateEvalLLMGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLLMGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLLMGuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalLLMType$inboundSchema = z.nativeEnum(exports.UpdateEvalLLMType);
/** @internal */
exports.UpdateEvalLLMCategoricalLabels$inboundSchema = z.object({
    value: z.string(),
    description: z.string().optional(),
});
function updateEvalLLMCategoricalLabelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLLMCategoricalLabels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLLMCategoricalLabels' from JSON`);
}
/** @internal */
exports.UpdateEvalLlm1$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-05-18T15:01:38.747Z"),
    updated: z.string().default("2026-05-18T15:01:38.747Z"),
    guardrail_config: z.nullable(z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Number$inboundSchema),
    ])).optional(),
    type: exports.UpdateEvalLLMType$inboundSchema,
    repetitions: z.number().int().optional(),
    prompt: z.string(),
    categories: z.array(z.string()).optional(),
    categorical_labels: z.array(z.lazy(() => exports.UpdateEvalLLMCategoricalLabels$inboundSchema)).optional(),
    key: z.string(),
    mode: z.literal("single"),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "categorical_labels": "categoricalLabels",
    });
});
function updateEvalLLM1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalLlm1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalLlm1' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyLLM$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalLlm1$inboundSchema),
    z.lazy(() => exports.UpdateEvalLlm2$inboundSchema),
]);
function updateEvalResponseBodyLLMFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyLLM$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyLLM' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBody$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalResponseBodyHTTP$inboundSchema),
    z.lazy(() => exports.ResponseBodyRagas$inboundSchema),
    z.lazy(() => exports.UpdateEvalResponseBodyJSON$inboundSchema),
    z.lazy(() => exports.UpdateEvalResponseBodyPython$inboundSchema),
    z.lazy(() => exports.ResponseBodyFunction$inboundSchema),
    z.lazy(() => exports.ResponseBodyTypescript$inboundSchema),
    z.union([
        z.lazy(() => exports.UpdateEvalLlm1$inboundSchema),
        z.lazy(() => exports.UpdateEvalLlm2$inboundSchema),
    ]),
]);
function updateEvalResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBody' from JSON`);
}
//# sourceMappingURL=updateeval.js.map