"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.ListAgentsFormat$inboundSchema = exports.ListAgentsVoice$outboundSchema = exports.ListAgentsVoice$inboundSchema = exports.ListAgentsSettings$outboundSchema = exports.ListAgentsSettings$inboundSchema = exports.ListAgentsGuardrails$outboundSchema = exports.ListAgentsGuardrails$inboundSchema = exports.ListAgentsAgentsExecuteOn$outboundSchema = exports.ListAgentsAgentsExecuteOn$inboundSchema = exports.ListAgentsEvaluators$outboundSchema = exports.ListAgentsEvaluators$inboundSchema = exports.ListAgentsExecuteOn$outboundSchema = exports.ListAgentsExecuteOn$inboundSchema = exports.ListAgentsTools$outboundSchema = exports.ListAgentsTools$inboundSchema = exports.ListAgentsConditions$outboundSchema = exports.ListAgentsConditions$inboundSchema = exports.ListAgentsToolApprovalRequired$outboundSchema = exports.ListAgentsToolApprovalRequired$inboundSchema = exports.ListAgentsStatus$outboundSchema = exports.ListAgentsStatus$inboundSchema = exports.ListAgentsObject$outboundSchema = exports.ListAgentsObject$inboundSchema = exports.ListAgentsRequest$outboundSchema = exports.ListAgentsRequest$inboundSchema = exports.ListAgentsFallbackModelConfigurationModalities = exports.ListAgentsToolChoiceAgents1 = exports.ListAgentsToolChoiceAgentsType = exports.ListAgentsFallbackModelConfigurationThinkingLevel = exports.ListAgentsFallbackModelConfigurationType = exports.ListAgentsResponseFormatAgentsResponse200Type = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = exports.ListAgentsFallbackModelConfigurationFormat = exports.ListAgentsFallbackModelConfigurationVoice = exports.ListAgentsModalities = exports.ListAgentsToolChoice1 = exports.ListAgentsToolChoiceType = exports.ListAgentsThinkingLevel = exports.ListAgentsType = exports.ListAgentsResponseFormatType = exports.ListAgentsResponseFormatAgentsType = exports.ListAgentsResponseFormatAgentsResponseType = exports.ListAgentsFormat = exports.ListAgentsVoice = exports.ListAgentsAgentsExecuteOn = exports.ListAgentsExecuteOn = exports.ListAgentsToolApprovalRequired = exports.ListAgentsStatus = exports.ListAgentsObject = void 0;
exports.ListAgentsFallbackModelConfigurationAudio$inboundSchema = exports.ListAgentsFallbackModelConfigurationFormat$outboundSchema = exports.ListAgentsFallbackModelConfigurationFormat$inboundSchema = exports.ListAgentsFallbackModelConfigurationVoice$outboundSchema = exports.ListAgentsFallbackModelConfigurationVoice$inboundSchema = exports.ListAgentsRetry$outboundSchema = exports.ListAgentsRetry$inboundSchema = exports.ListAgentsParameters$outboundSchema = exports.ListAgentsParameters$inboundSchema = exports.ListAgentsModalities$outboundSchema = exports.ListAgentsModalities$inboundSchema = exports.ListAgentsToolChoice$outboundSchema = exports.ListAgentsToolChoice$inboundSchema = exports.ListAgentsToolChoice1$outboundSchema = exports.ListAgentsToolChoice1$inboundSchema = exports.ListAgentsToolChoice2$outboundSchema = exports.ListAgentsToolChoice2$inboundSchema = exports.ListAgentsToolChoiceFunction$outboundSchema = exports.ListAgentsToolChoiceFunction$inboundSchema = exports.ListAgentsToolChoiceType$outboundSchema = exports.ListAgentsToolChoiceType$inboundSchema = exports.ListAgentsThinking$outboundSchema = exports.ListAgentsThinking$inboundSchema = exports.ListAgentsThinkingLevel$outboundSchema = exports.ListAgentsThinkingLevel$inboundSchema = exports.ListAgentsType$outboundSchema = exports.ListAgentsType$inboundSchema = exports.ListAgentsStreamOptions$outboundSchema = exports.ListAgentsStreamOptions$inboundSchema = exports.ListAgentsStop$outboundSchema = exports.ListAgentsStop$inboundSchema = exports.ListAgentsResponseFormat$outboundSchema = exports.ListAgentsResponseFormat$inboundSchema = exports.ListAgentsResponseFormatText$outboundSchema = exports.ListAgentsResponseFormatText$inboundSchema = exports.ListAgentsResponseFormatType$outboundSchema = exports.ListAgentsResponseFormatType$inboundSchema = exports.ListAgentsResponseFormatJSONObject$outboundSchema = exports.ListAgentsResponseFormatJSONObject$inboundSchema = exports.ListAgentsResponseFormatAgentsType$outboundSchema = exports.ListAgentsResponseFormatAgentsType$inboundSchema = exports.ListAgentsResponseFormatAgentsJSONSchema$outboundSchema = exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema = exports.ListAgentsResponseFormatJsonSchema$outboundSchema = exports.ListAgentsResponseFormatJsonSchema$inboundSchema = exports.ListAgentsResponseFormatAgentsResponseType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponseType$inboundSchema = exports.ListAgentsAudio$outboundSchema = exports.ListAgentsAudio$inboundSchema = exports.ListAgentsFormat$outboundSchema = void 0;
exports.ListAgentsMetrics$inboundSchema = exports.ListAgentsTeamOfAgents$outboundSchema = exports.ListAgentsTeamOfAgents$inboundSchema = exports.ListAgentsModel$outboundSchema = exports.ListAgentsModel$inboundSchema = exports.ListAgentsFallbackModelConfiguration$outboundSchema = exports.ListAgentsFallbackModelConfiguration$inboundSchema = exports.ListAgentsFallbackModelConfiguration2$outboundSchema = exports.ListAgentsFallbackModelConfiguration2$inboundSchema = exports.ListAgentsFallbackModelConfigurationParameters$outboundSchema = exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema = exports.ListAgentsFallbackModelConfigurationModalities$outboundSchema = exports.ListAgentsFallbackModelConfigurationModalities$inboundSchema = exports.ListAgentsFallbackModelConfigurationToolChoice$outboundSchema = exports.ListAgentsFallbackModelConfigurationToolChoice$inboundSchema = exports.ListAgentsToolChoiceAgents1$outboundSchema = exports.ListAgentsToolChoiceAgents1$inboundSchema = exports.ListAgentsToolChoiceAgents2$outboundSchema = exports.ListAgentsToolChoiceAgents2$inboundSchema = exports.ListAgentsToolChoiceAgentsFunction$outboundSchema = exports.ListAgentsToolChoiceAgentsFunction$inboundSchema = exports.ListAgentsToolChoiceAgentsType$outboundSchema = exports.ListAgentsToolChoiceAgentsType$inboundSchema = exports.ListAgentsFallbackModelConfigurationThinking$outboundSchema = exports.ListAgentsFallbackModelConfigurationThinking$inboundSchema = exports.ListAgentsFallbackModelConfigurationThinkingLevel$outboundSchema = exports.ListAgentsFallbackModelConfigurationThinkingLevel$inboundSchema = exports.ListAgentsFallbackModelConfigurationType$outboundSchema = exports.ListAgentsFallbackModelConfigurationType$inboundSchema = exports.ListAgentsFallbackModelConfigurationStreamOptions$outboundSchema = exports.ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema = exports.ListAgentsFallbackModelConfigurationStop$outboundSchema = exports.ListAgentsFallbackModelConfigurationStop$inboundSchema = exports.ListAgentsFallbackModelConfigurationResponseFormat$outboundSchema = exports.ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema = exports.ListAgentsResponseFormatAgentsText$outboundSchema = exports.ListAgentsResponseFormatAgentsText$inboundSchema = exports.ListAgentsResponseFormatAgentsResponse200Type$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200Type$inboundSchema = exports.ListAgentsResponseFormatAgentsJSONObject$outboundSchema = exports.ListAgentsResponseFormatAgentsJSONObject$inboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema = exports.ListAgentsResponseFormatAgentsResponseJsonSchema$outboundSchema = exports.ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.ListAgentsFallbackModelConfigurationAudio$outboundSchema = void 0;
exports.ListAgentsResponseBody$outboundSchema = exports.ListAgentsResponseBody$inboundSchema = exports.ListAgentsData$outboundSchema = exports.ListAgentsData$inboundSchema = exports.ListAgentsKnowledgeBases$outboundSchema = exports.ListAgentsKnowledgeBases$inboundSchema = exports.ListAgentsMetrics$outboundSchema = void 0;
exports.listAgentsRequestToJSON = listAgentsRequestToJSON;
exports.listAgentsRequestFromJSON = listAgentsRequestFromJSON;
exports.listAgentsConditionsToJSON = listAgentsConditionsToJSON;
exports.listAgentsConditionsFromJSON = listAgentsConditionsFromJSON;
exports.listAgentsToolsToJSON = listAgentsToolsToJSON;
exports.listAgentsToolsFromJSON = listAgentsToolsFromJSON;
exports.listAgentsEvaluatorsToJSON = listAgentsEvaluatorsToJSON;
exports.listAgentsEvaluatorsFromJSON = listAgentsEvaluatorsFromJSON;
exports.listAgentsGuardrailsToJSON = listAgentsGuardrailsToJSON;
exports.listAgentsGuardrailsFromJSON = listAgentsGuardrailsFromJSON;
exports.listAgentsSettingsToJSON = listAgentsSettingsToJSON;
exports.listAgentsSettingsFromJSON = listAgentsSettingsFromJSON;
exports.listAgentsAudioToJSON = listAgentsAudioToJSON;
exports.listAgentsAudioFromJSON = listAgentsAudioFromJSON;
exports.listAgentsResponseFormatJsonSchemaToJSON = listAgentsResponseFormatJsonSchemaToJSON;
exports.listAgentsResponseFormatJsonSchemaFromJSON = listAgentsResponseFormatJsonSchemaFromJSON;
exports.listAgentsResponseFormatAgentsJSONSchemaToJSON = listAgentsResponseFormatAgentsJSONSchemaToJSON;
exports.listAgentsResponseFormatAgentsJSONSchemaFromJSON = listAgentsResponseFormatAgentsJSONSchemaFromJSON;
exports.listAgentsResponseFormatJSONObjectToJSON = listAgentsResponseFormatJSONObjectToJSON;
exports.listAgentsResponseFormatJSONObjectFromJSON = listAgentsResponseFormatJSONObjectFromJSON;
exports.listAgentsResponseFormatTextToJSON = listAgentsResponseFormatTextToJSON;
exports.listAgentsResponseFormatTextFromJSON = listAgentsResponseFormatTextFromJSON;
exports.listAgentsResponseFormatToJSON = listAgentsResponseFormatToJSON;
exports.listAgentsResponseFormatFromJSON = listAgentsResponseFormatFromJSON;
exports.listAgentsStopToJSON = listAgentsStopToJSON;
exports.listAgentsStopFromJSON = listAgentsStopFromJSON;
exports.listAgentsStreamOptionsToJSON = listAgentsStreamOptionsToJSON;
exports.listAgentsStreamOptionsFromJSON = listAgentsStreamOptionsFromJSON;
exports.listAgentsThinkingToJSON = listAgentsThinkingToJSON;
exports.listAgentsThinkingFromJSON = listAgentsThinkingFromJSON;
exports.listAgentsToolChoiceFunctionToJSON = listAgentsToolChoiceFunctionToJSON;
exports.listAgentsToolChoiceFunctionFromJSON = listAgentsToolChoiceFunctionFromJSON;
exports.listAgentsToolChoice2ToJSON = listAgentsToolChoice2ToJSON;
exports.listAgentsToolChoice2FromJSON = listAgentsToolChoice2FromJSON;
exports.listAgentsToolChoiceToJSON = listAgentsToolChoiceToJSON;
exports.listAgentsToolChoiceFromJSON = listAgentsToolChoiceFromJSON;
exports.listAgentsParametersToJSON = listAgentsParametersToJSON;
exports.listAgentsParametersFromJSON = listAgentsParametersFromJSON;
exports.listAgentsRetryToJSON = listAgentsRetryToJSON;
exports.listAgentsRetryFromJSON = listAgentsRetryFromJSON;
exports.listAgentsFallbackModelConfigurationAudioToJSON = listAgentsFallbackModelConfigurationAudioToJSON;
exports.listAgentsFallbackModelConfigurationAudioFromJSON = listAgentsFallbackModelConfigurationAudioFromJSON;
exports.listAgentsResponseFormatAgentsResponseJsonSchemaToJSON = listAgentsResponseFormatAgentsResponseJsonSchemaToJSON;
exports.listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON = listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON;
exports.listAgentsResponseFormatAgentsResponse200JSONSchemaToJSON = listAgentsResponseFormatAgentsResponse200JSONSchemaToJSON;
exports.listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON = listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON;
exports.listAgentsResponseFormatAgentsJSONObjectToJSON = listAgentsResponseFormatAgentsJSONObjectToJSON;
exports.listAgentsResponseFormatAgentsJSONObjectFromJSON = listAgentsResponseFormatAgentsJSONObjectFromJSON;
exports.listAgentsResponseFormatAgentsTextToJSON = listAgentsResponseFormatAgentsTextToJSON;
exports.listAgentsResponseFormatAgentsTextFromJSON = listAgentsResponseFormatAgentsTextFromJSON;
exports.listAgentsFallbackModelConfigurationResponseFormatToJSON = listAgentsFallbackModelConfigurationResponseFormatToJSON;
exports.listAgentsFallbackModelConfigurationResponseFormatFromJSON = listAgentsFallbackModelConfigurationResponseFormatFromJSON;
exports.listAgentsFallbackModelConfigurationStopToJSON = listAgentsFallbackModelConfigurationStopToJSON;
exports.listAgentsFallbackModelConfigurationStopFromJSON = listAgentsFallbackModelConfigurationStopFromJSON;
exports.listAgentsFallbackModelConfigurationStreamOptionsToJSON = listAgentsFallbackModelConfigurationStreamOptionsToJSON;
exports.listAgentsFallbackModelConfigurationStreamOptionsFromJSON = listAgentsFallbackModelConfigurationStreamOptionsFromJSON;
exports.listAgentsFallbackModelConfigurationThinkingToJSON = listAgentsFallbackModelConfigurationThinkingToJSON;
exports.listAgentsFallbackModelConfigurationThinkingFromJSON = listAgentsFallbackModelConfigurationThinkingFromJSON;
exports.listAgentsToolChoiceAgentsFunctionToJSON = listAgentsToolChoiceAgentsFunctionToJSON;
exports.listAgentsToolChoiceAgentsFunctionFromJSON = listAgentsToolChoiceAgentsFunctionFromJSON;
exports.listAgentsToolChoiceAgents2ToJSON = listAgentsToolChoiceAgents2ToJSON;
exports.listAgentsToolChoiceAgents2FromJSON = listAgentsToolChoiceAgents2FromJSON;
exports.listAgentsFallbackModelConfigurationToolChoiceToJSON = listAgentsFallbackModelConfigurationToolChoiceToJSON;
exports.listAgentsFallbackModelConfigurationToolChoiceFromJSON = listAgentsFallbackModelConfigurationToolChoiceFromJSON;
exports.listAgentsFallbackModelConfigurationParametersToJSON = listAgentsFallbackModelConfigurationParametersToJSON;
exports.listAgentsFallbackModelConfigurationParametersFromJSON = listAgentsFallbackModelConfigurationParametersFromJSON;
exports.listAgentsFallbackModelConfiguration2ToJSON = listAgentsFallbackModelConfiguration2ToJSON;
exports.listAgentsFallbackModelConfiguration2FromJSON = listAgentsFallbackModelConfiguration2FromJSON;
exports.listAgentsFallbackModelConfigurationToJSON = listAgentsFallbackModelConfigurationToJSON;
exports.listAgentsFallbackModelConfigurationFromJSON = listAgentsFallbackModelConfigurationFromJSON;
exports.listAgentsModelToJSON = listAgentsModelToJSON;
exports.listAgentsModelFromJSON = listAgentsModelFromJSON;
exports.listAgentsTeamOfAgentsToJSON = listAgentsTeamOfAgentsToJSON;
exports.listAgentsTeamOfAgentsFromJSON = listAgentsTeamOfAgentsFromJSON;
exports.listAgentsMetricsToJSON = listAgentsMetricsToJSON;
exports.listAgentsMetricsFromJSON = listAgentsMetricsFromJSON;
exports.listAgentsKnowledgeBasesToJSON = listAgentsKnowledgeBasesToJSON;
exports.listAgentsKnowledgeBasesFromJSON = listAgentsKnowledgeBasesFromJSON;
exports.listAgentsDataToJSON = listAgentsDataToJSON;
exports.listAgentsDataFromJSON = listAgentsDataFromJSON;
exports.listAgentsResponseBodyToJSON = listAgentsResponseBodyToJSON;
exports.listAgentsResponseBodyFromJSON = listAgentsResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.ListAgentsObject = {
    List: "list",
};
/**
 * 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.ListAgentsStatus = {
    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.ListAgentsToolApprovalRequired = {
    All: "all",
    RespectTool: "respect_tool",
    None: "none",
};
/**
 * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
 */
