"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.GetAgentResponseFormatType$inboundSchema = exports.GetAgentResponseFormat2$outboundSchema = exports.GetAgentResponseFormat2$inboundSchema = exports.GetAgentResponseFormatAgentsType$outboundSchema = exports.GetAgentResponseFormatAgentsType$inboundSchema = exports.GetAgentResponseFormat3$outboundSchema = exports.GetAgentResponseFormat3$inboundSchema = exports.GetAgentResponseFormatJsonSchema$outboundSchema = exports.GetAgentResponseFormatJsonSchema$inboundSchema = exports.GetAgentResponseFormatAgentsResponseType$outboundSchema = exports.GetAgentResponseFormatAgentsResponseType$inboundSchema = exports.GetAgentAudio$outboundSchema = exports.GetAgentAudio$inboundSchema = exports.GetAgentFormat$outboundSchema = exports.GetAgentFormat$inboundSchema = exports.GetAgentVoice$outboundSchema = exports.GetAgentVoice$inboundSchema = exports.GetAgentSettings$outboundSchema = exports.GetAgentSettings$inboundSchema = exports.GetAgentTools$outboundSchema = exports.GetAgentTools$inboundSchema = exports.GetAgentConditions$outboundSchema = exports.GetAgentConditions$inboundSchema = exports.GetAgentToolApprovalRequired$outboundSchema = exports.GetAgentToolApprovalRequired$inboundSchema = exports.GetAgentStatus$outboundSchema = exports.GetAgentStatus$inboundSchema = exports.GetAgentRequest$outboundSchema = exports.GetAgentRequest$inboundSchema = exports.GetAgentHiddenPanels = exports.GetAgentFallbackModelsModalities = exports.GetAgentToolChoiceAgents1 = exports.GetAgentToolChoiceAgentsType = exports.GetAgentFallbackModelsType = exports.GetAgentResponseFormatAgentsResponse200Type = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = exports.GetAgentFallbackModelsFormat = exports.GetAgentFallbackModelsVoice = exports.GetAgentModalities = exports.GetAgentToolChoice1 = exports.GetAgentToolChoiceType = exports.GetAgentType = exports.GetAgentResponseFormatType = exports.GetAgentResponseFormatAgentsType = exports.GetAgentResponseFormatAgentsResponseType = exports.GetAgentFormat = exports.GetAgentVoice = exports.GetAgentToolApprovalRequired = exports.GetAgentStatus = void 0;
exports.GetAgentFallbackModelsResponseFormat$inboundSchema = exports.GetAgentResponseFormatAgents1$outboundSchema = exports.GetAgentResponseFormatAgents1$inboundSchema = exports.GetAgentResponseFormatAgentsResponse200Type$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200Type$inboundSchema = exports.GetAgentResponseFormatAgents2$outboundSchema = exports.GetAgentResponseFormatAgents2$inboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = exports.GetAgentResponseFormatAgents3$outboundSchema = exports.GetAgentResponseFormatAgents3$inboundSchema = exports.GetAgentResponseFormatAgentsJsonSchema$outboundSchema = exports.GetAgentResponseFormatAgentsJsonSchema$inboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.GetAgentFallbackModelsAudio$outboundSchema = exports.GetAgentFallbackModelsAudio$inboundSchema = exports.GetAgentFallbackModelsFormat$outboundSchema = exports.GetAgentFallbackModelsFormat$inboundSchema = exports.GetAgentFallbackModelsVoice$outboundSchema = exports.GetAgentFallbackModelsVoice$inboundSchema = exports.GetAgentParameters$outboundSchema = exports.GetAgentParameters$inboundSchema = exports.GetAgentWebSearchOptions$outboundSchema = exports.GetAgentWebSearchOptions$inboundSchema = exports.GetAgentModalities$outboundSchema = exports.GetAgentModalities$inboundSchema = exports.GetAgentToolChoice$outboundSchema = exports.GetAgentToolChoice$inboundSchema = exports.GetAgentToolChoice1$outboundSchema = exports.GetAgentToolChoice1$inboundSchema = exports.GetAgentToolChoice2$outboundSchema = exports.GetAgentToolChoice2$inboundSchema = exports.GetAgentToolChoiceFunction$outboundSchema = exports.GetAgentToolChoiceFunction$inboundSchema = exports.GetAgentToolChoiceType$outboundSchema = exports.GetAgentToolChoiceType$inboundSchema = exports.GetAgentThinking$outboundSchema = exports.GetAgentThinking$inboundSchema = exports.GetAgentType$outboundSchema = exports.GetAgentType$inboundSchema = exports.GetAgentStreamOptions$outboundSchema = exports.GetAgentStreamOptions$inboundSchema = exports.GetAgentStop$outboundSchema = exports.GetAgentStop$inboundSchema = exports.GetAgentResponseFormat$outboundSchema = exports.GetAgentResponseFormat$inboundSchema = exports.GetAgentResponseFormat1$outboundSchema = exports.GetAgentResponseFormat1$inboundSchema = exports.GetAgentResponseFormatType$outboundSchema = void 0;
exports.GetAgentResponseBody$outboundSchema = exports.GetAgentResponseBody$inboundSchema = exports.GetAgentHiddenPanels$outboundSchema = exports.GetAgentHiddenPanels$inboundSchema = exports.GetAgentKnowledgeBases$outboundSchema = exports.GetAgentKnowledgeBases$inboundSchema = exports.GetAgentMetrics$outboundSchema = exports.GetAgentMetrics$inboundSchema = exports.GetAgentTeamOfAgents$outboundSchema = exports.GetAgentTeamOfAgents$inboundSchema = exports.GetAgentModel$outboundSchema = exports.GetAgentModel$inboundSchema = exports.GetAgentFallbackModels$outboundSchema = exports.GetAgentFallbackModels$inboundSchema = exports.GetAgentFallbackModels2$outboundSchema = exports.GetAgentFallbackModels2$inboundSchema = exports.GetAgentFallbackModelsParameters$outboundSchema = exports.GetAgentFallbackModelsParameters$inboundSchema = exports.GetAgentFallbackModelsWebSearchOptions$outboundSchema = exports.GetAgentFallbackModelsWebSearchOptions$inboundSchema = exports.GetAgentFallbackModelsModalities$outboundSchema = exports.GetAgentFallbackModelsModalities$inboundSchema = exports.GetAgentFallbackModelsToolChoice$outboundSchema = exports.GetAgentFallbackModelsToolChoice$inboundSchema = exports.GetAgentToolChoiceAgents1$outboundSchema = exports.GetAgentToolChoiceAgents1$inboundSchema = exports.GetAgentToolChoiceAgents2$outboundSchema = exports.GetAgentToolChoiceAgents2$inboundSchema = exports.GetAgentToolChoiceAgentsFunction$outboundSchema = exports.GetAgentToolChoiceAgentsFunction$inboundSchema = exports.GetAgentToolChoiceAgentsType$outboundSchema = exports.GetAgentToolChoiceAgentsType$inboundSchema = exports.GetAgentFallbackModelsThinking$outboundSchema = exports.GetAgentFallbackModelsThinking$inboundSchema = exports.GetAgentFallbackModelsType$outboundSchema = exports.GetAgentFallbackModelsType$inboundSchema = exports.GetAgentFallbackModelsStreamOptions$outboundSchema = exports.GetAgentFallbackModelsStreamOptions$inboundSchema = exports.GetAgentFallbackModelsStop$outboundSchema = exports.GetAgentFallbackModelsStop$inboundSchema = exports.GetAgentFallbackModelsResponseFormat$outboundSchema = void 0;
exports.getAgentRequestToJSON = getAgentRequestToJSON;
exports.getAgentRequestFromJSON = getAgentRequestFromJSON;
exports.getAgentConditionsToJSON = getAgentConditionsToJSON;
exports.getAgentConditionsFromJSON = getAgentConditionsFromJSON;
exports.getAgentToolsToJSON = getAgentToolsToJSON;
exports.getAgentToolsFromJSON = getAgentToolsFromJSON;
exports.getAgentSettingsToJSON = getAgentSettingsToJSON;
exports.getAgentSettingsFromJSON = getAgentSettingsFromJSON;
exports.getAgentAudioToJSON = getAgentAudioToJSON;
exports.getAgentAudioFromJSON = getAgentAudioFromJSON;
exports.getAgentResponseFormatJsonSchemaToJSON = getAgentResponseFormatJsonSchemaToJSON;
exports.getAgentResponseFormatJsonSchemaFromJSON = getAgentResponseFormatJsonSchemaFromJSON;
exports.getAgentResponseFormat3ToJSON = getAgentResponseFormat3ToJSON;
exports.getAgentResponseFormat3FromJSON = getAgentResponseFormat3FromJSON;
exports.getAgentResponseFormat2ToJSON = getAgentResponseFormat2ToJSON;
exports.getAgentResponseFormat2FromJSON = getAgentResponseFormat2FromJSON;
exports.getAgentResponseFormat1ToJSON = getAgentResponseFormat1ToJSON;
exports.getAgentResponseFormat1FromJSON = getAgentResponseFormat1FromJSON;
exports.getAgentResponseFormatToJSON = getAgentResponseFormatToJSON;
exports.getAgentResponseFormatFromJSON = getAgentResponseFormatFromJSON;
exports.getAgentStopToJSON = getAgentStopToJSON;
exports.getAgentStopFromJSON = getAgentStopFromJSON;
exports.getAgentStreamOptionsToJSON = getAgentStreamOptionsToJSON;
exports.getAgentStreamOptionsFromJSON = getAgentStreamOptionsFromJSON;
exports.getAgentThinkingToJSON = getAgentThinkingToJSON;
exports.getAgentThinkingFromJSON = getAgentThinkingFromJSON;
exports.getAgentToolChoiceFunctionToJSON = getAgentToolChoiceFunctionToJSON;
exports.getAgentToolChoiceFunctionFromJSON = getAgentToolChoiceFunctionFromJSON;
exports.getAgentToolChoice2ToJSON = getAgentToolChoice2ToJSON;
exports.getAgentToolChoice2FromJSON = getAgentToolChoice2FromJSON;
exports.getAgentToolChoiceToJSON = getAgentToolChoiceToJSON;
exports.getAgentToolChoiceFromJSON = getAgentToolChoiceFromJSON;
exports.getAgentWebSearchOptionsToJSON = getAgentWebSearchOptionsToJSON;
exports.getAgentWebSearchOptionsFromJSON = getAgentWebSearchOptionsFromJSON;
exports.getAgentParametersToJSON = getAgentParametersToJSON;
exports.getAgentParametersFromJSON = getAgentParametersFromJSON;
exports.getAgentFallbackModelsAudioToJSON = getAgentFallbackModelsAudioToJSON;
exports.getAgentFallbackModelsAudioFromJSON = getAgentFallbackModelsAudioFromJSON;
exports.getAgentResponseFormatAgentsJsonSchemaToJSON = getAgentResponseFormatAgentsJsonSchemaToJSON;
exports.getAgentResponseFormatAgentsJsonSchemaFromJSON = getAgentResponseFormatAgentsJsonSchemaFromJSON;
exports.getAgentResponseFormatAgents3ToJSON = getAgentResponseFormatAgents3ToJSON;
exports.getAgentResponseFormatAgents3FromJSON = getAgentResponseFormatAgents3FromJSON;
exports.getAgentResponseFormatAgents2ToJSON = getAgentResponseFormatAgents2ToJSON;
exports.getAgentResponseFormatAgents2FromJSON = getAgentResponseFormatAgents2FromJSON;
exports.getAgentResponseFormatAgents1ToJSON = getAgentResponseFormatAgents1ToJSON;
exports.getAgentResponseFormatAgents1FromJSON = getAgentResponseFormatAgents1FromJSON;
exports.getAgentFallbackModelsResponseFormatToJSON = getAgentFallbackModelsResponseFormatToJSON;
exports.getAgentFallbackModelsResponseFormatFromJSON = getAgentFallbackModelsResponseFormatFromJSON;
exports.getAgentFallbackModelsStopToJSON = getAgentFallbackModelsStopToJSON;
exports.getAgentFallbackModelsStopFromJSON = getAgentFallbackModelsStopFromJSON;
exports.getAgentFallbackModelsStreamOptionsToJSON = getAgentFallbackModelsStreamOptionsToJSON;
exports.getAgentFallbackModelsStreamOptionsFromJSON = getAgentFallbackModelsStreamOptionsFromJSON;
exports.getAgentFallbackModelsThinkingToJSON = getAgentFallbackModelsThinkingToJSON;
exports.getAgentFallbackModelsThinkingFromJSON = getAgentFallbackModelsThinkingFromJSON;
exports.getAgentToolChoiceAgentsFunctionToJSON = getAgentToolChoiceAgentsFunctionToJSON;
exports.getAgentToolChoiceAgentsFunctionFromJSON = getAgentToolChoiceAgentsFunctionFromJSON;
exports.getAgentToolChoiceAgents2ToJSON = getAgentToolChoiceAgents2ToJSON;
exports.getAgentToolChoiceAgents2FromJSON = getAgentToolChoiceAgents2FromJSON;
exports.getAgentFallbackModelsToolChoiceToJSON = getAgentFallbackModelsToolChoiceToJSON;
exports.getAgentFallbackModelsToolChoiceFromJSON = getAgentFallbackModelsToolChoiceFromJSON;
exports.getAgentFallbackModelsWebSearchOptionsToJSON = getAgentFallbackModelsWebSearchOptionsToJSON;
exports.getAgentFallbackModelsWebSearchOptionsFromJSON = getAgentFallbackModelsWebSearchOptionsFromJSON;
exports.getAgentFallbackModelsParametersToJSON = getAgentFallbackModelsParametersToJSON;
exports.getAgentFallbackModelsParametersFromJSON = getAgentFallbackModelsParametersFromJSON;
exports.getAgentFallbackModels2ToJSON = getAgentFallbackModels2ToJSON;
exports.getAgentFallbackModels2FromJSON = getAgentFallbackModels2FromJSON;
exports.getAgentFallbackModelsToJSON = getAgentFallbackModelsToJSON;
exports.getAgentFallbackModelsFromJSON = getAgentFallbackModelsFromJSON;
exports.getAgentModelToJSON = getAgentModelToJSON;
exports.getAgentModelFromJSON = getAgentModelFromJSON;
exports.getAgentTeamOfAgentsToJSON = getAgentTeamOfAgentsToJSON;
exports.getAgentTeamOfAgentsFromJSON = getAgentTeamOfAgentsFromJSON;
exports.getAgentMetricsToJSON = getAgentMetricsToJSON;
exports.getAgentMetricsFromJSON = getAgentMetricsFromJSON;
exports.getAgentKnowledgeBasesToJSON = getAgentKnowledgeBasesToJSON;
exports.getAgentKnowledgeBasesFromJSON = getAgentKnowledgeBasesFromJSON;
exports.getAgentResponseBodyToJSON = getAgentResponseBodyToJSON;
exports.getAgentResponseBodyFromJSON = getAgentResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/**
 * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
 */
