"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.CreateDatasetItemContentDatasetsResponse2002$inboundSchema = exports.CreateDatasetItemMessagesDatasetsToolMessage$inboundSchema = exports.CreateDatasetItemMessagesDatasetsCacheControl$inboundSchema = exports.CreateDatasetItemMessagesDatasetsTtl$inboundSchema = exports.CreateDatasetItemMessagesDatasetsResponse200Type$inboundSchema = exports.CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$inboundSchema = exports.CreateDatasetItemContentDatasetsResponse200ApplicationJson2$inboundSchema = exports.CreateDatasetItemRequest$outboundSchema = exports.CreateDatasetItemRequestBody$outboundSchema = exports.CreateDatasetItemMessages$outboundSchema = exports.CreateDatasetItemMessagesSystemMessage$outboundSchema = exports.CreateDatasetItemMessagesContent$outboundSchema = exports.CreateDatasetItemMessagesDeveloperMessage$outboundSchema = exports.CreateDatasetItemMessagesDatasetsContent$outboundSchema = exports.CreateDatasetItemMessagesUserMessage$outboundSchema = exports.CreateDatasetItemMessagesDatasetsRequestContent$outboundSchema = exports.CreateDatasetItemContent2$outboundSchema = exports.CreateDatasetItem24$outboundSchema = exports.CreateDatasetItem2CacheControl$outboundSchema = exports.CreateDatasetItem2Ttl$outboundSchema = exports.CreateDatasetItem2DatasetsType$outboundSchema = exports.CreateDatasetItemMessagesAssistantMessage$outboundSchema = exports.CreateDatasetItemMessagesToolCalls$outboundSchema = exports.CreateDatasetItemMessagesFunction$outboundSchema = exports.CreateDatasetItemMessagesType$outboundSchema = exports.CreateDatasetItemMessagesAudio$outboundSchema = exports.CreateDatasetItemMessagesDatasetsRequestRequestBodyContent$outboundSchema = exports.CreateDatasetItemContentDatasets2$outboundSchema = exports.CreateDatasetItemMessagesToolMessage$outboundSchema = exports.CreateDatasetItemMessagesCacheControl$outboundSchema = exports.CreateDatasetItemMessagesTtl$outboundSchema = exports.CreateDatasetItemMessagesDatasetsType$outboundSchema = exports.CreateDatasetItemMessagesDatasetsRequestRequestBody5Content$outboundSchema = exports.CreateDatasetItemContentDatasetsRequest2$outboundSchema = exports.EvaluationsSource = exports.CreateDatasetItemEvaluationsDatasetsEvaluationType = exports.CreateDatasetItemEvaluationsSource = exports.EvaluationsEvaluationType = exports.CreateDatasetItemEvaluationsDatasetsSource = exports.CreateDatasetItemEvaluationsEvaluationType = exports.CreateDatasetItem2DatasetsTtl = exports.CreateDatasetItem2DatasetsResponse200Type = exports.CreateDatasetItemMessagesDatasetsResponseType = exports.CreateDatasetItemMessagesDatasetsTtl = exports.CreateDatasetItemMessagesDatasetsResponse200Type = exports.CreateDatasetItem2Ttl = exports.CreateDatasetItem2DatasetsType = exports.CreateDatasetItemMessagesType = exports.CreateDatasetItemMessagesTtl = exports.CreateDatasetItemMessagesDatasetsType = void 0;
exports.CreateDatasetItemResponseBody$inboundSchema = exports.Evaluations$inboundSchema = exports.Evaluations1$inboundSchema = exports.EvaluationsSource$inboundSchema = exports.CreateDatasetItemEvaluationsDatasetsEvaluationType$inboundSchema = exports.Evaluations2$inboundSchema = exports.CreateDatasetItemEvaluationsSource$inboundSchema = exports.EvaluationsEvaluationType$inboundSchema = exports.Evaluations3$inboundSchema = exports.CreateDatasetItemEvaluationsDatasetsSource$inboundSchema = exports.CreateDatasetItemEvaluationsEvaluationType$inboundSchema = exports.CreateDatasetItemDatasetsMessages$inboundSchema = exports.CreateDatasetItemMessagesDatasetsSystemMessage$inboundSchema = exports.CreateDatasetItemMessagesDatasetsResponseContent$inboundSchema = exports.CreateDatasetItemMessagesDatasetsDeveloperMessage$inboundSchema = exports.CreateDatasetItemMessagesDatasetsResponse200Content$inboundSchema = exports.CreateDatasetItemMessagesDatasetsUserMessage$inboundSchema = exports.CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema = exports.CreateDatasetItemContentDatasetsResponse2$inboundSchema = exports.CreateDatasetItem2Datasets4$inboundSchema = exports.CreateDatasetItem2DatasetsCacheControl$inboundSchema = exports.CreateDatasetItem2DatasetsTtl$inboundSchema = exports.CreateDatasetItem2DatasetsResponse200Type$inboundSchema = exports.CreateDatasetItemMessagesDatasetsAssistantMessage$inboundSchema = exports.CreateDatasetItemMessagesDatasetsToolCalls$inboundSchema = exports.CreateDatasetItemMessagesDatasetsFunction$inboundSchema = exports.CreateDatasetItemMessagesDatasetsResponseType$inboundSchema = exports.CreateDatasetItemMessagesDatasetsAudio$inboundSchema = exports.CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBodyContent$inboundSchema = void 0;
exports.createDatasetItemContentDatasetsRequest2ToJSON = createDatasetItemContentDatasetsRequest2ToJSON;
exports.createDatasetItemMessagesDatasetsRequestRequestBody5ContentToJSON = createDatasetItemMessagesDatasetsRequestRequestBody5ContentToJSON;
exports.createDatasetItemMessagesCacheControlToJSON = createDatasetItemMessagesCacheControlToJSON;
exports.createDatasetItemMessagesToolMessageToJSON = createDatasetItemMessagesToolMessageToJSON;
exports.createDatasetItemContentDatasets2ToJSON = createDatasetItemContentDatasets2ToJSON;
exports.createDatasetItemMessagesDatasetsRequestRequestBodyContentToJSON = createDatasetItemMessagesDatasetsRequestRequestBodyContentToJSON;
exports.createDatasetItemMessagesAudioToJSON = createDatasetItemMessagesAudioToJSON;
exports.createDatasetItemMessagesFunctionToJSON = createDatasetItemMessagesFunctionToJSON;
exports.createDatasetItemMessagesToolCallsToJSON = createDatasetItemMessagesToolCallsToJSON;
exports.createDatasetItemMessagesAssistantMessageToJSON = createDatasetItemMessagesAssistantMessageToJSON;
exports.createDatasetItem2CacheControlToJSON = createDatasetItem2CacheControlToJSON;
exports.createDatasetItem24ToJSON = createDatasetItem24ToJSON;
exports.createDatasetItemContent2ToJSON = createDatasetItemContent2ToJSON;
exports.createDatasetItemMessagesDatasetsRequestContentToJSON = createDatasetItemMessagesDatasetsRequestContentToJSON;
exports.createDatasetItemMessagesUserMessageToJSON = createDatasetItemMessagesUserMessageToJSON;
exports.createDatasetItemMessagesDatasetsContentToJSON = createDatasetItemMessagesDatasetsContentToJSON;
exports.createDatasetItemMessagesDeveloperMessageToJSON = createDatasetItemMessagesDeveloperMessageToJSON;
exports.createDatasetItemMessagesContentToJSON = createDatasetItemMessagesContentToJSON;
exports.createDatasetItemMessagesSystemMessageToJSON = createDatasetItemMessagesSystemMessageToJSON;
exports.createDatasetItemMessagesToJSON = createDatasetItemMessagesToJSON;
exports.createDatasetItemRequestBodyToJSON = createDatasetItemRequestBodyToJSON;
exports.createDatasetItemRequestToJSON = createDatasetItemRequestToJSON;
exports.createDatasetItemContentDatasetsResponse200ApplicationJSON2FromJSON = createDatasetItemContentDatasetsResponse200ApplicationJSON2FromJSON;
exports.createDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBody5ContentFromJSON = createDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBody5ContentFromJSON;
exports.createDatasetItemMessagesDatasetsCacheControlFromJSON = createDatasetItemMessagesDatasetsCacheControlFromJSON;
exports.createDatasetItemMessagesDatasetsToolMessageFromJSON = createDatasetItemMessagesDatasetsToolMessageFromJSON;
exports.createDatasetItemContentDatasetsResponse2002FromJSON = createDatasetItemContentDatasetsResponse2002FromJSON;
exports.createDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBodyContentFromJSON = createDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBodyContentFromJSON;
exports.createDatasetItemMessagesDatasetsAudioFromJSON = createDatasetItemMessagesDatasetsAudioFromJSON;
exports.createDatasetItemMessagesDatasetsFunctionFromJSON = createDatasetItemMessagesDatasetsFunctionFromJSON;
exports.createDatasetItemMessagesDatasetsToolCallsFromJSON = createDatasetItemMessagesDatasetsToolCallsFromJSON;
exports.createDatasetItemMessagesDatasetsAssistantMessageFromJSON = createDatasetItemMessagesDatasetsAssistantMessageFromJSON;
exports.createDatasetItem2DatasetsCacheControlFromJSON = createDatasetItem2DatasetsCacheControlFromJSON;
exports.createDatasetItem2Datasets4FromJSON = createDatasetItem2Datasets4FromJSON;
exports.createDatasetItemContentDatasetsResponse2FromJSON = createDatasetItemContentDatasetsResponse2FromJSON;
exports.createDatasetItemMessagesDatasetsResponse200ApplicationJSONContentFromJSON = createDatasetItemMessagesDatasetsResponse200ApplicationJSONContentFromJSON;
exports.createDatasetItemMessagesDatasetsUserMessageFromJSON = createDatasetItemMessagesDatasetsUserMessageFromJSON;
exports.createDatasetItemMessagesDatasetsResponse200ContentFromJSON = createDatasetItemMessagesDatasetsResponse200ContentFromJSON;
exports.createDatasetItemMessagesDatasetsDeveloperMessageFromJSON = createDatasetItemMessagesDatasetsDeveloperMessageFromJSON;
exports.createDatasetItemMessagesDatasetsResponseContentFromJSON = createDatasetItemMessagesDatasetsResponseContentFromJSON;
exports.createDatasetItemMessagesDatasetsSystemMessageFromJSON = createDatasetItemMessagesDatasetsSystemMessageFromJSON;
exports.createDatasetItemDatasetsMessagesFromJSON = createDatasetItemDatasetsMessagesFromJSON;
exports.evaluations3FromJSON = evaluations3FromJSON;
exports.evaluations2FromJSON = evaluations2FromJSON;
exports.evaluations1FromJSON = evaluations1FromJSON;
exports.evaluationsFromJSON = evaluationsFromJSON;
exports.createDatasetItemResponseBodyFromJSON = createDatasetItemResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.CreateDatasetItemMessagesDatasetsType = {
    Ephemeral: "ephemeral",
};
/**
 * The time-to-live for the cache control breakpoint. This may be one of the following values:
 *
 * @remarks
 *
 * - `5m`: 5 minutes
 * - `1h`: 1 hour
 *
 * Defaults to `5m`. Only supported by `Anthropic` Claude models.
 */
exports.CreateDatasetItemMessagesTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.CreateDatasetItemMessagesType = {
    Function: "function",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.CreateDatasetItem2DatasetsType = {
    Ephemeral: "ephemeral",
};
/**
 * The time-to-live for the cache control breakpoint. This may be one of the following values:
 *
 * @remarks
 *
 * - `5m`: 5 minutes
 * - `1h`: 1 hour
 *
 * Defaults to `5m`. Only supported by `Anthropic` Claude models.
 */
exports.CreateDatasetItem2Ttl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.CreateDatasetItemMessagesDatasetsResponse200Type = {
    Ephemeral: "ephemeral",
};
/**
 * The time-to-live for the cache control breakpoint. This may be one of the following values:
 *
 * @remarks
 *
 * - `5m`: 5 minutes
 * - `1h`: 1 hour
 *
 * Defaults to `5m`. Only supported by `Anthropic` Claude models.
 */
exports.CreateDatasetItemMessagesDatasetsTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.CreateDatasetItemMessagesDatasetsResponseType = {
    Function: "function",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.CreateDatasetItem2DatasetsResponse200Type = {
    Ephemeral: "ephemeral",
};
/**
 * The time-to-live for the cache control breakpoint. This may be one of the following values:
 *
 * @remarks
 *
 * - `5m`: 5 minutes
 * - `1h`: 1 hour
 *
 * Defaults to `5m`. Only supported by `Anthropic` Claude models.
 */
exports.CreateDatasetItem2DatasetsTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of evaluation
 */
exports.CreateDatasetItemEvaluationsEvaluationType = {
    HumanReview: "human_review",
};
exports.CreateDatasetItemEvaluationsDatasetsSource = {
    Orq: "orq",
    External: "external",
};
/**
 * The type of evaluation
 */
exports.EvaluationsEvaluationType = {
    HumanReview: "human_review",
};
exports.CreateDatasetItemEvaluationsSource = {
    Orq: "orq",
    External: "external",
};
/**
 * The type of evaluation
 */
exports.CreateDatasetItemEvaluationsDatasetsEvaluationType = {
    HumanReview: "human_review",
};
exports.EvaluationsSource = {
    Orq: "orq",
    External: "external",
};
/** @internal */
exports.CreateDatasetItemContentDatasetsRequest2$outboundSchema = components.TextContentPartSchema$outboundSchema;
function createDatasetItemContentDatasetsRequest2ToJSON(createDatasetItemContentDatasetsRequest2) {
    return JSON.stringify(exports.CreateDatasetItemContentDatasetsRequest2$outboundSchema.parse(createDatasetItemContentDatasetsRequest2));
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsRequestRequestBody5Content$outboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$outboundSchema),
]);
function createDatasetItemMessagesDatasetsRequestRequestBody5ContentToJSON(createDatasetItemMessagesDatasetsRequestRequestBody5Content) {
    return JSON.stringify(exports.CreateDatasetItemMessagesDatasetsRequestRequestBody5Content$outboundSchema
        .parse(createDatasetItemMessagesDatasetsRequestRequestBody5Content));
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsType$outboundSchema = z.nativeEnum(exports.CreateDatasetItemMessagesDatasetsType);
/** @internal */
exports.CreateDatasetItemMessagesTtl$outboundSchema = z.nativeEnum(exports.CreateDatasetItemMessagesTtl);
/** @internal */
exports.CreateDatasetItemMessagesCacheControl$outboundSchema = z.object({
    type: exports.CreateDatasetItemMessagesDatasetsType$outboundSchema,
    ttl: exports.CreateDatasetItemMessagesTtl$outboundSchema.default("5m"),
});
function createDatasetItemMessagesCacheControlToJSON(createDatasetItemMessagesCacheControl) {
    return JSON.stringify(exports.CreateDatasetItemMessagesCacheControl$outboundSchema.parse(createDatasetItemMessagesCacheControl));
}
/** @internal */
exports.CreateDatasetItemMessagesToolMessage$outboundSchema = z.object({
    role: z.literal("tool"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$outboundSchema),
    ]),
    toolCallId: z.nullable(z.string()),
    cacheControl: z.lazy(() => exports.CreateDatasetItemMessagesCacheControl$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toolCallId: "tool_call_id",
        cacheControl: "cache_control",
    });
});
function createDatasetItemMessagesToolMessageToJSON(createDatasetItemMessagesToolMessage) {
    return JSON.stringify(exports.CreateDatasetItemMessagesToolMessage$outboundSchema.parse(createDatasetItemMessagesToolMessage));
}
/** @internal */
exports.CreateDatasetItemContentDatasets2$outboundSchema = z.union([
    components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
    components.RefusalPartSchema$outboundSchema,
    components.ReasoningPartSchema$outboundSchema,
    components.RedactedReasoningPartSchema$outboundSchema,
]);
function createDatasetItemContentDatasets2ToJSON(createDatasetItemContentDatasets2) {
    return JSON.stringify(exports.CreateDatasetItemContentDatasets2$outboundSchema.parse(createDatasetItemContentDatasets2));
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsRequestRequestBodyContent$outboundSchema = z.union([
    z.string(),
    z.array(z.union([
        components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
        components.RefusalPartSchema$outboundSchema,
        components.ReasoningPartSchema$outboundSchema,
        components.RedactedReasoningPartSchema$outboundSchema,
    ])),
]);
function createDatasetItemMessagesDatasetsRequestRequestBodyContentToJSON(createDatasetItemMessagesDatasetsRequestRequestBodyContent) {
    return JSON.stringify(exports.CreateDatasetItemMessagesDatasetsRequestRequestBodyContent$outboundSchema
        .parse(createDatasetItemMessagesDatasetsRequestRequestBodyContent));
}
/** @internal */
exports.CreateDatasetItemMessagesAudio$outboundSchema = z.object({
    id: z.string(),
});
function createDatasetItemMessagesAudioToJSON(createDatasetItemMessagesAudio) {
    return JSON.stringify(exports.CreateDatasetItemMessagesAudio$outboundSchema.parse(createDatasetItemMessagesAudio));
}
/** @internal */
exports.CreateDatasetItemMessagesType$outboundSchema = z.nativeEnum(exports.CreateDatasetItemMessagesType);
/** @internal */
exports.CreateDatasetItemMessagesFunction$outboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function createDatasetItemMessagesFunctionToJSON(createDatasetItemMessagesFunction) {
    return JSON.stringify(exports.CreateDatasetItemMessagesFunction$outboundSchema.parse(createDatasetItemMessagesFunction));
}
/** @internal */
exports.CreateDatasetItemMessagesToolCalls$outboundSchema = z.object({
    id: z.string(),
    type: exports.CreateDatasetItemMessagesType$outboundSchema,
    function: z.lazy(() => exports.CreateDatasetItemMessagesFunction$outboundSchema),
    thoughtSignature: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        thoughtSignature: "thought_signature",
    });
});
function createDatasetItemMessagesToolCallsToJSON(createDatasetItemMessagesToolCalls) {
    return JSON.stringify(exports.CreateDatasetItemMessagesToolCalls$outboundSchema.parse(createDatasetItemMessagesToolCalls));
}
/** @internal */
exports.CreateDatasetItemMessagesAssistantMessage$outboundSchema = z.object({
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
            components.RefusalPartSchema$outboundSchema,
            components.ReasoningPartSchema$outboundSchema,
            components.RedactedReasoningPartSchema$outboundSchema,
        ])),
    ])).optional(),
    refusal: z.nullable(z.string()).optional(),
    role: z.literal("assistant"),
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.CreateDatasetItemMessagesAudio$outboundSchema)).optional(),
    toolCalls: z.array(z.lazy(() => exports.CreateDatasetItemMessagesToolCalls$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toolCalls: "tool_calls",
    });
});
function createDatasetItemMessagesAssistantMessageToJSON(createDatasetItemMessagesAssistantMessage) {
    return JSON.stringify(exports.CreateDatasetItemMessagesAssistantMessage$outboundSchema.parse(createDatasetItemMessagesAssistantMessage));
}
/** @internal */
exports.CreateDatasetItem2DatasetsType$outboundSchema = z.nativeEnum(exports.CreateDatasetItem2DatasetsType);
/** @internal */
exports.CreateDatasetItem2Ttl$outboundSchema = z.nativeEnum(exports.CreateDatasetItem2Ttl);
/** @internal */
exports.CreateDatasetItem2CacheControl$outboundSchema = z.object({
    type: exports.CreateDatasetItem2DatasetsType$outboundSchema,
    ttl: exports.CreateDatasetItem2Ttl$outboundSchema.default("5m"),
});
function createDatasetItem2CacheControlToJSON(createDatasetItem2CacheControl) {
    return JSON.stringify(exports.CreateDatasetItem2CacheControl$outboundSchema.parse(createDatasetItem2CacheControl));
}
/** @internal */
exports.CreateDatasetItem24$outboundSchema = z.object({
    type: z.literal("file"),
    cacheControl: z.lazy(() => exports.CreateDatasetItem2CacheControl$outboundSchema)
        .optional(),
    file: components.FileContentPartSchema$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        cacheControl: "cache_control",
    });
});
function createDatasetItem24ToJSON(createDatasetItem24) {
    return JSON.stringify(exports.CreateDatasetItem24$outboundSchema.parse(createDatasetItem24));
}
/** @internal */
exports.CreateDatasetItemContent2$outboundSchema = z.union([
    components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
    components.ImageContentPartSchema$outboundSchema,
    components.AudioContentPartSchema$outboundSchema,
    z.lazy(() => exports.CreateDatasetItem24$outboundSchema),
]);
function createDatasetItemContent2ToJSON(createDatasetItemContent2) {
    return JSON.stringify(exports.CreateDatasetItemContent2$outboundSchema.parse(createDatasetItemContent2));
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsRequestContent$outboundSchema = z.union([
    z.string(),
    z.array(z.union([
        components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
        components.ImageContentPartSchema$outboundSchema,
        components.AudioContentPartSchema$outboundSchema,
        z.lazy(() => exports.CreateDatasetItem24$outboundSchema),
    ])),
]);
function createDatasetItemMessagesDatasetsRequestContentToJSON(createDatasetItemMessagesDatasetsRequestContent) {
    return JSON.stringify(exports.CreateDatasetItemMessagesDatasetsRequestContent$outboundSchema.parse(createDatasetItemMessagesDatasetsRequestContent));
}
/** @internal */
exports.CreateDatasetItemMessagesUserMessage$outboundSchema = z.object({
    role: z.literal("user"),
    name: z.string().optional(),
    content: z.union([
        z.string(),
        z.array(z.union([
            components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
            components.ImageContentPartSchema$outboundSchema,
            components.AudioContentPartSchema$outboundSchema,
            z.lazy(() => exports.CreateDatasetItem24$outboundSchema),
        ])),
    ]),
});
function createDatasetItemMessagesUserMessageToJSON(createDatasetItemMessagesUserMessage) {
    return JSON.stringify(exports.CreateDatasetItemMessagesUserMessage$outboundSchema.parse(createDatasetItemMessagesUserMessage));
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsContent$outboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$outboundSchema),
]);
function createDatasetItemMessagesDatasetsContentToJSON(createDatasetItemMessagesDatasetsContent) {
    return JSON.stringify(exports.CreateDatasetItemMessagesDatasetsContent$outboundSchema.parse(createDatasetItemMessagesDatasetsContent));
}
/** @internal */
exports.CreateDatasetItemMessagesDeveloperMessage$outboundSchema = z.object({
    role: z.literal("developer"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$outboundSchema),
    ]),
    name: z.string().optional(),
});
function createDatasetItemMessagesDeveloperMessageToJSON(createDatasetItemMessagesDeveloperMessage) {
    return JSON.stringify(exports.CreateDatasetItemMessagesDeveloperMessage$outboundSchema.parse(createDatasetItemMessagesDeveloperMessage));
}
/** @internal */
exports.CreateDatasetItemMessagesContent$outboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$outboundSchema),
]);
function createDatasetItemMessagesContentToJSON(createDatasetItemMessagesContent) {
    return JSON.stringify(exports.CreateDatasetItemMessagesContent$outboundSchema.parse(createDatasetItemMessagesContent));
}
/** @internal */
exports.CreateDatasetItemMessagesSystemMessage$outboundSchema = z.object({
    role: z.literal("system"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$outboundSchema),
    ]),
    name: z.string().optional(),
});
function createDatasetItemMessagesSystemMessageToJSON(createDatasetItemMessagesSystemMessage) {
    return JSON.stringify(exports.CreateDatasetItemMessagesSystemMessage$outboundSchema.parse(createDatasetItemMessagesSystemMessage));
}
/** @internal */
exports.CreateDatasetItemMessages$outboundSchema = z.union([
    z.lazy(() => exports.CreateDatasetItemMessagesSystemMessage$outboundSchema),
    z.lazy(() => exports.CreateDatasetItemMessagesDeveloperMessage$outboundSchema),
    z.lazy(() => exports.CreateDatasetItemMessagesUserMessage$outboundSchema),
    z.lazy(() => exports.CreateDatasetItemMessagesAssistantMessage$outboundSchema),
    z.lazy(() => exports.CreateDatasetItemMessagesToolMessage$outboundSchema),
]);
function createDatasetItemMessagesToJSON(createDatasetItemMessages) {
    return JSON.stringify(exports.CreateDatasetItemMessages$outboundSchema.parse(createDatasetItemMessages));
}
/** @internal */
exports.CreateDatasetItemRequestBody$outboundSchema = z.object({
    inputs: z.record(z.any()).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.CreateDatasetItemMessagesSystemMessage$outboundSchema),
        z.lazy(() => exports.CreateDatasetItemMessagesDeveloperMessage$outboundSchema),
        z.lazy(() => exports.CreateDatasetItemMessagesUserMessage$outboundSchema),
        z.lazy(() => exports.CreateDatasetItemMessagesAssistantMessage$outboundSchema),
        z.lazy(() => exports.CreateDatasetItemMessagesToolMessage$outboundSchema),
    ])).optional(),
    expectedOutput: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        expectedOutput: "expected_output",
    });
});
function createDatasetItemRequestBodyToJSON(createDatasetItemRequestBody) {
    return JSON.stringify(exports.CreateDatasetItemRequestBody$outboundSchema.parse(createDatasetItemRequestBody));
}
/** @internal */
exports.CreateDatasetItemRequest$outboundSchema = z.object({
    datasetId: z.string(),
    requestBody: z.array(z.lazy(() => exports.CreateDatasetItemRequestBody$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        datasetId: "dataset_id",
        requestBody: "RequestBody",
    });
});
function createDatasetItemRequestToJSON(createDatasetItemRequest) {
    return JSON.stringify(exports.CreateDatasetItemRequest$outboundSchema.parse(createDatasetItemRequest));
}
/** @internal */
exports.CreateDatasetItemContentDatasetsResponse200ApplicationJson2$inboundSchema = components.TextContentPartSchema$inboundSchema;
function createDatasetItemContentDatasetsResponse200ApplicationJSON2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemContentDatasetsResponse200ApplicationJson2$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemContentDatasetsResponse200ApplicationJson2' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function createDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBody5ContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBody5Content' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsResponse200Type$inboundSchema = z
    .nativeEnum(exports.CreateDatasetItemMessagesDatasetsResponse200Type);