exports.ListAgentsExecuteOn = {
    Input: "input",
    Output: "output",
};
/**
 * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
 */
exports.ListAgentsAgentsExecuteOn = {
    Input: "input",
    Output: "output",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.ListAgentsVoice = {
    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.ListAgentsFormat = {
    Wav: "wav",
    Mp3: "mp3",
    Flac: "flac",
    Opus: "opus",
    Pcm16: "pcm16",
};
exports.ListAgentsResponseFormatAgentsResponseType = {
    JsonSchema: "json_schema",
};
exports.ListAgentsResponseFormatAgentsType = {
    JsonObject: "json_object",
};
exports.ListAgentsResponseFormatType = {
    Text: "text",
};
/**
 * Enables or disables the thinking mode capability
 */
exports.ListAgentsType = {
    Enabled: "enabled",
    Disabled: "disabled",
};
/**
 * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
 */
exports.ListAgentsThinkingLevel = {
    Low: "low",
    High: "high",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.ListAgentsToolChoiceType = {
    Function: "function",
};
exports.ListAgentsToolChoice1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.ListAgentsModalities = {
    Text: "text",
    Audio: "audio",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.ListAgentsFallbackModelConfigurationVoice = {
    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.ListAgentsFallbackModelConfigurationFormat = {
    Wav: "wav",
    Mp3: "mp3",
    Flac: "flac",
    Opus: "opus",
    Pcm16: "pcm16",
};
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = {
    JsonSchema: "json_schema",
};
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType = {
    JsonObject: "json_object",
};
exports.ListAgentsResponseFormatAgentsResponse200Type = {
    Text: "text",
};
/**
 * Enables or disables the thinking mode capability
 */
exports.ListAgentsFallbackModelConfigurationType = {
    Enabled: "enabled",
    Disabled: "disabled",
};
/**
 * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
 */
exports.ListAgentsFallbackModelConfigurationThinkingLevel = {
    Low: "low",
    High: "high",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.ListAgentsToolChoiceAgentsType = {
    Function: "function",
};
exports.ListAgentsToolChoiceAgents1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.ListAgentsFallbackModelConfigurationModalities = {
    Text: "text",
    Audio: "audio",
};
/** @internal */
exports.ListAgentsRequest$inboundSchema = z.object({
    limit: z.number().optional(),
    starting_after: z.string().optional(),
    ending_before: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "starting_after": "startingAfter",
        "ending_before": "endingBefore",
    });
});
/** @internal */
exports.ListAgentsRequest$outboundSchema = z.object({
    limit: z.number().optional(),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        startingAfter: "starting_after",
        endingBefore: "ending_before",
    });
});
function listAgentsRequestToJSON(listAgentsRequest) {
    return JSON.stringify(exports.ListAgentsRequest$outboundSchema.parse(listAgentsRequest));
}
function listAgentsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsRequest' from JSON`);
}
/** @internal */
exports.ListAgentsObject$inboundSchema = z.nativeEnum(exports.ListAgentsObject);
/** @internal */
exports.ListAgentsObject$outboundSchema = exports.ListAgentsObject$inboundSchema;
/** @internal */
exports.ListAgentsStatus$inboundSchema = z.nativeEnum(exports.ListAgentsStatus);
/** @internal */
exports.ListAgentsStatus$outboundSchema = exports.ListAgentsStatus$inboundSchema;
/** @internal */
exports.ListAgentsToolApprovalRequired$inboundSchema = z.nativeEnum(exports.ListAgentsToolApprovalRequired);
/** @internal */
exports.ListAgentsToolApprovalRequired$outboundSchema = exports.ListAgentsToolApprovalRequired$inboundSchema;
/** @internal */
exports.ListAgentsConditions$inboundSchema = z.object({
    condition: z.string(),
    operator: z.string(),
    value: z.string(),
});
/** @internal */
exports.ListAgentsConditions$outboundSchema = z.object({
    condition: z.string(),
    operator: z.string(),
    value: z.string(),
});
function listAgentsConditionsToJSON(listAgentsConditions) {
    return JSON.stringify(exports.ListAgentsConditions$outboundSchema.parse(listAgentsConditions));
}
function listAgentsConditionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsConditions' from JSON`);
}
/** @internal */
exports.ListAgentsTools$inboundSchema = z.object({
    id: z.string(),
    key: z.string().optional(),
    action_type: z.string(),
    display_name: z.string().optional(),
    description: z.string().optional(),
    requires_approval: z.boolean().default(false),
    tool_id: z.string().optional(),
    conditions: z.array(z.lazy(() => exports.ListAgentsConditions$inboundSchema))
        .optional(),
    timeout: z.number().default(120),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "action_type": "actionType",
        "display_name": "displayName",
        "requires_approval": "requiresApproval",
        "tool_id": "toolId",
    });
});
/** @internal */
exports.ListAgentsTools$outboundSchema = z.object({
    id: z.string(),
    key: z.string().optional(),
    actionType: z.string(),
    displayName: z.string().optional(),
    description: z.string().optional(),
    requiresApproval: z.boolean().default(false),
    toolId: z.string().optional(),
    conditions: z.array(z.lazy(() => exports.ListAgentsConditions$outboundSchema))
        .optional(),
    timeout: z.number().default(120),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        actionType: "action_type",
        displayName: "display_name",
        requiresApproval: "requires_approval",
        toolId: "tool_id",
    });
});
function listAgentsToolsToJSON(listAgentsTools) {
    return JSON.stringify(exports.ListAgentsTools$outboundSchema.parse(listAgentsTools));
}
function listAgentsToolsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsTools' from JSON`);
}
/** @internal */
exports.ListAgentsExecuteOn$inboundSchema = z.nativeEnum(exports.ListAgentsExecuteOn);
/** @internal */
exports.ListAgentsExecuteOn$outboundSchema = exports.ListAgentsExecuteOn$inboundSchema;
/** @internal */
exports.ListAgentsEvaluators$inboundSchema = z.object({
    id: z.string(),
    sample_rate: z.number().default(50),
    execute_on: exports.ListAgentsExecuteOn$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "sample_rate": "sampleRate",
        "execute_on": "executeOn",
    });
});
/** @internal */
exports.ListAgentsEvaluators$outboundSchema = z.object({
    id: z.string(),
    sampleRate: z.number().default(50),
    executeOn: exports.ListAgentsExecuteOn$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sampleRate: "sample_rate",
        executeOn: "execute_on",
    });
});
function listAgentsEvaluatorsToJSON(listAgentsEvaluators) {
    return JSON.stringify(exports.ListAgentsEvaluators$outboundSchema.parse(listAgentsEvaluators));
}
function listAgentsEvaluatorsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsEvaluators$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsEvaluators' from JSON`);
}
/** @internal */
exports.ListAgentsAgentsExecuteOn$inboundSchema = z.nativeEnum(exports.ListAgentsAgentsExecuteOn);
/** @internal */
exports.ListAgentsAgentsExecuteOn$outboundSchema = exports.ListAgentsAgentsExecuteOn$inboundSchema;
/** @internal */
exports.ListAgentsGuardrails$inboundSchema = z.object({
    id: z.string(),
    sample_rate: z.number().default(50),
    execute_on: exports.ListAgentsAgentsExecuteOn$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "sample_rate": "sampleRate",
        "execute_on": "executeOn",
    });
});
/** @internal */
exports.ListAgentsGuardrails$outboundSchema = z.object({
    id: z.string(),
    sampleRate: z.number().default(50),
    executeOn: exports.ListAgentsAgentsExecuteOn$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sampleRate: "sample_rate",
        executeOn: "execute_on",
    });
});
function listAgentsGuardrailsToJSON(listAgentsGuardrails) {
    return JSON.stringify(exports.ListAgentsGuardrails$outboundSchema.parse(listAgentsGuardrails));
}
function listAgentsGuardrailsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsGuardrails' from JSON`);
}
/** @internal */
exports.ListAgentsSettings$inboundSchema = z.object({
    max_iterations: z.number().int().default(100),
    max_execution_time: z.number().int().default(300),
    tool_approval_required: exports.ListAgentsToolApprovalRequired$inboundSchema.default("respect_tool"),
    tools: z.array(z.lazy(() => exports.ListAgentsTools$inboundSchema)).optional(),
    evaluators: z.array(z.lazy(() => exports.ListAgentsEvaluators$inboundSchema))
        .optional(),
    guardrails: z.array(z.lazy(() => exports.ListAgentsGuardrails$inboundSchema))
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "max_iterations": "maxIterations",
        "max_execution_time": "maxExecutionTime",
        "tool_approval_required": "toolApprovalRequired",
    });
});
/** @internal */
exports.ListAgentsSettings$outboundSchema = z.object({
    maxIterations: z.number().int().default(100),
    maxExecutionTime: z.number().int().default(300),
    toolApprovalRequired: exports.ListAgentsToolApprovalRequired$outboundSchema.default("respect_tool"),
    tools: z.array(z.lazy(() => exports.ListAgentsTools$outboundSchema)).optional(),
    evaluators: z.array(z.lazy(() => exports.ListAgentsEvaluators$outboundSchema))
        .optional(),
    guardrails: z.array(z.lazy(() => exports.ListAgentsGuardrails$outboundSchema))
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        maxIterations: "max_iterations",
        maxExecutionTime: "max_execution_time",
        toolApprovalRequired: "tool_approval_required",
    });
});
function listAgentsSettingsToJSON(listAgentsSettings) {
    return JSON.stringify(exports.ListAgentsSettings$outboundSchema.parse(listAgentsSettings));
}
function listAgentsSettingsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsSettings' from JSON`);
}
/** @internal */
exports.ListAgentsVoice$inboundSchema = z.nativeEnum(exports.ListAgentsVoice);
/** @internal */
exports.ListAgentsVoice$outboundSchema = exports.ListAgentsVoice$inboundSchema;
/** @internal */
exports.ListAgentsFormat$inboundSchema = z.nativeEnum(exports.ListAgentsFormat);
/** @internal */
exports.ListAgentsFormat$outboundSchema = exports.ListAgentsFormat$inboundSchema;
/** @internal */
exports.ListAgentsAudio$inboundSchema = z.object({
    voice: exports.ListAgentsVoice$inboundSchema,
    format: exports.ListAgentsFormat$inboundSchema,
});
/** @internal */
exports.ListAgentsAudio$outboundSchema = z.object({
    voice: exports.ListAgentsVoice$outboundSchema,
    format: exports.ListAgentsFormat$outboundSchema,
});
function listAgentsAudioToJSON(listAgentsAudio) {
    return JSON.stringify(exports.ListAgentsAudio$outboundSchema.parse(listAgentsAudio));
}
function listAgentsAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsAudio' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsResponseType$inboundSchema = z
    .nativeEnum(exports.ListAgentsResponseFormatAgentsResponseType);