exports.GetAgentStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
/**
 * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
 */
exports.GetAgentToolApprovalRequired = {
    All: "all",
    RespectTool: "respect_tool",
    None: "none",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.GetAgentVoice = {
    Alloy: "alloy",
    Echo: "echo",
    Fable: "fable",
    Onyx: "onyx",
    Nova: "nova",
    Shimmer: "shimmer",
};
/**
 * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
 */
exports.GetAgentFormat = {
    Wav: "wav",
    Mp3: "mp3",
    Flac: "flac",
    Opus: "opus",
    Pcm16: "pcm16",
};
exports.GetAgentResponseFormatAgentsResponseType = {
    JsonSchema: "json_schema",
};
exports.GetAgentResponseFormatAgentsType = {
    JsonObject: "json_object",
};
exports.GetAgentResponseFormatType = {
    Text: "text",
};
/**
 * Enables or disables the thinking mode capability
 */
exports.GetAgentType = {
    Enabled: "enabled",
    Disabled: "disabled",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.GetAgentToolChoiceType = {
    Function: "function",
};
exports.GetAgentToolChoice1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.GetAgentModalities = {
    Text: "text",
    Audio: "audio",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.GetAgentFallbackModelsVoice = {
    Alloy: "alloy",
    Echo: "echo",
    Fable: "fable",
    Onyx: "onyx",
    Nova: "nova",
    Shimmer: "shimmer",
};
/**
 * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
 */
exports.GetAgentFallbackModelsFormat = {
    Wav: "wav",
    Mp3: "mp3",
    Flac: "flac",
    Opus: "opus",
    Pcm16: "pcm16",
};
exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = {
    JsonSchema: "json_schema",
};
exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType = {
    JsonObject: "json_object",
};
exports.GetAgentResponseFormatAgentsResponse200Type = {
    Text: "text",
};
/**
 * Enables or disables the thinking mode capability
 */
exports.GetAgentFallbackModelsType = {
    Enabled: "enabled",
    Disabled: "disabled",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.GetAgentToolChoiceAgentsType = {
    Function: "function",
};
exports.GetAgentToolChoiceAgents1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.GetAgentFallbackModelsModalities = {
    Text: "text",
    Audio: "audio",
};
exports.GetAgentHiddenPanels = {
    Model: "model",
    Tools: "tools",
    KnowledgeBases: "knowledge_bases",
    Variables: "variables",
    RuntimeConstraints: "runtime_constraints",
};
/** @internal */
exports.GetAgentRequest$inboundSchema = z.object({
    agent_key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "agent_key": "agentKey",
    });
});
/** @internal */
exports.GetAgentRequest$outboundSchema = z.object({
    agentKey: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        agentKey: "agent_key",
    });
});
function getAgentRequestToJSON(getAgentRequest) {
    return JSON.stringify(exports.GetAgentRequest$outboundSchema.parse(getAgentRequest));
}
function getAgentRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentRequest' from JSON`);
}
/** @internal */
exports.GetAgentStatus$inboundSchema = z.nativeEnum(exports.GetAgentStatus);
/** @internal */
exports.GetAgentStatus$outboundSchema = exports.GetAgentStatus$inboundSchema;
/** @internal */
exports.GetAgentToolApprovalRequired$inboundSchema = z.nativeEnum(exports.GetAgentToolApprovalRequired);
/** @internal */
exports.GetAgentToolApprovalRequired$outboundSchema = exports.GetAgentToolApprovalRequired$inboundSchema;
/** @internal */
exports.GetAgentConditions$inboundSchema = z.object({
    condition: z.string(),
    operator: z.string(),
    value: z.string(),
});
/** @internal */
exports.GetAgentConditions$outboundSchema = z.object({
    condition: z.string(),
    operator: z.string(),
    value: z.string(),
});
function getAgentConditionsToJSON(getAgentConditions) {
    return JSON.stringify(exports.GetAgentConditions$outboundSchema.parse(getAgentConditions));
}
function getAgentConditionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentConditions' from JSON`);
}
/** @internal */
exports.GetAgentTools$inboundSchema = z.object({
    id: z.string(),
    key: z.string().optional(),
    action_type: z.string(),
    display_name: z.string().optional(),
    requires_approval: z.boolean().default(false),
    conditions: z.array(z.lazy(() => exports.GetAgentConditions$inboundSchema))
        .optional(),
    mcpServer: z.string().optional(),
    timeout: z.number().default(120),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "action_type": "actionType",
        "display_name": "displayName",
        "requires_approval": "requiresApproval",
    });
});
/** @internal */
exports.GetAgentTools$outboundSchema = z.object({
    id: z.string(),
    key: z.string().optional(),
    actionType: z.string(),
    displayName: z.string().optional(),
    requiresApproval: z.boolean().default(false),
    conditions: z.array(z.lazy(() => exports.GetAgentConditions$outboundSchema))
        .optional(),
    mcpServer: z.string().optional(),
    timeout: z.number().default(120),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        actionType: "action_type",
        displayName: "display_name",
        requiresApproval: "requires_approval",
    });
});
function getAgentToolsToJSON(getAgentTools) {
    return JSON.stringify(exports.GetAgentTools$outboundSchema.parse(getAgentTools));
}
function getAgentToolsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTools' from JSON`);
}
/** @internal */
exports.GetAgentSettings$inboundSchema = z.object({
    max_iterations: z.number().int().default(15),
    max_execution_time: z.number().int().default(300),
    tool_approval_required: exports.GetAgentToolApprovalRequired$inboundSchema.default("respect_tool"),
    tools: z.array(z.lazy(() => exports.GetAgentTools$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "max_iterations": "maxIterations",
        "max_execution_time": "maxExecutionTime",
        "tool_approval_required": "toolApprovalRequired",
    });
});
/** @internal */
exports.GetAgentSettings$outboundSchema = z.object({
    maxIterations: z.number().int().default(15),
    maxExecutionTime: z.number().int().default(300),
    toolApprovalRequired: exports.GetAgentToolApprovalRequired$outboundSchema.default("respect_tool"),
    tools: z.array(z.lazy(() => exports.GetAgentTools$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        maxIterations: "max_iterations",
        maxExecutionTime: "max_execution_time",
        toolApprovalRequired: "tool_approval_required",
    });
});
function getAgentSettingsToJSON(getAgentSettings) {
    return JSON.stringify(exports.GetAgentSettings$outboundSchema.parse(getAgentSettings));
}
function getAgentSettingsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentSettings' from JSON`);
}
/** @internal */
exports.GetAgentVoice$inboundSchema = z.nativeEnum(exports.GetAgentVoice);
/** @internal */
exports.GetAgentVoice$outboundSchema = exports.GetAgentVoice$inboundSchema;
/** @internal */
exports.GetAgentFormat$inboundSchema = z.nativeEnum(exports.GetAgentFormat);
/** @internal */
exports.GetAgentFormat$outboundSchema = exports.GetAgentFormat$inboundSchema;
/** @internal */
exports.GetAgentAudio$inboundSchema = z.object({
    voice: exports.GetAgentVoice$inboundSchema,
    format: exports.GetAgentFormat$inboundSchema,
});
/** @internal */
exports.GetAgentAudio$outboundSchema = z.object({
    voice: exports.GetAgentVoice$outboundSchema,
    format: exports.GetAgentFormat$outboundSchema,
});
function getAgentAudioToJSON(getAgentAudio) {
    return JSON.stringify(exports.GetAgentAudio$outboundSchema.parse(getAgentAudio));
}
function getAgentAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentAudio' from JSON`);
}
/** @internal */
exports.GetAgentResponseFormatAgentsResponseType$inboundSchema = z
    .nativeEnum(exports.GetAgentResponseFormatAgentsResponseType);