/** @internal */
exports.CreateDatasetItemMessagesDatasetsTtl$inboundSchema = z.nativeEnum(exports.CreateDatasetItemMessagesDatasetsTtl);
/** @internal */
exports.CreateDatasetItemMessagesDatasetsCacheControl$inboundSchema = z.object({
    type: exports.CreateDatasetItemMessagesDatasetsResponse200Type$inboundSchema,
    ttl: exports.CreateDatasetItemMessagesDatasetsTtl$inboundSchema.default("5m"),
});
function createDatasetItemMessagesDatasetsCacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsCacheControl' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsToolMessage$inboundSchema = z.object({
    role: z.literal("tool"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    tool_call_id: z.nullable(z.string()),
    cache_control: z.lazy(() => exports.CreateDatasetItemMessagesDatasetsCacheControl$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_call_id": "toolCallId",
        "cache_control": "cacheControl",
    });
});
function createDatasetItemMessagesDatasetsToolMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsToolMessage' from JSON`);
}
/** @internal */
exports.CreateDatasetItemContentDatasetsResponse2002$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.RefusalPartSchema$inboundSchema,
    components.ReasoningPartSchema$inboundSchema,
    components.RedactedReasoningPartSchema$inboundSchema,
]);
function createDatasetItemContentDatasetsResponse2002FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemContentDatasetsResponse2002$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemContentDatasetsResponse2002' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBodyContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
        components.RefusalPartSchema$inboundSchema,
        components.ReasoningPartSchema$inboundSchema,
        components.RedactedReasoningPartSchema$inboundSchema,
    ])),
]);
function createDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBodyContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBodyContent$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONResponseBodyContent' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsAudio$inboundSchema = z.object({
    id: z.string(),
});
function createDatasetItemMessagesDatasetsAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsAudio' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsResponseType$inboundSchema = z
    .nativeEnum(exports.CreateDatasetItemMessagesDatasetsResponseType);