/** @internal */
exports.ListAgentsResponseFormatAgentsResponseType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponseType$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormatJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
/** @internal */
exports.ListAgentsResponseFormatJsonSchema$outboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
function listAgentsResponseFormatJsonSchemaToJSON(listAgentsResponseFormatJsonSchema) {
    return JSON.stringify(exports.ListAgentsResponseFormatJsonSchema$outboundSchema.parse(listAgentsResponseFormatJsonSchema));
}
function listAgentsResponseFormatJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatJsonSchema' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponseType$inboundSchema,
    json_schema: z.lazy(() => exports.ListAgentsResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.ListAgentsResponseFormatAgentsJSONSchema$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponseType$outboundSchema,
    jsonSchema: z.lazy(() => exports.ListAgentsResponseFormatJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        jsonSchema: "json_schema",
    });
});
function listAgentsResponseFormatAgentsJSONSchemaToJSON(listAgentsResponseFormatAgentsJSONSchema) {
    return JSON.stringify(exports.ListAgentsResponseFormatAgentsJSONSchema$outboundSchema.parse(listAgentsResponseFormatAgentsJSONSchema));
}
function listAgentsResponseFormatAgentsJSONSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatAgentsJSONSchema' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentsResponseFormatAgentsType);
/** @internal */
exports.ListAgentsResponseFormatAgentsType$outboundSchema = exports.ListAgentsResponseFormatAgentsType$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormatJSONObject$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsType$inboundSchema,
});
/** @internal */
exports.ListAgentsResponseFormatJSONObject$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsType$outboundSchema,
});
function listAgentsResponseFormatJSONObjectToJSON(listAgentsResponseFormatJSONObject) {
    return JSON.stringify(exports.ListAgentsResponseFormatJSONObject$outboundSchema.parse(listAgentsResponseFormatJSONObject));
}
function listAgentsResponseFormatJSONObjectFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatJSONObject' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatType$inboundSchema = z.nativeEnum(exports.ListAgentsResponseFormatType);
/** @internal */
exports.ListAgentsResponseFormatType$outboundSchema = exports.ListAgentsResponseFormatType$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormatText$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatType$inboundSchema,
});
/** @internal */
exports.ListAgentsResponseFormatText$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatType$outboundSchema,
});
function listAgentsResponseFormatTextToJSON(listAgentsResponseFormatText) {
    return JSON.stringify(exports.ListAgentsResponseFormatText$outboundSchema.parse(listAgentsResponseFormatText));
}
function listAgentsResponseFormatTextFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatText' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatText$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatJSONObject$inboundSchema),
]);
/** @internal */
exports.ListAgentsResponseFormat$outboundSchema = z.union([
    z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONSchema$outboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatText$outboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatJSONObject$outboundSchema),
]);
function listAgentsResponseFormatToJSON(listAgentsResponseFormat) {
    return JSON.stringify(exports.ListAgentsResponseFormat$outboundSchema.parse(listAgentsResponseFormat));
}
function listAgentsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormat' from JSON`);
}
/** @internal */
exports.ListAgentsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.ListAgentsStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
function listAgentsStopToJSON(listAgentsStop) {
    return JSON.stringify(exports.ListAgentsStop$outboundSchema.parse(listAgentsStop));
}
function listAgentsStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsStop' from JSON`);
}
/** @internal */
exports.ListAgentsStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
/** @internal */
exports.ListAgentsStreamOptions$outboundSchema = z.object({
    includeUsage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        includeUsage: "include_usage",
    });
});
function listAgentsStreamOptionsToJSON(listAgentsStreamOptions) {
    return JSON.stringify(exports.ListAgentsStreamOptions$outboundSchema.parse(listAgentsStreamOptions));
}
function listAgentsStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsStreamOptions' from JSON`);
}
/** @internal */
exports.ListAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentsType);
/** @internal */
exports.ListAgentsType$outboundSchema = exports.ListAgentsType$inboundSchema;
/** @internal */
exports.ListAgentsThinkingLevel$inboundSchema = z.nativeEnum(exports.ListAgentsThinkingLevel);
/** @internal */
exports.ListAgentsThinkingLevel$outboundSchema = exports.ListAgentsThinkingLevel$inboundSchema;
/** @internal */
exports.ListAgentsThinking$inboundSchema = z.object({
    type: exports.ListAgentsType$inboundSchema,
    budget_tokens: z.number(),
    thinking_level: exports.ListAgentsThinkingLevel$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "budget_tokens": "budgetTokens",
        "thinking_level": "thinkingLevel",
    });
});
/** @internal */
exports.ListAgentsThinking$outboundSchema = z.object({
    type: exports.ListAgentsType$outboundSchema,
    budgetTokens: z.number(),
    thinkingLevel: exports.ListAgentsThinkingLevel$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        budgetTokens: "budget_tokens",
        thinkingLevel: "thinking_level",
    });
});
function listAgentsThinkingToJSON(listAgentsThinking) {
    return JSON.stringify(exports.ListAgentsThinking$outboundSchema.parse(listAgentsThinking));
}
function listAgentsThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsThinking' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoiceType$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoiceType);
/** @internal */
exports.ListAgentsToolChoiceType$outboundSchema = exports.ListAgentsToolChoiceType$inboundSchema;
/** @internal */
exports.ListAgentsToolChoiceFunction$inboundSchema = z.object({
    name: z.string().optional(),
});
/** @internal */
exports.ListAgentsToolChoiceFunction$outboundSchema = z.object({
    name: z.string().optional(),
});
function listAgentsToolChoiceFunctionToJSON(listAgentsToolChoiceFunction) {
    return JSON.stringify(exports.ListAgentsToolChoiceFunction$outboundSchema.parse(listAgentsToolChoiceFunction));
}
function listAgentsToolChoiceFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsToolChoiceFunction' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoice2$inboundSchema = z.object({
    type: exports.ListAgentsToolChoiceType$inboundSchema.optional(),
    function: z.lazy(() => exports.ListAgentsToolChoiceFunction$inboundSchema),
});
/** @internal */
exports.ListAgentsToolChoice2$outboundSchema = z.object({
    type: exports.ListAgentsToolChoiceType$outboundSchema.optional(),
    function: z.lazy(() => exports.ListAgentsToolChoiceFunction$outboundSchema),
});
function listAgentsToolChoice2ToJSON(listAgentsToolChoice2) {
    return JSON.stringify(exports.ListAgentsToolChoice2$outboundSchema.parse(listAgentsToolChoice2));
}
function listAgentsToolChoice2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsToolChoice2' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoice1$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoice1);
/** @internal */
exports.ListAgentsToolChoice1$outboundSchema = exports.ListAgentsToolChoice1$inboundSchema;
/** @internal */
exports.ListAgentsToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsToolChoice2$inboundSchema),
    exports.ListAgentsToolChoice1$inboundSchema,
]);
/** @internal */
exports.ListAgentsToolChoice$outboundSchema = z.union([
    z.lazy(() => exports.ListAgentsToolChoice2$outboundSchema),
    exports.ListAgentsToolChoice1$outboundSchema,
]);
function listAgentsToolChoiceToJSON(listAgentsToolChoice) {
    return JSON.stringify(exports.ListAgentsToolChoice$outboundSchema.parse(listAgentsToolChoice));
}
function listAgentsToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsToolChoice' from JSON`);
}
/** @internal */
exports.ListAgentsModalities$inboundSchema = z.nativeEnum(exports.ListAgentsModalities);
/** @internal */
exports.ListAgentsModalities$outboundSchema = exports.ListAgentsModalities$inboundSchema;
/** @internal */
exports.ListAgentsParameters$inboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.ListAgentsAudio$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.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatText$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatJSONObject$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.ListAgentsStreamOptions$inboundSchema)).optional(),
    thinking: z.lazy(() => exports.ListAgentsThinking$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.ListAgentsToolChoice2$inboundSchema),
        exports.ListAgentsToolChoice1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.ListAgentsModalities$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",
    });
});
/** @internal */
exports.ListAgentsParameters$outboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.ListAgentsAudio$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.ListAgentsResponseFormatAgentsJSONSchema$outboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatText$outboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatJSONObject$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.ListAgentsStreamOptions$outboundSchema)).optional(),
    thinking: z.lazy(() => exports.ListAgentsThinking$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.ListAgentsToolChoice2$outboundSchema),
        exports.ListAgentsToolChoice1$outboundSchema,
    ]).optional(),
    parallelToolCalls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.ListAgentsModalities$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",
    });
});
function listAgentsParametersToJSON(listAgentsParameters) {
    return JSON.stringify(exports.ListAgentsParameters$outboundSchema.parse(listAgentsParameters));
}
function listAgentsParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsParameters' from JSON`);
}
/** @internal */
exports.ListAgentsRetry$inboundSchema = z.object({
    count: z.number().default(3),
    on_codes: z.array(z.number()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "on_codes": "onCodes",
    });
});
/** @internal */
exports.ListAgentsRetry$outboundSchema = z.object({
    count: z.number().default(3),
    onCodes: z.array(z.number()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        onCodes: "on_codes",
    });
});
function listAgentsRetryToJSON(listAgentsRetry) {
    return JSON.stringify(exports.ListAgentsRetry$outboundSchema.parse(listAgentsRetry));
}
function listAgentsRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsRetry' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationVoice$inboundSchema = z
    .nativeEnum(exports.ListAgentsFallbackModelConfigurationVoice);