/** @internal */
exports.GetAgentResponseFormatAgentsResponseType$outboundSchema = exports.GetAgentResponseFormatAgentsResponseType$inboundSchema;
/** @internal */
exports.GetAgentResponseFormatJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().optional(),
});
/** @internal */
exports.GetAgentResponseFormatJsonSchema$outboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().optional(),
});
function getAgentResponseFormatJsonSchemaToJSON(getAgentResponseFormatJsonSchema) {
    return JSON.stringify(exports.GetAgentResponseFormatJsonSchema$outboundSchema.parse(getAgentResponseFormatJsonSchema));
}
function getAgentResponseFormatJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormatJsonSchema' from JSON`);
}
/** @internal */
exports.GetAgentResponseFormat3$inboundSchema = z.object({
    type: exports.GetAgentResponseFormatAgentsResponseType$inboundSchema,
    json_schema: z.lazy(() => exports.GetAgentResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.GetAgentResponseFormat3$outboundSchema = z.object({
    type: exports.GetAgentResponseFormatAgentsResponseType$outboundSchema,
    jsonSchema: z.lazy(() => exports.GetAgentResponseFormatJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        jsonSchema: "json_schema",
    });
});
function getAgentResponseFormat3ToJSON(getAgentResponseFormat3) {
    return JSON.stringify(exports.GetAgentResponseFormat3$outboundSchema.parse(getAgentResponseFormat3));
}
function getAgentResponseFormat3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormat3' from JSON`);
}
/** @internal */
exports.GetAgentResponseFormatAgentsType$inboundSchema = z.nativeEnum(exports.GetAgentResponseFormatAgentsType);
/** @internal */
exports.GetAgentResponseFormatAgentsType$outboundSchema = exports.GetAgentResponseFormatAgentsType$inboundSchema;
/** @internal */
exports.GetAgentResponseFormat2$inboundSchema = z.object({
    type: exports.GetAgentResponseFormatAgentsType$inboundSchema,
});
/** @internal */
exports.GetAgentResponseFormat2$outboundSchema = z.object({
    type: exports.GetAgentResponseFormatAgentsType$outboundSchema,
});
function getAgentResponseFormat2ToJSON(getAgentResponseFormat2) {
    return JSON.stringify(exports.GetAgentResponseFormat2$outboundSchema.parse(getAgentResponseFormat2));
}
function getAgentResponseFormat2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormat2' from JSON`);
}
/** @internal */
exports.GetAgentResponseFormatType$inboundSchema = z.nativeEnum(exports.GetAgentResponseFormatType);
/** @internal */
exports.GetAgentResponseFormatType$outboundSchema = exports.GetAgentResponseFormatType$inboundSchema;
/** @internal */
exports.GetAgentResponseFormat1$inboundSchema = z.object({
    type: exports.GetAgentResponseFormatType$inboundSchema,
});
/** @internal */
exports.GetAgentResponseFormat1$outboundSchema = z.object({
    type: exports.GetAgentResponseFormatType$outboundSchema,
});
function getAgentResponseFormat1ToJSON(getAgentResponseFormat1) {
    return JSON.stringify(exports.GetAgentResponseFormat1$outboundSchema.parse(getAgentResponseFormat1));
}
function getAgentResponseFormat1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormat1' from JSON`);
}
/** @internal */
exports.GetAgentResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.GetAgentResponseFormat3$inboundSchema),
    z.lazy(() => exports.GetAgentResponseFormat1$inboundSchema),
    z.lazy(() => exports.GetAgentResponseFormat2$inboundSchema),
]);
/** @internal */
exports.GetAgentResponseFormat$outboundSchema = z.union([
    z.lazy(() => exports.GetAgentResponseFormat3$outboundSchema),
    z.lazy(() => exports.GetAgentResponseFormat1$outboundSchema),
    z.lazy(() => exports.GetAgentResponseFormat2$outboundSchema),
]);
function getAgentResponseFormatToJSON(getAgentResponseFormat) {
    return JSON.stringify(exports.GetAgentResponseFormat$outboundSchema.parse(getAgentResponseFormat));
}
function getAgentResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormat' from JSON`);
}
/** @internal */
exports.GetAgentStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.GetAgentStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
function getAgentStopToJSON(getAgentStop) {
    return JSON.stringify(exports.GetAgentStop$outboundSchema.parse(getAgentStop));
}
function getAgentStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentStop' from JSON`);
}
/** @internal */
exports.GetAgentStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
/** @internal */
exports.GetAgentStreamOptions$outboundSchema = z.object({
    includeUsage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        includeUsage: "include_usage",
    });
});
function getAgentStreamOptionsToJSON(getAgentStreamOptions) {
    return JSON.stringify(exports.GetAgentStreamOptions$outboundSchema.parse(getAgentStreamOptions));
}
function getAgentStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentStreamOptions' from JSON`);
}
/** @internal */
exports.GetAgentType$inboundSchema = z.nativeEnum(exports.GetAgentType);
/** @internal */
exports.GetAgentType$outboundSchema = exports.GetAgentType$inboundSchema;
/** @internal */
exports.GetAgentThinking$inboundSchema = z.object({
    type: exports.GetAgentType$inboundSchema,
    budget_tokens: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "budget_tokens": "budgetTokens",
    });
});
/** @internal */
exports.GetAgentThinking$outboundSchema = z.object({
    type: exports.GetAgentType$outboundSchema,
    budgetTokens: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        budgetTokens: "budget_tokens",
    });
});
function getAgentThinkingToJSON(getAgentThinking) {
    return JSON.stringify(exports.GetAgentThinking$outboundSchema.parse(getAgentThinking));
}
function getAgentThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentThinking' from JSON`);
}
/** @internal */
exports.GetAgentToolChoiceType$inboundSchema = z.nativeEnum(exports.GetAgentToolChoiceType);
/** @internal */
exports.GetAgentToolChoiceType$outboundSchema = exports.GetAgentToolChoiceType$inboundSchema;
/** @internal */
exports.GetAgentToolChoiceFunction$inboundSchema = z.object({
    name: z.string().optional(),
});
/** @internal */
exports.GetAgentToolChoiceFunction$outboundSchema = z.object({
    name: z.string().optional(),
});
function getAgentToolChoiceFunctionToJSON(getAgentToolChoiceFunction) {
    return JSON.stringify(exports.GetAgentToolChoiceFunction$outboundSchema.parse(getAgentToolChoiceFunction));
}
function getAgentToolChoiceFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentToolChoiceFunction' from JSON`);
}
/** @internal */
exports.GetAgentToolChoice2$inboundSchema = z.object({
    type: exports.GetAgentToolChoiceType$inboundSchema.optional(),
    function: z.lazy(() => exports.GetAgentToolChoiceFunction$inboundSchema),
});
/** @internal */
exports.GetAgentToolChoice2$outboundSchema = z.object({
    type: exports.GetAgentToolChoiceType$outboundSchema.optional(),
    function: z.lazy(() => exports.GetAgentToolChoiceFunction$outboundSchema),
});
function getAgentToolChoice2ToJSON(getAgentToolChoice2) {
    return JSON.stringify(exports.GetAgentToolChoice2$outboundSchema.parse(getAgentToolChoice2));
}
function getAgentToolChoice2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentToolChoice2' from JSON`);
}
/** @internal */
exports.GetAgentToolChoice1$inboundSchema = z.nativeEnum(exports.GetAgentToolChoice1);
/** @internal */
exports.GetAgentToolChoice1$outboundSchema = exports.GetAgentToolChoice1$inboundSchema;
/** @internal */
exports.GetAgentToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.GetAgentToolChoice2$inboundSchema),
    exports.GetAgentToolChoice1$inboundSchema,
]);
/** @internal */
exports.GetAgentToolChoice$outboundSchema = z.union([
    z.lazy(() => exports.GetAgentToolChoice2$outboundSchema),
    exports.GetAgentToolChoice1$outboundSchema,
]);
function getAgentToolChoiceToJSON(getAgentToolChoice) {
    return JSON.stringify(exports.GetAgentToolChoice$outboundSchema.parse(getAgentToolChoice));
}
function getAgentToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentToolChoice' from JSON`);
}
/** @internal */
exports.GetAgentModalities$inboundSchema = z.nativeEnum(exports.GetAgentModalities);
/** @internal */
exports.GetAgentModalities$outboundSchema = exports.GetAgentModalities$inboundSchema;
/** @internal */
exports.GetAgentWebSearchOptions$inboundSchema = z.object({
    enabled: z.boolean().optional(),
});
/** @internal */
exports.GetAgentWebSearchOptions$outboundSchema = z.object({
    enabled: z.boolean().optional(),
});
function getAgentWebSearchOptionsToJSON(getAgentWebSearchOptions) {
    return JSON.stringify(exports.GetAgentWebSearchOptions$outboundSchema.parse(getAgentWebSearchOptions));
}
function getAgentWebSearchOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentWebSearchOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentWebSearchOptions' from JSON`);
}
/** @internal */
exports.GetAgentParameters$inboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.GetAgentAudio$inboundSchema)).optional(),
    frequency_penalty: z.nullable(z.number()).optional(),
    max_tokens: z.nullable(z.number().int()).optional(),
    max_completion_tokens: z.nullable(z.number().int()).optional(),
    logprobs: z.nullable(z.boolean()).optional(),
    top_logprobs: z.nullable(z.number().int()).optional(),
    n: z.nullable(z.number().int()).optional(),
    presence_penalty: z.nullable(z.number()).optional(),
    response_format: z.union([
        z.lazy(() => exports.GetAgentResponseFormat3$inboundSchema),
        z.lazy(() => exports.GetAgentResponseFormat1$inboundSchema),
        z.lazy(() => exports.GetAgentResponseFormat2$inboundSchema),
    ]).optional(),
    reasoning_effort: z.string().optional(),
    verbosity: z.string().optional(),
    seed: z.nullable(z.number()).optional(),
    stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
    stream_options: z.nullable(z.lazy(() => exports.GetAgentStreamOptions$inboundSchema))
        .optional(),
    thinking: z.lazy(() => exports.GetAgentThinking$inboundSchema).optional(),
    temperature: z.nullable(z.number()).optional(),
    top_p: z.nullable(z.number()).optional(),
    top_k: z.nullable(z.number()).optional(),
    tool_choice: z.union([
        z.lazy(() => exports.GetAgentToolChoice2$inboundSchema),
        exports.GetAgentToolChoice1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.GetAgentModalities$inboundSchema)).optional(),
    web_search_options: z.lazy(() => exports.GetAgentWebSearchOptions$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "frequency_penalty": "frequencyPenalty",
        "max_tokens": "maxTokens",
        "max_completion_tokens": "maxCompletionTokens",
        "top_logprobs": "topLogprobs",
        "presence_penalty": "presencePenalty",
        "response_format": "responseFormat",
        "reasoning_effort": "reasoningEffort",
        "stream_options": "streamOptions",
        "top_p": "topP",
        "top_k": "topK",
        "tool_choice": "toolChoice",
        "parallel_tool_calls": "parallelToolCalls",
        "web_search_options": "webSearchOptions",
    });
});
/** @internal */
exports.GetAgentParameters$outboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.GetAgentAudio$outboundSchema)).optional(),
    frequencyPenalty: z.nullable(z.number()).optional(),
    maxTokens: z.nullable(z.number().int()).optional(),
    maxCompletionTokens: z.nullable(z.number().int()).optional(),
    logprobs: z.nullable(z.boolean()).optional(),
    topLogprobs: z.nullable(z.number().int()).optional(),
    n: z.nullable(z.number().int()).optional(),
    presencePenalty: z.nullable(z.number()).optional(),
    responseFormat: z.union([
        z.lazy(() => exports.GetAgentResponseFormat3$outboundSchema),
        z.lazy(() => exports.GetAgentResponseFormat1$outboundSchema),
        z.lazy(() => exports.GetAgentResponseFormat2$outboundSchema),
    ]).optional(),
    reasoningEffort: z.string().optional(),
    verbosity: z.string().optional(),
    seed: z.nullable(z.number()).optional(),
    stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
    streamOptions: z.nullable(z.lazy(() => exports.GetAgentStreamOptions$outboundSchema))
        .optional(),
    thinking: z.lazy(() => exports.GetAgentThinking$outboundSchema).optional(),
    temperature: z.nullable(z.number()).optional(),
    topP: z.nullable(z.number()).optional(),
    topK: z.nullable(z.number()).optional(),
    toolChoice: z.union([
        z.lazy(() => exports.GetAgentToolChoice2$outboundSchema),
        exports.GetAgentToolChoice1$outboundSchema,
    ]).optional(),
    parallelToolCalls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.GetAgentModalities$outboundSchema)).optional(),
    webSearchOptions: z.lazy(() => exports.GetAgentWebSearchOptions$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        frequencyPenalty: "frequency_penalty",
        maxTokens: "max_tokens",
        maxCompletionTokens: "max_completion_tokens",
        topLogprobs: "top_logprobs",
        presencePenalty: "presence_penalty",
        responseFormat: "response_format",
        reasoningEffort: "reasoning_effort",
        streamOptions: "stream_options",
        topP: "top_p",
        topK: "top_k",
        toolChoice: "tool_choice",
        parallelToolCalls: "parallel_tool_calls",
        webSearchOptions: "web_search_options",
    });
});
function getAgentParametersToJSON(getAgentParameters) {
    return JSON.stringify(exports.GetAgentParameters$outboundSchema.parse(getAgentParameters));
}
function getAgentParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentParameters' from JSON`);
}
/** @internal */
exports.GetAgentFallbackModelsVoice$inboundSchema = z.nativeEnum(exports.GetAgentFallbackModelsVoice);
/** @internal */
exports.GetAgentFallbackModelsVoice$outboundSchema = exports.GetAgentFallbackModelsVoice$inboundSchema;
/** @internal */
exports.GetAgentFallbackModelsFormat$inboundSchema = z.nativeEnum(exports.GetAgentFallbackModelsFormat);
/** @internal */
exports.GetAgentFallbackModelsFormat$outboundSchema = exports.GetAgentFallbackModelsFormat$inboundSchema;
/** @internal */
exports.GetAgentFallbackModelsAudio$inboundSchema = z.object({
    voice: exports.GetAgentFallbackModelsVoice$inboundSchema,
    format: exports.GetAgentFallbackModelsFormat$inboundSchema,
});
/** @internal */
exports.GetAgentFallbackModelsAudio$outboundSchema = z.object({
    voice: exports.GetAgentFallbackModelsVoice$outboundSchema,
    format: exports.GetAgentFallbackModelsFormat$outboundSchema,
});
function getAgentFallbackModelsAudioToJSON(getAgentFallbackModelsAudio) {
    return JSON.stringify(exports.GetAgentFallbackModelsAudio$outboundSchema.parse(getAgentFallbackModelsAudio));
}
function getAgentFallbackModelsAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsAudio' from JSON`);
}
/** @internal */
exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
/** @internal */
exports.GetAgentResponseFormatAgentsJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().optional(),
});
/** @internal */
exports.GetAgentResponseFormatAgentsJsonSchema$outboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().optional(),
});
function getAgentResponseFormatAgentsJsonSchemaToJSON(getAgentResponseFormatAgentsJsonSchema) {
    return JSON.stringify(exports.GetAgentResponseFormatAgentsJsonSchema$outboundSchema.parse(getAgentResponseFormatAgentsJsonSchema));
}
function getAgentResponseFormatAgentsJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormatAgentsJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormatAgentsJsonSchema' from JSON`);
}
/** @internal */
exports.GetAgentResponseFormatAgents3$inboundSchema = z.object({
    type: exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
    json_schema: z.lazy(() => exports.GetAgentResponseFormatAgentsJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.GetAgentResponseFormatAgents3$outboundSchema = z.object({
    type: exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
    jsonSchema: z.lazy(() => exports.GetAgentResponseFormatAgentsJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        jsonSchema: "json_schema",
    });
});
function getAgentResponseFormatAgents3ToJSON(getAgentResponseFormatAgents3) {
    return JSON.stringify(exports.GetAgentResponseFormatAgents3$outboundSchema.parse(getAgentResponseFormatAgents3));
}
function getAgentResponseFormatAgents3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormatAgents3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormatAgents3' from JSON`);
}
/** @internal */
exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType);
/** @internal */
exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
/** @internal */
exports.GetAgentResponseFormatAgents2$inboundSchema = z.object({
    type: exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema,
});
/** @internal */
exports.GetAgentResponseFormatAgents2$outboundSchema = z.object({
    type: exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema,
});
function getAgentResponseFormatAgents2ToJSON(getAgentResponseFormatAgents2) {
    return JSON.stringify(exports.GetAgentResponseFormatAgents2$outboundSchema.parse(getAgentResponseFormatAgents2));
}
function getAgentResponseFormatAgents2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormatAgents2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormatAgents2' from JSON`);
}
/** @internal */
exports.GetAgentResponseFormatAgentsResponse200Type$inboundSchema = z
    .nativeEnum(exports.GetAgentResponseFormatAgentsResponse200Type);