/** @internal */
exports.CreateDatasetItemMessagesDatasetsFunction$inboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function createDatasetItemMessagesDatasetsFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsFunction' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsToolCalls$inboundSchema = z.object({
    id: z.string(),
    type: exports.CreateDatasetItemMessagesDatasetsResponseType$inboundSchema,
    function: z.lazy(() => exports.CreateDatasetItemMessagesDatasetsFunction$inboundSchema),
    thought_signature: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "thought_signature": "thoughtSignature",
    });
});
function createDatasetItemMessagesDatasetsToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsToolCalls' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsAssistantMessage$inboundSchema = z.object({
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
            components.RefusalPartSchema$inboundSchema,
            components.ReasoningPartSchema$inboundSchema,
            components.RedactedReasoningPartSchema$inboundSchema,
        ])),
    ])).optional(),
    refusal: z.nullable(z.string()).optional(),
    role: z.literal("assistant"),
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.CreateDatasetItemMessagesDatasetsAudio$inboundSchema)).optional(),
    tool_calls: z.array(z.lazy(() => exports.CreateDatasetItemMessagesDatasetsToolCalls$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
    });
});
function createDatasetItemMessagesDatasetsAssistantMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsAssistantMessage' from JSON`);
}
/** @internal */
exports.CreateDatasetItem2DatasetsResponse200Type$inboundSchema = z
    .nativeEnum(exports.CreateDatasetItem2DatasetsResponse200Type);