/** @internal */
exports.ListAgentsFallbackModelConfigurationVoice$outboundSchema = exports.ListAgentsFallbackModelConfigurationVoice$inboundSchema;
/** @internal */
exports.ListAgentsFallbackModelConfigurationFormat$inboundSchema = z
    .nativeEnum(exports.ListAgentsFallbackModelConfigurationFormat);
/** @internal */
exports.ListAgentsFallbackModelConfigurationFormat$outboundSchema = exports.ListAgentsFallbackModelConfigurationFormat$inboundSchema;
/** @internal */
exports.ListAgentsFallbackModelConfigurationAudio$inboundSchema = z.object({
    voice: exports.ListAgentsFallbackModelConfigurationVoice$inboundSchema,
    format: exports.ListAgentsFallbackModelConfigurationFormat$inboundSchema,
});
/** @internal */
exports.ListAgentsFallbackModelConfigurationAudio$outboundSchema = z.object({
    voice: exports.ListAgentsFallbackModelConfigurationVoice$outboundSchema,
    format: exports.ListAgentsFallbackModelConfigurationFormat$outboundSchema,
});
function listAgentsFallbackModelConfigurationAudioToJSON(listAgentsFallbackModelConfigurationAudio) {
    return JSON.stringify(exports.ListAgentsFallbackModelConfigurationAudio$outboundSchema.parse(listAgentsFallbackModelConfigurationAudio));
}
function listAgentsFallbackModelConfigurationAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationAudio' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
/** @internal */
exports.ListAgentsResponseFormatAgentsResponseJsonSchema$outboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
function listAgentsResponseFormatAgentsResponseJsonSchemaToJSON(listAgentsResponseFormatAgentsResponseJsonSchema) {
    return JSON.stringify(exports.ListAgentsResponseFormatAgentsResponseJsonSchema$outboundSchema.parse(listAgentsResponseFormatAgentsResponseJsonSchema));
}
function listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatAgentsResponseJsonSchema' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
    json_schema: z.lazy(() => exports.ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
    jsonSchema: z.lazy(() => exports.ListAgentsResponseFormatAgentsResponseJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        jsonSchema: "json_schema",
    });
});
function listAgentsResponseFormatAgentsResponse200JSONSchemaToJSON(listAgentsResponseFormatAgentsResponse200JSONSchema) {
    return JSON.stringify(exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema.parse(listAgentsResponseFormatAgentsResponse200JSONSchema));
}
function listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatAgentsResponse200JSONSchema' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType);
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormatAgentsJSONObject$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema,
});
/** @internal */
exports.ListAgentsResponseFormatAgentsJSONObject$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema,
});
function listAgentsResponseFormatAgentsJSONObjectToJSON(listAgentsResponseFormatAgentsJSONObject) {
    return JSON.stringify(exports.ListAgentsResponseFormatAgentsJSONObject$outboundSchema.parse(listAgentsResponseFormatAgentsJSONObject));
}
function listAgentsResponseFormatAgentsJSONObjectFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatAgentsJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatAgentsJSONObject' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200Type$inboundSchema = z
    .nativeEnum(exports.ListAgentsResponseFormatAgentsResponse200Type);
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200Type$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200Type$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormatAgentsText$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200Type$inboundSchema,
});
/** @internal */
exports.ListAgentsResponseFormatAgentsText$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200Type$outboundSchema,
});
function listAgentsResponseFormatAgentsTextToJSON(listAgentsResponseFormatAgentsText) {
    return JSON.stringify(exports.ListAgentsResponseFormatAgentsText$outboundSchema.parse(listAgentsResponseFormatAgentsText));
}
function listAgentsResponseFormatAgentsTextFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatAgentsText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatAgentsText' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatAgentsText$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
]);
/** @internal */
exports.ListAgentsFallbackModelConfigurationResponseFormat$outboundSchema = z.union([
    z.lazy(() => exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatAgentsText$outboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONObject$outboundSchema),
]);
function listAgentsFallbackModelConfigurationResponseFormatToJSON(listAgentsFallbackModelConfigurationResponseFormat) {
    return JSON.stringify(exports.ListAgentsFallbackModelConfigurationResponseFormat$outboundSchema.parse(listAgentsFallbackModelConfigurationResponseFormat));
}
function listAgentsFallbackModelConfigurationResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationResponseFormat' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.ListAgentsFallbackModelConfigurationStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
function listAgentsFallbackModelConfigurationStopToJSON(listAgentsFallbackModelConfigurationStop) {
    return JSON.stringify(exports.ListAgentsFallbackModelConfigurationStop$outboundSchema.parse(listAgentsFallbackModelConfigurationStop));
}
function listAgentsFallbackModelConfigurationStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationStop' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
/** @internal */
exports.ListAgentsFallbackModelConfigurationStreamOptions$outboundSchema = z.object({
    includeUsage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        includeUsage: "include_usage",
    });
});
function listAgentsFallbackModelConfigurationStreamOptionsToJSON(listAgentsFallbackModelConfigurationStreamOptions) {
    return JSON.stringify(exports.ListAgentsFallbackModelConfigurationStreamOptions$outboundSchema.parse(listAgentsFallbackModelConfigurationStreamOptions));
}
function listAgentsFallbackModelConfigurationStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationStreamOptions' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationType$inboundSchema = z
    .nativeEnum(exports.ListAgentsFallbackModelConfigurationType);