/** @internal */
exports.GetAgentResponseFormatAgentsResponse200Type$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200Type$inboundSchema;
/** @internal */
exports.GetAgentResponseFormatAgents1$inboundSchema = z.object({
    type: exports.GetAgentResponseFormatAgentsResponse200Type$inboundSchema,
});
/** @internal */
exports.GetAgentResponseFormatAgents1$outboundSchema = z.object({
    type: exports.GetAgentResponseFormatAgentsResponse200Type$outboundSchema,
});
function getAgentResponseFormatAgents1ToJSON(getAgentResponseFormatAgents1) {
    return JSON.stringify(exports.GetAgentResponseFormatAgents1$outboundSchema.parse(getAgentResponseFormatAgents1));
}
function getAgentResponseFormatAgents1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormatAgents1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormatAgents1' from JSON`);
}
/** @internal */
exports.GetAgentFallbackModelsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.GetAgentResponseFormatAgents3$inboundSchema),
    z.lazy(() => exports.GetAgentResponseFormatAgents1$inboundSchema),
    z.lazy(() => exports.GetAgentResponseFormatAgents2$inboundSchema),
]);
/** @internal */
exports.GetAgentFallbackModelsResponseFormat$outboundSchema = z.union([
    z.lazy(() => exports.GetAgentResponseFormatAgents3$outboundSchema),
    z.lazy(() => exports.GetAgentResponseFormatAgents1$outboundSchema),
    z.lazy(() => exports.GetAgentResponseFormatAgents2$outboundSchema),
]);
function getAgentFallbackModelsResponseFormatToJSON(getAgentFallbackModelsResponseFormat) {
    return JSON.stringify(exports.GetAgentFallbackModelsResponseFormat$outboundSchema.parse(getAgentFallbackModelsResponseFormat));
}
function getAgentFallbackModelsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsResponseFormat' from JSON`);
}
/** @internal */
exports.GetAgentFallbackModelsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.GetAgentFallbackModelsStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
function getAgentFallbackModelsStopToJSON(getAgentFallbackModelsStop) {
    return JSON.stringify(exports.GetAgentFallbackModelsStop$outboundSchema.parse(getAgentFallbackModelsStop));
}
function getAgentFallbackModelsStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsStop' from JSON`);
}
/** @internal */
exports.GetAgentFallbackModelsStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
/** @internal */
exports.GetAgentFallbackModelsStreamOptions$outboundSchema = z.object({
    includeUsage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        includeUsage: "include_usage",
    });
});
function getAgentFallbackModelsStreamOptionsToJSON(getAgentFallbackModelsStreamOptions) {
    return JSON.stringify(exports.GetAgentFallbackModelsStreamOptions$outboundSchema.parse(getAgentFallbackModelsStreamOptions));
}
function getAgentFallbackModelsStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsStreamOptions' from JSON`);
}
/** @internal */
exports.GetAgentFallbackModelsType$inboundSchema = z.nativeEnum(exports.GetAgentFallbackModelsType);
/** @internal */
exports.GetAgentFallbackModelsType$outboundSchema = exports.GetAgentFallbackModelsType$inboundSchema;
/** @internal */
exports.GetAgentFallbackModelsThinking$inboundSchema = z.object({
    type: exports.GetAgentFallbackModelsType$inboundSchema,
    budget_tokens: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "budget_tokens": "budgetTokens",
    });
});
/** @internal */
exports.GetAgentFallbackModelsThinking$outboundSchema = z.object({
    type: exports.GetAgentFallbackModelsType$outboundSchema,
    budgetTokens: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        budgetTokens: "budget_tokens",
    });
});
function getAgentFallbackModelsThinkingToJSON(getAgentFallbackModelsThinking) {
    return JSON.stringify(exports.GetAgentFallbackModelsThinking$outboundSchema.parse(getAgentFallbackModelsThinking));
}
function getAgentFallbackModelsThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsThinking' from JSON`);
}
/** @internal */
exports.GetAgentToolChoiceAgentsType$inboundSchema = z.nativeEnum(exports.GetAgentToolChoiceAgentsType);
/** @internal */
exports.GetAgentToolChoiceAgentsType$outboundSchema = exports.GetAgentToolChoiceAgentsType$inboundSchema;
/** @internal */
exports.GetAgentToolChoiceAgentsFunction$inboundSchema = z.object({
    name: z.string().optional(),
});
/** @internal */
exports.GetAgentToolChoiceAgentsFunction$outboundSchema = z.object({
    name: z.string().optional(),
});
function getAgentToolChoiceAgentsFunctionToJSON(getAgentToolChoiceAgentsFunction) {
    return JSON.stringify(exports.GetAgentToolChoiceAgentsFunction$outboundSchema.parse(getAgentToolChoiceAgentsFunction));
}
function getAgentToolChoiceAgentsFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentToolChoiceAgentsFunction' from JSON`);
}
/** @internal */
exports.GetAgentToolChoiceAgents2$inboundSchema = z.object({
    type: exports.GetAgentToolChoiceAgentsType$inboundSchema.optional(),
    function: z.lazy(() => exports.GetAgentToolChoiceAgentsFunction$inboundSchema),
});
/** @internal */
exports.GetAgentToolChoiceAgents2$outboundSchema = z.object({
    type: exports.GetAgentToolChoiceAgentsType$outboundSchema.optional(),
    function: z.lazy(() => exports.GetAgentToolChoiceAgentsFunction$outboundSchema),
});
function getAgentToolChoiceAgents2ToJSON(getAgentToolChoiceAgents2) {
    return JSON.stringify(exports.GetAgentToolChoiceAgents2$outboundSchema.parse(getAgentToolChoiceAgents2));
}
function getAgentToolChoiceAgents2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentToolChoiceAgents2' from JSON`);
}
/** @internal */
exports.GetAgentToolChoiceAgents1$inboundSchema = z.nativeEnum(exports.GetAgentToolChoiceAgents1);
/** @internal */
exports.GetAgentToolChoiceAgents1$outboundSchema = exports.GetAgentToolChoiceAgents1$inboundSchema;
/** @internal */
exports.GetAgentFallbackModelsToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.GetAgentToolChoiceAgents2$inboundSchema),
    exports.GetAgentToolChoiceAgents1$inboundSchema,
]);
/** @internal */
exports.GetAgentFallbackModelsToolChoice$outboundSchema = z.union([
    z.lazy(() => exports.GetAgentToolChoiceAgents2$outboundSchema),
    exports.GetAgentToolChoiceAgents1$outboundSchema,
]);
function getAgentFallbackModelsToolChoiceToJSON(getAgentFallbackModelsToolChoice) {
    return JSON.stringify(exports.GetAgentFallbackModelsToolChoice$outboundSchema.parse(getAgentFallbackModelsToolChoice));
}
function getAgentFallbackModelsToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsToolChoice' from JSON`);
}
/** @internal */
exports.GetAgentFallbackModelsModalities$inboundSchema = z.nativeEnum(exports.GetAgentFallbackModelsModalities);
/** @internal */
exports.GetAgentFallbackModelsModalities$outboundSchema = exports.GetAgentFallbackModelsModalities$inboundSchema;
/** @internal */
exports.GetAgentFallbackModelsWebSearchOptions$inboundSchema = z.object({
    enabled: z.boolean().optional(),
});
/** @internal */
exports.GetAgentFallbackModelsWebSearchOptions$outboundSchema = z.object({
    enabled: z.boolean().optional(),
});
function getAgentFallbackModelsWebSearchOptionsToJSON(getAgentFallbackModelsWebSearchOptions) {
    return JSON.stringify(exports.GetAgentFallbackModelsWebSearchOptions$outboundSchema.parse(getAgentFallbackModelsWebSearchOptions));
}
function getAgentFallbackModelsWebSearchOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsWebSearchOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsWebSearchOptions' from JSON`);
}
/** @internal */
exports.GetAgentFallbackModelsParameters$inboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.GetAgentFallbackModelsAudio$inboundSchema))
        .optional(),
    frequency_penalty: z.nullable(z.number()).optional(),
    max_tokens: z.nullable(z.number().int()).optional(),
    max_completion_tokens: z.nullable(z.number().int()).optional(),
    logprobs: z.nullable(z.boolean()).optional(),
    top_logprobs: z.nullable(z.number().int()).optional(),
    n: z.nullable(z.number().int()).optional(),
    presence_penalty: z.nullable(z.number()).optional(),
    response_format: z.union([
        z.lazy(() => exports.GetAgentResponseFormatAgents3$inboundSchema),
        z.lazy(() => exports.GetAgentResponseFormatAgents1$inboundSchema),
        z.lazy(() => exports.GetAgentResponseFormatAgents2$inboundSchema),
    ]).optional(),
    reasoning_effort: z.string().optional(),
    verbosity: z.string().optional(),
    seed: z.nullable(z.number()).optional(),
    stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
    stream_options: z.nullable(z.lazy(() => exports.GetAgentFallbackModelsStreamOptions$inboundSchema)).optional(),
    thinking: z.lazy(() => exports.GetAgentFallbackModelsThinking$inboundSchema)
        .optional(),
    temperature: z.nullable(z.number()).optional(),
    top_p: z.nullable(z.number()).optional(),
    top_k: z.nullable(z.number()).optional(),
    tool_choice: z.union([
        z.lazy(() => exports.GetAgentToolChoiceAgents2$inboundSchema),
        exports.GetAgentToolChoiceAgents1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.GetAgentFallbackModelsModalities$inboundSchema)).optional(),
    web_search_options: z.lazy(() => exports.GetAgentFallbackModelsWebSearchOptions$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "frequency_penalty": "frequencyPenalty",
        "max_tokens": "maxTokens",
        "max_completion_tokens": "maxCompletionTokens",
        "top_logprobs": "topLogprobs",
        "presence_penalty": "presencePenalty",
        "response_format": "responseFormat",
        "reasoning_effort": "reasoningEffort",
        "stream_options": "streamOptions",
        "top_p": "topP",
        "top_k": "topK",
        "tool_choice": "toolChoice",
        "parallel_tool_calls": "parallelToolCalls",
        "web_search_options": "webSearchOptions",
    });
});
/** @internal */
exports.GetAgentFallbackModelsParameters$outboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.GetAgentFallbackModelsAudio$outboundSchema))
        .optional(),
    frequencyPenalty: z.nullable(z.number()).optional(),
    maxTokens: z.nullable(z.number().int()).optional(),
    maxCompletionTokens: z.nullable(z.number().int()).optional(),
    logprobs: z.nullable(z.boolean()).optional(),
    topLogprobs: z.nullable(z.number().int()).optional(),
    n: z.nullable(z.number().int()).optional(),
    presencePenalty: z.nullable(z.number()).optional(),
    responseFormat: z.union([
        z.lazy(() => exports.GetAgentResponseFormatAgents3$outboundSchema),
        z.lazy(() => exports.GetAgentResponseFormatAgents1$outboundSchema),
        z.lazy(() => exports.GetAgentResponseFormatAgents2$outboundSchema),
    ]).optional(),
    reasoningEffort: z.string().optional(),
    verbosity: z.string().optional(),
    seed: z.nullable(z.number()).optional(),
    stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
    streamOptions: z.nullable(z.lazy(() => exports.GetAgentFallbackModelsStreamOptions$outboundSchema)).optional(),
    thinking: z.lazy(() => exports.GetAgentFallbackModelsThinking$outboundSchema)
        .optional(),
    temperature: z.nullable(z.number()).optional(),
    topP: z.nullable(z.number()).optional(),
    topK: z.nullable(z.number()).optional(),
    toolChoice: z.union([
        z.lazy(() => exports.GetAgentToolChoiceAgents2$outboundSchema),
        exports.GetAgentToolChoiceAgents1$outboundSchema,
    ]).optional(),
    parallelToolCalls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.GetAgentFallbackModelsModalities$outboundSchema)).optional(),
    webSearchOptions: z.lazy(() => exports.GetAgentFallbackModelsWebSearchOptions$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        frequencyPenalty: "frequency_penalty",
        maxTokens: "max_tokens",
        maxCompletionTokens: "max_completion_tokens",
        topLogprobs: "top_logprobs",
        presencePenalty: "presence_penalty",
        responseFormat: "response_format",
        reasoningEffort: "reasoning_effort",
        streamOptions: "stream_options",
        topP: "top_p",
        topK: "top_k",
        toolChoice: "tool_choice",
        parallelToolCalls: "parallel_tool_calls",
        webSearchOptions: "web_search_options",
    });
});
function getAgentFallbackModelsParametersToJSON(getAgentFallbackModelsParameters) {
    return JSON.stringify(exports.GetAgentFallbackModelsParameters$outboundSchema.parse(getAgentFallbackModelsParameters));
}
function getAgentFallbackModelsParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsParameters' from JSON`);
}
/** @internal */
exports.GetAgentFallbackModels2$inboundSchema = z.object({
    id: z.string(),
    integration_id: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.GetAgentFallbackModelsParameters$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "integration_id": "integrationId",
    });
});
/** @internal */
exports.GetAgentFallbackModels2$outboundSchema = z.object({
    id: z.string(),
    integrationId: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.GetAgentFallbackModelsParameters$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        integrationId: "integration_id",
    });
});
function getAgentFallbackModels2ToJSON(getAgentFallbackModels2) {
    return JSON.stringify(exports.GetAgentFallbackModels2$outboundSchema.parse(getAgentFallbackModels2));
}
function getAgentFallbackModels2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModels2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModels2' from JSON`);
}
/** @internal */
exports.GetAgentFallbackModels$inboundSchema = z.union([z.lazy(() => exports.GetAgentFallbackModels2$inboundSchema), z.string()]);
/** @internal */
exports.GetAgentFallbackModels$outboundSchema = z.union([z.lazy(() => exports.GetAgentFallbackModels2$outboundSchema), z.string()]);
function getAgentFallbackModelsToJSON(getAgentFallbackModels) {
    return JSON.stringify(exports.GetAgentFallbackModels$outboundSchema.parse(getAgentFallbackModels));
}
function getAgentFallbackModelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModels' from JSON`);
}
/** @internal */
exports.GetAgentModel$inboundSchema = z.object({
    id: z.string(),
    integration_id: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.GetAgentParameters$inboundSchema).optional(),
    fallback_models: z.nullable(z.array(z.union([
        z.lazy(() => exports.GetAgentFallbackModels2$inboundSchema),
        z.string(),
    ]))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "integration_id": "integrationId",
        "fallback_models": "fallbackModels",
    });
});
/** @internal */
exports.GetAgentModel$outboundSchema = z.object({
    id: z.string(),
    integrationId: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.GetAgentParameters$outboundSchema).optional(),
    fallbackModels: z.nullable(z.array(z.union([
        z.lazy(() => exports.GetAgentFallbackModels2$outboundSchema),
        z.string(),
    ]))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        integrationId: "integration_id",
        fallbackModels: "fallback_models",
    });
});
function getAgentModelToJSON(getAgentModel) {
    return JSON.stringify(exports.GetAgentModel$outboundSchema.parse(getAgentModel));
}
function getAgentModelFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentModel' from JSON`);
}
/** @internal */
exports.GetAgentTeamOfAgents$inboundSchema = z.object({
    key: z.string(),
    role: z.string().optional(),
});
/** @internal */
exports.GetAgentTeamOfAgents$outboundSchema = z.object({
    key: z.string(),
    role: z.string().optional(),
});
function getAgentTeamOfAgentsToJSON(getAgentTeamOfAgents) {
    return JSON.stringify(exports.GetAgentTeamOfAgents$outboundSchema.parse(getAgentTeamOfAgents));
}
function getAgentTeamOfAgentsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentTeamOfAgents' from JSON`);
}
/** @internal */
exports.GetAgentMetrics$inboundSchema = z.object({
    total_cost: z.number().default(0),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "total_cost": "totalCost",
    });
});
/** @internal */
exports.GetAgentMetrics$outboundSchema = z.object({
    totalCost: z.number().default(0),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        totalCost: "total_cost",
    });
});
function getAgentMetricsToJSON(getAgentMetrics) {
    return JSON.stringify(exports.GetAgentMetrics$outboundSchema.parse(getAgentMetrics));
}
function getAgentMetricsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentMetrics' from JSON`);
}
/** @internal */
exports.GetAgentKnowledgeBases$inboundSchema = z.object({
    knowledge_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "knowledge_id": "knowledgeId",
    });
});
/** @internal */
exports.GetAgentKnowledgeBases$outboundSchema = z.object({
    knowledgeId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        knowledgeId: "knowledge_id",
    });
});
function getAgentKnowledgeBasesToJSON(getAgentKnowledgeBases) {
    return JSON.stringify(exports.GetAgentKnowledgeBases$outboundSchema.parse(getAgentKnowledgeBases));
}
function getAgentKnowledgeBasesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentKnowledgeBases' from JSON`);
}
/** @internal */
exports.GetAgentHiddenPanels$inboundSchema = z.nativeEnum(exports.GetAgentHiddenPanels);
/** @internal */
exports.GetAgentHiddenPanels$outboundSchema = exports.GetAgentHiddenPanels$inboundSchema;
/** @internal */
exports.GetAgentResponseBody$inboundSchema = z.object({
    _id: z.string(),
    key: z.string(),
    workspace_id: z.string(),
    project_id: z.string(),
    created_by_id: z.nullable(z.string()).optional(),
    updated_by_id: z.nullable(z.string()).optional(),
    created: z.string().optional(),
    updated: z.string().optional(),
    role: z.string(),
    description: z.string(),
    system_prompt: z.string().optional(),
    instructions: z.string(),
    status: exports.GetAgentStatus$inboundSchema,
    settings: z.lazy(() => exports.GetAgentSettings$inboundSchema).optional(),
    model: z.lazy(() => exports.GetAgentModel$inboundSchema),
    version_hash: z.string().optional(),
    path: z.string(),
    memory_stores: z.array(z.string()),
    team_of_agents: z.array(z.lazy(() => exports.GetAgentTeamOfAgents$inboundSchema)),
    metrics: z.lazy(() => exports.GetAgentMetrics$inboundSchema).optional(),
    variables: z.record(z.any()).optional(),
    knowledge_bases: z.array(z.lazy(() => exports.GetAgentKnowledgeBases$inboundSchema))
        .optional(),
    hidden_panels: z.array(exports.GetAgentHiddenPanels$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "workspace_id": "workspaceId",
        "project_id": "projectId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "system_prompt": "systemPrompt",
        "version_hash": "versionHash",
        "memory_stores": "memoryStores",
        "team_of_agents": "teamOfAgents",
        "knowledge_bases": "knowledgeBases",
        "hidden_panels": "hiddenPanels",
    });
});
/** @internal */
exports.GetAgentResponseBody$outboundSchema = z.object({
    id: z.string(),
    key: z.string(),
    workspaceId: z.string(),
    projectId: z.string(),
    createdById: z.nullable(z.string()).optional(),
    updatedById: z.nullable(z.string()).optional(),
    created: z.string().optional(),
    updated: z.string().optional(),
    role: z.string(),
    description: z.string(),
    systemPrompt: z.string().optional(),
    instructions: z.string(),
    status: exports.GetAgentStatus$outboundSchema,
    settings: z.lazy(() => exports.GetAgentSettings$outboundSchema).optional(),
    model: z.lazy(() => exports.GetAgentModel$outboundSchema),
    versionHash: z.string().optional(),
    path: z.string(),
    memoryStores: z.array(z.string()),
    teamOfAgents: z.array(z.lazy(() => exports.GetAgentTeamOfAgents$outboundSchema)),
    metrics: z.lazy(() => exports.GetAgentMetrics$outboundSchema).optional(),
    variables: z.record(z.any()).optional(),
    knowledgeBases: z.array(z.lazy(() => exports.GetAgentKnowledgeBases$outboundSchema))
        .optional(),
    hiddenPanels: z.array(exports.GetAgentHiddenPanels$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        workspaceId: "workspace_id",
        projectId: "project_id",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        systemPrompt: "system_prompt",
        versionHash: "version_hash",
        memoryStores: "memory_stores",
        teamOfAgents: "team_of_agents",
        knowledgeBases: "knowledge_bases",
        hiddenPanels: "hidden_panels",
    });
});
function getAgentResponseBodyToJSON(getAgentResponseBody) {
    return JSON.stringify(exports.GetAgentResponseBody$outboundSchema.parse(getAgentResponseBody));
}
function getAgentResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseBody' from JSON`);
}
//# sourceMappingURL=getagent.js.map