/** @internal */
exports.CreateDatasetItem2DatasetsTtl$inboundSchema = z.nativeEnum(exports.CreateDatasetItem2DatasetsTtl);
/** @internal */
exports.CreateDatasetItem2DatasetsCacheControl$inboundSchema = z.object({
    type: exports.CreateDatasetItem2DatasetsResponse200Type$inboundSchema,
    ttl: exports.CreateDatasetItem2DatasetsTtl$inboundSchema.default("5m"),
});
function createDatasetItem2DatasetsCacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItem2DatasetsCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItem2DatasetsCacheControl' from JSON`);
}
/** @internal */
exports.CreateDatasetItem2Datasets4$inboundSchema = z.object({
    type: z.literal("file"),
    cache_control: z.lazy(() => exports.CreateDatasetItem2DatasetsCacheControl$inboundSchema).optional(),
    file: components.FileContentPartSchema$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cache_control": "cacheControl",
    });
});
function createDatasetItem2Datasets4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItem2Datasets4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItem2Datasets4' from JSON`);
}
/** @internal */
exports.CreateDatasetItemContentDatasetsResponse2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.ImageContentPartSchema$inboundSchema,
    components.AudioContentPartSchema$inboundSchema,
    z.lazy(() => exports.CreateDatasetItem2Datasets4$inboundSchema),
]);
function createDatasetItemContentDatasetsResponse2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemContentDatasetsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemContentDatasetsResponse2' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
        components.ImageContentPartSchema$inboundSchema,
        components.AudioContentPartSchema$inboundSchema,
        z.lazy(() => exports.CreateDatasetItem2Datasets4$inboundSchema),
    ])),
]);
function createDatasetItemMessagesDatasetsResponse200ApplicationJSONContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsResponse200ApplicationJSONContent' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsUserMessage$inboundSchema = z.object({
    role: z.literal("user"),
    name: z.string().optional(),
    content: z.union([
        z.string(),
        z.array(z.union([
            components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
            components.ImageContentPartSchema$inboundSchema,
            components.AudioContentPartSchema$inboundSchema,
            z.lazy(() => exports.CreateDatasetItem2Datasets4$inboundSchema),
        ])),
    ]),
});
function createDatasetItemMessagesDatasetsUserMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsUserMessage' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsResponse200Content$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function createDatasetItemMessagesDatasetsResponse200ContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsResponse200Content' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsDeveloperMessage$inboundSchema = z.object({
    role: z.literal("developer"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function createDatasetItemMessagesDatasetsDeveloperMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsDeveloperMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsDeveloperMessage' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsResponseContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function createDatasetItemMessagesDatasetsResponseContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsResponseContent' from JSON`);
}
/** @internal */
exports.CreateDatasetItemMessagesDatasetsSystemMessage$inboundSchema = z.object({
    role: z.literal("system"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function createDatasetItemMessagesDatasetsSystemMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemMessagesDatasetsSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemMessagesDatasetsSystemMessage' from JSON`);
}
/** @internal */
exports.CreateDatasetItemDatasetsMessages$inboundSchema = z.union([
    z.lazy(() => exports.CreateDatasetItemMessagesDatasetsSystemMessage$inboundSchema),
    z.lazy(() => exports.CreateDatasetItemMessagesDatasetsDeveloperMessage$inboundSchema),
    z.lazy(() => exports.CreateDatasetItemMessagesDatasetsUserMessage$inboundSchema),
    z.lazy(() => exports.CreateDatasetItemMessagesDatasetsAssistantMessage$inboundSchema),
    z.lazy(() => exports.CreateDatasetItemMessagesDatasetsToolMessage$inboundSchema),
]);
function createDatasetItemDatasetsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemDatasetsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemDatasetsMessages' from JSON`);
}
/** @internal */
exports.CreateDatasetItemEvaluationsEvaluationType$inboundSchema = z
    .nativeEnum(exports.CreateDatasetItemEvaluationsEvaluationType);