/** @internal */
exports.ListAgentsFallbackModelConfigurationType$outboundSchema = exports.ListAgentsFallbackModelConfigurationType$inboundSchema;
/** @internal */
exports.ListAgentsFallbackModelConfigurationThinkingLevel$inboundSchema = z
    .nativeEnum(exports.ListAgentsFallbackModelConfigurationThinkingLevel);
/** @internal */
exports.ListAgentsFallbackModelConfigurationThinkingLevel$outboundSchema = exports.ListAgentsFallbackModelConfigurationThinkingLevel$inboundSchema;
/** @internal */
exports.ListAgentsFallbackModelConfigurationThinking$inboundSchema = z.object({
    type: exports.ListAgentsFallbackModelConfigurationType$inboundSchema,
    budget_tokens: z.number(),
    thinking_level: exports.ListAgentsFallbackModelConfigurationThinkingLevel$inboundSchema
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "budget_tokens": "budgetTokens",
        "thinking_level": "thinkingLevel",
    });
});
/** @internal */
exports.ListAgentsFallbackModelConfigurationThinking$outboundSchema = z.object({
    type: exports.ListAgentsFallbackModelConfigurationType$outboundSchema,
    budgetTokens: z.number(),
    thinkingLevel: exports.ListAgentsFallbackModelConfigurationThinkingLevel$outboundSchema
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        budgetTokens: "budget_tokens",
        thinkingLevel: "thinking_level",
    });
});
function listAgentsFallbackModelConfigurationThinkingToJSON(listAgentsFallbackModelConfigurationThinking) {
    return JSON.stringify(exports.ListAgentsFallbackModelConfigurationThinking$outboundSchema.parse(listAgentsFallbackModelConfigurationThinking));
}
function listAgentsFallbackModelConfigurationThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationThinking' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoiceAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoiceAgentsType);
/** @internal */
exports.ListAgentsToolChoiceAgentsType$outboundSchema = exports.ListAgentsToolChoiceAgentsType$inboundSchema;
/** @internal */
exports.ListAgentsToolChoiceAgentsFunction$inboundSchema = z.object({
    name: z.string().optional(),
});
/** @internal */
exports.ListAgentsToolChoiceAgentsFunction$outboundSchema = z.object({
    name: z.string().optional(),
});
function listAgentsToolChoiceAgentsFunctionToJSON(listAgentsToolChoiceAgentsFunction) {
    return JSON.stringify(exports.ListAgentsToolChoiceAgentsFunction$outboundSchema.parse(listAgentsToolChoiceAgentsFunction));
}
function listAgentsToolChoiceAgentsFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsToolChoiceAgentsFunction' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoiceAgents2$inboundSchema = z.object({
    type: exports.ListAgentsToolChoiceAgentsType$inboundSchema.optional(),
    function: z.lazy(() => exports.ListAgentsToolChoiceAgentsFunction$inboundSchema),
});
/** @internal */
exports.ListAgentsToolChoiceAgents2$outboundSchema = z.object({
    type: exports.ListAgentsToolChoiceAgentsType$outboundSchema.optional(),
    function: z.lazy(() => exports.ListAgentsToolChoiceAgentsFunction$outboundSchema),
});
function listAgentsToolChoiceAgents2ToJSON(listAgentsToolChoiceAgents2) {
    return JSON.stringify(exports.ListAgentsToolChoiceAgents2$outboundSchema.parse(listAgentsToolChoiceAgents2));
}
function listAgentsToolChoiceAgents2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsToolChoiceAgents2' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoiceAgents1$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoiceAgents1);
/** @internal */
exports.ListAgentsToolChoiceAgents1$outboundSchema = exports.ListAgentsToolChoiceAgents1$inboundSchema;
/** @internal */
exports.ListAgentsFallbackModelConfigurationToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsToolChoiceAgents2$inboundSchema),
    exports.ListAgentsToolChoiceAgents1$inboundSchema,
]);
/** @internal */
exports.ListAgentsFallbackModelConfigurationToolChoice$outboundSchema = z.union([
    z.lazy(() => exports.ListAgentsToolChoiceAgents2$outboundSchema),
    exports.ListAgentsToolChoiceAgents1$outboundSchema,
]);
function listAgentsFallbackModelConfigurationToolChoiceToJSON(listAgentsFallbackModelConfigurationToolChoice) {
    return JSON.stringify(exports.ListAgentsFallbackModelConfigurationToolChoice$outboundSchema.parse(listAgentsFallbackModelConfigurationToolChoice));
}
function listAgentsFallbackModelConfigurationToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationToolChoice' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationModalities$inboundSchema = z
    .nativeEnum(exports.ListAgentsFallbackModelConfigurationModalities);
/** @internal */
exports.ListAgentsFallbackModelConfigurationModalities$outboundSchema = exports.ListAgentsFallbackModelConfigurationModalities$inboundSchema;
/** @internal */
exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.ListAgentsFallbackModelConfigurationAudio$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.ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatAgentsText$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONObject$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.ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema)).optional(),
    thinking: z.lazy(() => exports.ListAgentsFallbackModelConfigurationThinking$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.ListAgentsToolChoiceAgents2$inboundSchema),
        exports.ListAgentsToolChoiceAgents1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.ListAgentsFallbackModelConfigurationModalities$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",
    });
});
/** @internal */
exports.ListAgentsFallbackModelConfigurationParameters$outboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.ListAgentsFallbackModelConfigurationAudio$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.ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatAgentsText$outboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONObject$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.ListAgentsFallbackModelConfigurationStreamOptions$outboundSchema)).optional(),
    thinking: z.lazy(() => exports.ListAgentsFallbackModelConfigurationThinking$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.ListAgentsToolChoiceAgents2$outboundSchema),
        exports.ListAgentsToolChoiceAgents1$outboundSchema,
    ]).optional(),
    parallelToolCalls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.ListAgentsFallbackModelConfigurationModalities$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",
    });
});
function listAgentsFallbackModelConfigurationParametersToJSON(listAgentsFallbackModelConfigurationParameters) {
    return JSON.stringify(exports.ListAgentsFallbackModelConfigurationParameters$outboundSchema.parse(listAgentsFallbackModelConfigurationParameters));
}
function listAgentsFallbackModelConfigurationParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationParameters' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfiguration2$inboundSchema = z.object({
    id: z.string(),
    parameters: z.lazy(() => exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema).optional(),
});
/** @internal */
exports.ListAgentsFallbackModelConfiguration2$outboundSchema = z.object({
    id: z.string(),
    parameters: z.lazy(() => exports.ListAgentsFallbackModelConfigurationParameters$outboundSchema).optional(),
});
function listAgentsFallbackModelConfiguration2ToJSON(listAgentsFallbackModelConfiguration2) {
    return JSON.stringify(exports.ListAgentsFallbackModelConfiguration2$outboundSchema.parse(listAgentsFallbackModelConfiguration2));
}
function listAgentsFallbackModelConfiguration2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfiguration2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfiguration2' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfiguration$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsFallbackModelConfiguration2$inboundSchema),
    z.string(),
]);
/** @internal */
exports.ListAgentsFallbackModelConfiguration$outboundSchema = z.union([
    z.lazy(() => exports.ListAgentsFallbackModelConfiguration2$outboundSchema),
    z.string(),
]);
function listAgentsFallbackModelConfigurationToJSON(listAgentsFallbackModelConfiguration) {
    return JSON.stringify(exports.ListAgentsFallbackModelConfiguration$outboundSchema.parse(listAgentsFallbackModelConfiguration));
}
function listAgentsFallbackModelConfigurationFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfiguration' from JSON`);
}
/** @internal */
exports.ListAgentsModel$inboundSchema = z.object({
    id: z.string(),
    integration_id: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.ListAgentsParameters$inboundSchema).optional(),
    retry: z.lazy(() => exports.ListAgentsRetry$inboundSchema).optional(),
    fallback_models: z.nullable(z.array(z.union([
        z.lazy(() => exports.ListAgentsFallbackModelConfiguration2$inboundSchema),
        z.string(),
    ]))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "integration_id": "integrationId",
        "fallback_models": "fallbackModels",
    });
});
/** @internal */
exports.ListAgentsModel$outboundSchema = z.object({
    id: z.string(),
    integrationId: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.ListAgentsParameters$outboundSchema).optional(),
    retry: z.lazy(() => exports.ListAgentsRetry$outboundSchema).optional(),
    fallbackModels: z.nullable(z.array(z.union([
        z.lazy(() => exports.ListAgentsFallbackModelConfiguration2$outboundSchema),
        z.string(),
    ]))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        integrationId: "integration_id",
        fallbackModels: "fallback_models",
    });
});
function listAgentsModelToJSON(listAgentsModel) {
    return JSON.stringify(exports.ListAgentsModel$outboundSchema.parse(listAgentsModel));
}
function listAgentsModelFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsModel' from JSON`);
}
/** @internal */
exports.ListAgentsTeamOfAgents$inboundSchema = z.object({
    key: z.string(),
    role: z.string().optional(),
});
/** @internal */
exports.ListAgentsTeamOfAgents$outboundSchema = z.object({
    key: z.string(),
    role: z.string().optional(),
});
function listAgentsTeamOfAgentsToJSON(listAgentsTeamOfAgents) {
    return JSON.stringify(exports.ListAgentsTeamOfAgents$outboundSchema.parse(listAgentsTeamOfAgents));
}
function listAgentsTeamOfAgentsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsTeamOfAgents' from JSON`);
}
/** @internal */
exports.ListAgentsMetrics$inboundSchema = z.object({
    total_cost: z.number().default(0),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "total_cost": "totalCost",
    });
});
/** @internal */
exports.ListAgentsMetrics$outboundSchema = z.object({
    totalCost: z.number().default(0),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        totalCost: "total_cost",
    });
});
function listAgentsMetricsToJSON(listAgentsMetrics) {
    return JSON.stringify(exports.ListAgentsMetrics$outboundSchema.parse(listAgentsMetrics));
}
function listAgentsMetricsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsMetrics' from JSON`);
}
/** @internal */
exports.ListAgentsKnowledgeBases$inboundSchema = z.object({
    knowledge_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "knowledge_id": "knowledgeId",
    });
});
/** @internal */
exports.ListAgentsKnowledgeBases$outboundSchema = z.object({
    knowledgeId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        knowledgeId: "knowledge_id",
    });
});
function listAgentsKnowledgeBasesToJSON(listAgentsKnowledgeBases) {
    return JSON.stringify(exports.ListAgentsKnowledgeBases$outboundSchema.parse(listAgentsKnowledgeBases));
}
function listAgentsKnowledgeBasesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsKnowledgeBases' from JSON`);
}
/** @internal */
exports.ListAgentsData$inboundSchema = z.object({
    _id: z.string(),
    key: z.string(),
    display_name: 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.ListAgentsStatus$inboundSchema,
    settings: z.lazy(() => exports.ListAgentsSettings$inboundSchema).optional(),
    model: z.lazy(() => exports.ListAgentsModel$inboundSchema),
    version_hash: z.string().optional(),
    path: z.string(),
    memory_stores: z.array(z.string()),
    team_of_agents: z.array(z.lazy(() => exports.ListAgentsTeamOfAgents$inboundSchema)),
    metrics: z.lazy(() => exports.ListAgentsMetrics$inboundSchema).optional(),
    variables: z.record(z.any()).optional(),
    knowledge_bases: z.array(z.lazy(() => exports.ListAgentsKnowledgeBases$inboundSchema))
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "display_name": "displayName",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "system_prompt": "systemPrompt",
        "version_hash": "versionHash",
        "memory_stores": "memoryStores",
        "team_of_agents": "teamOfAgents",
        "knowledge_bases": "knowledgeBases",
    });
});
/** @internal */
exports.ListAgentsData$outboundSchema = z.object({
    id: z.string(),
    key: z.string(),
    displayName: 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.ListAgentsStatus$outboundSchema,
    settings: z.lazy(() => exports.ListAgentsSettings$outboundSchema).optional(),
    model: z.lazy(() => exports.ListAgentsModel$outboundSchema),
    versionHash: z.string().optional(),
    path: z.string(),
    memoryStores: z.array(z.string()),
    teamOfAgents: z.array(z.lazy(() => exports.ListAgentsTeamOfAgents$outboundSchema)),
    metrics: z.lazy(() => exports.ListAgentsMetrics$outboundSchema).optional(),
    variables: z.record(z.any()).optional(),
    knowledgeBases: z.array(z.lazy(() => exports.ListAgentsKnowledgeBases$outboundSchema))
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        displayName: "display_name",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        systemPrompt: "system_prompt",
        versionHash: "version_hash",
        memoryStores: "memory_stores",
        teamOfAgents: "team_of_agents",
        knowledgeBases: "knowledge_bases",
    });
});
function listAgentsDataToJSON(listAgentsData) {
    return JSON.stringify(exports.ListAgentsData$outboundSchema.parse(listAgentsData));
}
function listAgentsDataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsData' from JSON`);
}
/** @internal */
exports.ListAgentsResponseBody$inboundSchema = z.object({
    object: exports.ListAgentsObject$inboundSchema,
    data: z.array(z.lazy(() => exports.ListAgentsData$inboundSchema)),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
/** @internal */
exports.ListAgentsResponseBody$outboundSchema = z.object({
    object: exports.ListAgentsObject$outboundSchema,
    data: z.array(z.lazy(() => exports.ListAgentsData$outboundSchema)),
    hasMore: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        hasMore: "has_more",
    });
});
function listAgentsResponseBodyToJSON(listAgentsResponseBody) {
    return JSON.stringify(exports.ListAgentsResponseBody$outboundSchema.parse(listAgentsResponseBody));
}
function listAgentsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseBody' from JSON`);
}
//# sourceMappingURL=listagents.js.map