/** @internal */
exports.CreateDatasetItemEvaluationsDatasetsSource$inboundSchema = z
    .nativeEnum(exports.CreateDatasetItemEvaluationsDatasetsSource);
/** @internal */
exports.Evaluations3$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.CreateDatasetItemEvaluationsEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.CreateDatasetItemEvaluationsDatasetsSource$inboundSchema.default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-05-26T22:06:15.727Z").transform(v => new Date(v)),
    type: z.literal("string_array"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "evaluation_type": "evaluationType",
        "human_review_id": "humanReviewId",
        "reviewed_by_id": "reviewedById",
        "reviewed_at": "reviewedAt",
    });
});
function evaluations3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Evaluations3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Evaluations3' from JSON`);
}
/** @internal */
exports.EvaluationsEvaluationType$inboundSchema = z.nativeEnum(exports.EvaluationsEvaluationType);
/** @internal */
exports.CreateDatasetItemEvaluationsSource$inboundSchema = z.nativeEnum(exports.CreateDatasetItemEvaluationsSource);
/** @internal */
exports.Evaluations2$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.EvaluationsEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-05-26T22:06:15.727Z").transform(v => new Date(v)),
    type: z.literal("number"),
    value: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "evaluation_type": "evaluationType",
        "human_review_id": "humanReviewId",
        "reviewed_by_id": "reviewedById",
        "reviewed_at": "reviewedAt",
    });
});
function evaluations2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Evaluations2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Evaluations2' from JSON`);
}
/** @internal */
exports.CreateDatasetItemEvaluationsDatasetsEvaluationType$inboundSchema = z
    .nativeEnum(exports.CreateDatasetItemEvaluationsDatasetsEvaluationType);
/** @internal */
exports.EvaluationsSource$inboundSchema = z.nativeEnum(exports.EvaluationsSource);
/** @internal */
exports.Evaluations1$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.CreateDatasetItemEvaluationsDatasetsEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.EvaluationsSource$inboundSchema.default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-05-26T22:06:15.726Z").transform(v => new Date(v)),
    type: z.literal("string"),
    value: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "evaluation_type": "evaluationType",
        "human_review_id": "humanReviewId",
        "reviewed_by_id": "reviewedById",
        "reviewed_at": "reviewedAt",
    });
});
function evaluations1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Evaluations1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Evaluations1' from JSON`);
}
/** @internal */
exports.Evaluations$inboundSchema = z.union([
    z.lazy(() => exports.Evaluations1$inboundSchema),
    z.lazy(() => exports.Evaluations2$inboundSchema),
    z.lazy(() => exports.Evaluations3$inboundSchema),
]);
function evaluationsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Evaluations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Evaluations' from JSON`);
}
/** @internal */
exports.CreateDatasetItemResponseBody$inboundSchema = z.object({
    _id: z.string(),
    workspace_id: z.string(),
    inputs: z.record(z.any()).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.CreateDatasetItemMessagesDatasetsSystemMessage$inboundSchema),
        z.lazy(() => exports.CreateDatasetItemMessagesDatasetsDeveloperMessage$inboundSchema),
        z.lazy(() => exports.CreateDatasetItemMessagesDatasetsUserMessage$inboundSchema),
        z.lazy(() => exports.CreateDatasetItemMessagesDatasetsAssistantMessage$inboundSchema),
        z.lazy(() => exports.CreateDatasetItemMessagesDatasetsToolMessage$inboundSchema),
    ])).optional(),
    expected_output: z.string().optional(),
    evaluations: z.array(z.union([
        z.lazy(() => exports.Evaluations1$inboundSchema),
        z.lazy(() => exports.Evaluations2$inboundSchema),
        z.lazy(() => exports.Evaluations3$inboundSchema),
    ])).optional(),
    dataset_id: z.string(),
    snapshot_version: z.string().optional(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    created: z.string().datetime({ offset: true }).transform(v => new Date(v))
        .optional(),
    updated: z.string().datetime({ offset: true }).default("2026-05-26T22:06:01.786Z").transform(v => new Date(v)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "workspace_id": "workspaceId",
        "expected_output": "expectedOutput",
        "dataset_id": "datasetId",
        "snapshot_version": "snapshotVersion",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
    });
});
function createDatasetItemResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateDatasetItemResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateDatasetItemResponseBody' from JSON`);
}
//# sourceMappingURL=createdatasetitem.js.map