"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.RetrieveAgentRequestAudio$outboundSchema = exports.RetrieveAgentRequestAudio$inboundSchema = exports.RetrieveAgentRequestFormat$outboundSchema = exports.RetrieveAgentRequestFormat$inboundSchema = exports.RetrieveAgentRequestVoice$outboundSchema = exports.RetrieveAgentRequestVoice$inboundSchema = exports.RetrieveAgentRequestSettings$outboundSchema = exports.RetrieveAgentRequestSettings$inboundSchema = exports.RetrieveAgentRequestGuardrails$outboundSchema = exports.RetrieveAgentRequestGuardrails$inboundSchema = exports.RetrieveAgentRequestAgentsExecuteOn$outboundSchema = exports.RetrieveAgentRequestAgentsExecuteOn$inboundSchema = exports.RetrieveAgentRequestEvaluators$outboundSchema = exports.RetrieveAgentRequestEvaluators$inboundSchema = exports.RetrieveAgentRequestExecuteOn$outboundSchema = exports.RetrieveAgentRequestExecuteOn$inboundSchema = exports.RetrieveAgentRequestTools$outboundSchema = exports.RetrieveAgentRequestTools$inboundSchema = exports.RetrieveAgentRequestConditions$outboundSchema = exports.RetrieveAgentRequestConditions$inboundSchema = exports.RetrieveAgentRequestToolApprovalRequired$outboundSchema = exports.RetrieveAgentRequestToolApprovalRequired$inboundSchema = exports.RetrieveAgentRequestStatus$outboundSchema = exports.RetrieveAgentRequestStatus$inboundSchema = exports.RetrieveAgentRequestRequest$outboundSchema = exports.RetrieveAgentRequestRequest$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationModalities = exports.RetrieveAgentRequestToolChoiceAgents1 = exports.RetrieveAgentRequestToolChoiceAgentsType = exports.RetrieveAgentRequestFallbackModelConfigurationThinkingLevel = exports.RetrieveAgentRequestFallbackModelConfigurationType = exports.RetrieveAgentRequestResponseFormatAgentsResponse200Type = exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONType = exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = exports.RetrieveAgentRequestFallbackModelConfigurationFormat = exports.RetrieveAgentRequestFallbackModelConfigurationVoice = exports.RetrieveAgentRequestModalities = exports.RetrieveAgentRequestToolChoice1 = exports.RetrieveAgentRequestToolChoiceType = exports.RetrieveAgentRequestThinkingLevel = exports.RetrieveAgentRequestType = exports.RetrieveAgentRequestResponseFormatType = exports.RetrieveAgentRequestResponseFormatAgentsType = exports.RetrieveAgentRequestResponseFormatAgentsResponseType = exports.RetrieveAgentRequestFormat = exports.RetrieveAgentRequestVoice = exports.RetrieveAgentRequestAgentsExecuteOn = exports.RetrieveAgentRequestExecuteOn = exports.RetrieveAgentRequestToolApprovalRequired = exports.RetrieveAgentRequestStatus = void 0;
exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationAudio$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationAudio$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationFormat$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationFormat$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationVoice$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationVoice$inboundSchema = exports.RetrieveAgentRequestRetry$outboundSchema = exports.RetrieveAgentRequestRetry$inboundSchema = exports.RetrieveAgentRequestParameters$outboundSchema = exports.RetrieveAgentRequestParameters$inboundSchema = exports.RetrieveAgentRequestModalities$outboundSchema = exports.RetrieveAgentRequestModalities$inboundSchema = exports.RetrieveAgentRequestToolChoice$outboundSchema = exports.RetrieveAgentRequestToolChoice$inboundSchema = exports.RetrieveAgentRequestToolChoice1$outboundSchema = exports.RetrieveAgentRequestToolChoice1$inboundSchema = exports.RetrieveAgentRequestToolChoice2$outboundSchema = exports.RetrieveAgentRequestToolChoice2$inboundSchema = exports.RetrieveAgentRequestToolChoiceFunction$outboundSchema = exports.RetrieveAgentRequestToolChoiceFunction$inboundSchema = exports.RetrieveAgentRequestToolChoiceType$outboundSchema = exports.RetrieveAgentRequestToolChoiceType$inboundSchema = exports.RetrieveAgentRequestThinking$outboundSchema = exports.RetrieveAgentRequestThinking$inboundSchema = exports.RetrieveAgentRequestThinkingLevel$outboundSchema = exports.RetrieveAgentRequestThinkingLevel$inboundSchema = exports.RetrieveAgentRequestType$outboundSchema = exports.RetrieveAgentRequestType$inboundSchema = exports.RetrieveAgentRequestStreamOptions$outboundSchema = exports.RetrieveAgentRequestStreamOptions$inboundSchema = exports.RetrieveAgentRequestStop$outboundSchema = exports.RetrieveAgentRequestStop$inboundSchema = exports.RetrieveAgentRequestResponseFormat$outboundSchema = exports.RetrieveAgentRequestResponseFormat$inboundSchema = exports.RetrieveAgentRequestResponseFormatText$outboundSchema = exports.RetrieveAgentRequestResponseFormatText$inboundSchema = exports.RetrieveAgentRequestResponseFormatType$outboundSchema = exports.RetrieveAgentRequestResponseFormatType$inboundSchema = exports.RetrieveAgentRequestResponseFormatJSONObject$outboundSchema = exports.RetrieveAgentRequestResponseFormatJSONObject$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsType$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsType$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsJSONSchema$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema = exports.RetrieveAgentRequestResponseFormatJsonSchema$outboundSchema = exports.RetrieveAgentRequestResponseFormatJsonSchema$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponseType$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponseType$inboundSchema = void 0;
exports.RetrieveAgentRequestKnowledgeBases$outboundSchema = exports.RetrieveAgentRequestKnowledgeBases$inboundSchema = exports.RetrieveAgentRequestMetrics$outboundSchema = exports.RetrieveAgentRequestMetrics$inboundSchema = exports.RetrieveAgentRequestTeamOfAgents$outboundSchema = exports.RetrieveAgentRequestTeamOfAgents$inboundSchema = exports.RetrieveAgentRequestModel$outboundSchema = exports.RetrieveAgentRequestModel$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfiguration$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfiguration$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfiguration2$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfiguration2$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationParameters$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationModalities$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationModalities$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationToolChoice$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationToolChoice$inboundSchema = exports.RetrieveAgentRequestToolChoiceAgents1$outboundSchema = exports.RetrieveAgentRequestToolChoiceAgents1$inboundSchema = exports.RetrieveAgentRequestToolChoiceAgents2$outboundSchema = exports.RetrieveAgentRequestToolChoiceAgents2$inboundSchema = exports.RetrieveAgentRequestToolChoiceAgentsFunction$outboundSchema = exports.RetrieveAgentRequestToolChoiceAgentsFunction$inboundSchema = exports.RetrieveAgentRequestToolChoiceAgentsType$outboundSchema = exports.RetrieveAgentRequestToolChoiceAgentsType$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationThinking$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationThinking$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationThinkingLevel$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationThinkingLevel$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationType$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationType$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationStreamOptions$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationStop$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationStop$inboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationResponseFormat$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationResponseFormat$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsText$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsText$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponse200Type$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponse200Type$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsJSONObject$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsJSONObject$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema$inboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema$inboundSchema = void 0;
exports.RetrieveAgentRequestResponseBody$outboundSchema = exports.RetrieveAgentRequestResponseBody$inboundSchema = void 0;
exports.retrieveAgentRequestRequestToJSON = retrieveAgentRequestRequestToJSON;
exports.retrieveAgentRequestRequestFromJSON = retrieveAgentRequestRequestFromJSON;
exports.retrieveAgentRequestConditionsToJSON = retrieveAgentRequestConditionsToJSON;
exports.retrieveAgentRequestConditionsFromJSON = retrieveAgentRequestConditionsFromJSON;
exports.retrieveAgentRequestToolsToJSON = retrieveAgentRequestToolsToJSON;
exports.retrieveAgentRequestToolsFromJSON = retrieveAgentRequestToolsFromJSON;
exports.retrieveAgentRequestEvaluatorsToJSON = retrieveAgentRequestEvaluatorsToJSON;
exports.retrieveAgentRequestEvaluatorsFromJSON = retrieveAgentRequestEvaluatorsFromJSON;
exports.retrieveAgentRequestGuardrailsToJSON = retrieveAgentRequestGuardrailsToJSON;
exports.retrieveAgentRequestGuardrailsFromJSON = retrieveAgentRequestGuardrailsFromJSON;
exports.retrieveAgentRequestSettingsToJSON = retrieveAgentRequestSettingsToJSON;
exports.retrieveAgentRequestSettingsFromJSON = retrieveAgentRequestSettingsFromJSON;
exports.retrieveAgentRequestAudioToJSON = retrieveAgentRequestAudioToJSON;
exports.retrieveAgentRequestAudioFromJSON = retrieveAgentRequestAudioFromJSON;
exports.retrieveAgentRequestResponseFormatJsonSchemaToJSON = retrieveAgentRequestResponseFormatJsonSchemaToJSON;
exports.retrieveAgentRequestResponseFormatJsonSchemaFromJSON = retrieveAgentRequestResponseFormatJsonSchemaFromJSON;
exports.retrieveAgentRequestResponseFormatAgentsJSONSchemaToJSON = retrieveAgentRequestResponseFormatAgentsJSONSchemaToJSON;
exports.retrieveAgentRequestResponseFormatAgentsJSONSchemaFromJSON = retrieveAgentRequestResponseFormatAgentsJSONSchemaFromJSON;
exports.retrieveAgentRequestResponseFormatJSONObjectToJSON = retrieveAgentRequestResponseFormatJSONObjectToJSON;
exports.retrieveAgentRequestResponseFormatJSONObjectFromJSON = retrieveAgentRequestResponseFormatJSONObjectFromJSON;
exports.retrieveAgentRequestResponseFormatTextToJSON = retrieveAgentRequestResponseFormatTextToJSON;
exports.retrieveAgentRequestResponseFormatTextFromJSON = retrieveAgentRequestResponseFormatTextFromJSON;
exports.retrieveAgentRequestResponseFormatToJSON = retrieveAgentRequestResponseFormatToJSON;
exports.retrieveAgentRequestResponseFormatFromJSON = retrieveAgentRequestResponseFormatFromJSON;
exports.retrieveAgentRequestStopToJSON = retrieveAgentRequestStopToJSON;
exports.retrieveAgentRequestStopFromJSON = retrieveAgentRequestStopFromJSON;
exports.retrieveAgentRequestStreamOptionsToJSON = retrieveAgentRequestStreamOptionsToJSON;
exports.retrieveAgentRequestStreamOptionsFromJSON = retrieveAgentRequestStreamOptionsFromJSON;
exports.retrieveAgentRequestThinkingToJSON = retrieveAgentRequestThinkingToJSON;
exports.retrieveAgentRequestThinkingFromJSON = retrieveAgentRequestThinkingFromJSON;
exports.retrieveAgentRequestToolChoiceFunctionToJSON = retrieveAgentRequestToolChoiceFunctionToJSON;
exports.retrieveAgentRequestToolChoiceFunctionFromJSON = retrieveAgentRequestToolChoiceFunctionFromJSON;
exports.retrieveAgentRequestToolChoice2ToJSON = retrieveAgentRequestToolChoice2ToJSON;
exports.retrieveAgentRequestToolChoice2FromJSON = retrieveAgentRequestToolChoice2FromJSON;
exports.retrieveAgentRequestToolChoiceToJSON = retrieveAgentRequestToolChoiceToJSON;
exports.retrieveAgentRequestToolChoiceFromJSON = retrieveAgentRequestToolChoiceFromJSON;
exports.retrieveAgentRequestParametersToJSON = retrieveAgentRequestParametersToJSON;
exports.retrieveAgentRequestParametersFromJSON = retrieveAgentRequestParametersFromJSON;
exports.retrieveAgentRequestRetryToJSON = retrieveAgentRequestRetryToJSON;
exports.retrieveAgentRequestRetryFromJSON = retrieveAgentRequestRetryFromJSON;
exports.retrieveAgentRequestFallbackModelConfigurationAudioToJSON = retrieveAgentRequestFallbackModelConfigurationAudioToJSON;
exports.retrieveAgentRequestFallbackModelConfigurationAudioFromJSON = retrieveAgentRequestFallbackModelConfigurationAudioFromJSON;
exports.retrieveAgentRequestResponseFormatAgentsResponseJsonSchemaToJSON = retrieveAgentRequestResponseFormatAgentsResponseJsonSchemaToJSON;
exports.retrieveAgentRequestResponseFormatAgentsResponseJsonSchemaFromJSON = retrieveAgentRequestResponseFormatAgentsResponseJsonSchemaFromJSON;
exports.retrieveAgentRequestResponseFormatAgentsResponse200JSONSchemaToJSON = retrieveAgentRequestResponseFormatAgentsResponse200JSONSchemaToJSON;
exports.retrieveAgentRequestResponseFormatAgentsResponse200JSONSchemaFromJSON = retrieveAgentRequestResponseFormatAgentsResponse200JSONSchemaFromJSON;
exports.retrieveAgentRequestResponseFormatAgentsJSONObjectToJSON = retrieveAgentRequestResponseFormatAgentsJSONObjectToJSON;
exports.retrieveAgentRequestResponseFormatAgentsJSONObjectFromJSON = retrieveAgentRequestResponseFormatAgentsJSONObjectFromJSON;
exports.retrieveAgentRequestResponseFormatAgentsTextToJSON = retrieveAgentRequestResponseFormatAgentsTextToJSON;
exports.retrieveAgentRequestResponseFormatAgentsTextFromJSON = retrieveAgentRequestResponseFormatAgentsTextFromJSON;
exports.retrieveAgentRequestFallbackModelConfigurationResponseFormatToJSON = retrieveAgentRequestFallbackModelConfigurationResponseFormatToJSON;
exports.retrieveAgentRequestFallbackModelConfigurationResponseFormatFromJSON = retrieveAgentRequestFallbackModelConfigurationResponseFormatFromJSON;
exports.retrieveAgentRequestFallbackModelConfigurationStopToJSON = retrieveAgentRequestFallbackModelConfigurationStopToJSON;
exports.retrieveAgentRequestFallbackModelConfigurationStopFromJSON = retrieveAgentRequestFallbackModelConfigurationStopFromJSON;
exports.retrieveAgentRequestFallbackModelConfigurationStreamOptionsToJSON = retrieveAgentRequestFallbackModelConfigurationStreamOptionsToJSON;
exports.retrieveAgentRequestFallbackModelConfigurationStreamOptionsFromJSON = retrieveAgentRequestFallbackModelConfigurationStreamOptionsFromJSON;
exports.retrieveAgentRequestFallbackModelConfigurationThinkingToJSON = retrieveAgentRequestFallbackModelConfigurationThinkingToJSON;
exports.retrieveAgentRequestFallbackModelConfigurationThinkingFromJSON = retrieveAgentRequestFallbackModelConfigurationThinkingFromJSON;
exports.retrieveAgentRequestToolChoiceAgentsFunctionToJSON = retrieveAgentRequestToolChoiceAgentsFunctionToJSON;
exports.retrieveAgentRequestToolChoiceAgentsFunctionFromJSON = retrieveAgentRequestToolChoiceAgentsFunctionFromJSON;
exports.retrieveAgentRequestToolChoiceAgents2ToJSON = retrieveAgentRequestToolChoiceAgents2ToJSON;
exports.retrieveAgentRequestToolChoiceAgents2FromJSON = retrieveAgentRequestToolChoiceAgents2FromJSON;
exports.retrieveAgentRequestFallbackModelConfigurationToolChoiceToJSON = retrieveAgentRequestFallbackModelConfigurationToolChoiceToJSON;
exports.retrieveAgentRequestFallbackModelConfigurationToolChoiceFromJSON = retrieveAgentRequestFallbackModelConfigurationToolChoiceFromJSON;
exports.retrieveAgentRequestFallbackModelConfigurationParametersToJSON = retrieveAgentRequestFallbackModelConfigurationParametersToJSON;
exports.retrieveAgentRequestFallbackModelConfigurationParametersFromJSON = retrieveAgentRequestFallbackModelConfigurationParametersFromJSON;
exports.retrieveAgentRequestFallbackModelConfiguration2ToJSON = retrieveAgentRequestFallbackModelConfiguration2ToJSON;
exports.retrieveAgentRequestFallbackModelConfiguration2FromJSON = retrieveAgentRequestFallbackModelConfiguration2FromJSON;
exports.retrieveAgentRequestFallbackModelConfigurationToJSON = retrieveAgentRequestFallbackModelConfigurationToJSON;
exports.retrieveAgentRequestFallbackModelConfigurationFromJSON = retrieveAgentRequestFallbackModelConfigurationFromJSON;
exports.retrieveAgentRequestModelToJSON = retrieveAgentRequestModelToJSON;
exports.retrieveAgentRequestModelFromJSON = retrieveAgentRequestModelFromJSON;
exports.retrieveAgentRequestTeamOfAgentsToJSON = retrieveAgentRequestTeamOfAgentsToJSON;
exports.retrieveAgentRequestTeamOfAgentsFromJSON = retrieveAgentRequestTeamOfAgentsFromJSON;
exports.retrieveAgentRequestMetricsToJSON = retrieveAgentRequestMetricsToJSON;
exports.retrieveAgentRequestMetricsFromJSON = retrieveAgentRequestMetricsFromJSON;
exports.retrieveAgentRequestKnowledgeBasesToJSON = retrieveAgentRequestKnowledgeBasesToJSON;
exports.retrieveAgentRequestKnowledgeBasesFromJSON = retrieveAgentRequestKnowledgeBasesFromJSON;
exports.retrieveAgentRequestResponseBodyToJSON = retrieveAgentRequestResponseBodyToJSON;
exports.retrieveAgentRequestResponseBodyFromJSON = retrieveAgentRequestResponseBodyFromJSON;
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.RetrieveAgentRequestStatus = {
    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.RetrieveAgentRequestToolApprovalRequired = {
    All: "all",
    RespectTool: "respect_tool",
    None: "none",
};
/**
 * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
 */
exports.RetrieveAgentRequestExecuteOn = {
    Input: "input",
    Output: "output",
};
/**
 * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
 */
exports.RetrieveAgentRequestAgentsExecuteOn = {
    Input: "input",
    Output: "output",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.RetrieveAgentRequestVoice = {
    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.RetrieveAgentRequestFormat = {
    Wav: "wav",
    Mp3: "mp3",
    Flac: "flac",
    Opus: "opus",
    Pcm16: "pcm16",
};
exports.RetrieveAgentRequestResponseFormatAgentsResponseType = {
    JsonSchema: "json_schema",
};
exports.RetrieveAgentRequestResponseFormatAgentsType = {
    JsonObject: "json_object",
};
exports.RetrieveAgentRequestResponseFormatType = {
    Text: "text",
};
/**
 * Enables or disables the thinking mode capability
 */
exports.RetrieveAgentRequestType = {
    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.RetrieveAgentRequestThinkingLevel = {
    Low: "low",
    High: "high",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.RetrieveAgentRequestToolChoiceType = {
    Function: "function",
};
exports.RetrieveAgentRequestToolChoice1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.RetrieveAgentRequestModalities = {
    Text: "text",
    Audio: "audio",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.RetrieveAgentRequestFallbackModelConfigurationVoice = {
    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.RetrieveAgentRequestFallbackModelConfigurationFormat = {
    Wav: "wav",
    Mp3: "mp3",
    Flac: "flac",
    Opus: "opus",
    Pcm16: "pcm16",
};
exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = {
    JsonSchema: "json_schema",
};
exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONType = {
    JsonObject: "json_object",
};
exports.RetrieveAgentRequestResponseFormatAgentsResponse200Type = {
    Text: "text",
};
/**
 * Enables or disables the thinking mode capability
 */
exports.RetrieveAgentRequestFallbackModelConfigurationType = {
    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.RetrieveAgentRequestFallbackModelConfigurationThinkingLevel = {
    Low: "low",
    High: "high",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.RetrieveAgentRequestToolChoiceAgentsType = {
    Function: "function",
};
exports.RetrieveAgentRequestToolChoiceAgents1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.RetrieveAgentRequestFallbackModelConfigurationModalities = {
    Text: "text",
    Audio: "audio",
};
/** @internal */
exports.RetrieveAgentRequestRequest$inboundSchema = z.object({
    agent_key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "agent_key": "agentKey",
    });
});
/** @internal */
exports.RetrieveAgentRequestRequest$outboundSchema = z.object({
    agentKey: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        agentKey: "agent_key",
    });
});
function retrieveAgentRequestRequestToJSON(retrieveAgentRequestRequest) {
    return JSON.stringify(exports.RetrieveAgentRequestRequest$outboundSchema.parse(retrieveAgentRequestRequest));
}
function retrieveAgentRequestRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestRequest' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestStatus$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestStatus);
/** @internal */
exports.RetrieveAgentRequestStatus$outboundSchema = exports.RetrieveAgentRequestStatus$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestToolApprovalRequired$inboundSchema = z
    .nativeEnum(exports.RetrieveAgentRequestToolApprovalRequired);
/** @internal */
exports.RetrieveAgentRequestToolApprovalRequired$outboundSchema = exports.RetrieveAgentRequestToolApprovalRequired$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestConditions$inboundSchema = z.object({
    condition: z.string(),
    operator: z.string(),
    value: z.string(),
});
/** @internal */
exports.RetrieveAgentRequestConditions$outboundSchema = z.object({
    condition: z.string(),
    operator: z.string(),
    value: z.string(),
});
function retrieveAgentRequestConditionsToJSON(retrieveAgentRequestConditions) {
    return JSON.stringify(exports.RetrieveAgentRequestConditions$outboundSchema.parse(retrieveAgentRequestConditions));
}
function retrieveAgentRequestConditionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestConditions' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestTools$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.RetrieveAgentRequestConditions$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.RetrieveAgentRequestTools$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.RetrieveAgentRequestConditions$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 retrieveAgentRequestToolsToJSON(retrieveAgentRequestTools) {
    return JSON.stringify(exports.RetrieveAgentRequestTools$outboundSchema.parse(retrieveAgentRequestTools));
}
function retrieveAgentRequestToolsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestTools' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestExecuteOn$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestExecuteOn);
/** @internal */
exports.RetrieveAgentRequestExecuteOn$outboundSchema = exports.RetrieveAgentRequestExecuteOn$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestEvaluators$inboundSchema = z.object({
    id: z.string(),
    sample_rate: z.number().default(50),
    execute_on: exports.RetrieveAgentRequestExecuteOn$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "sample_rate": "sampleRate",
        "execute_on": "executeOn",
    });
});
/** @internal */
exports.RetrieveAgentRequestEvaluators$outboundSchema = z.object({
    id: z.string(),
    sampleRate: z.number().default(50),
    executeOn: exports.RetrieveAgentRequestExecuteOn$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sampleRate: "sample_rate",
        executeOn: "execute_on",
    });
});
function retrieveAgentRequestEvaluatorsToJSON(retrieveAgentRequestEvaluators) {
    return JSON.stringify(exports.RetrieveAgentRequestEvaluators$outboundSchema.parse(retrieveAgentRequestEvaluators));
}
function retrieveAgentRequestEvaluatorsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestEvaluators$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestEvaluators' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestAgentsExecuteOn$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestAgentsExecuteOn);
/** @internal */
exports.RetrieveAgentRequestAgentsExecuteOn$outboundSchema = exports.RetrieveAgentRequestAgentsExecuteOn$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestGuardrails$inboundSchema = z.object({
    id: z.string(),
    sample_rate: z.number().default(50),
    execute_on: exports.RetrieveAgentRequestAgentsExecuteOn$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "sample_rate": "sampleRate",
        "execute_on": "executeOn",
    });
});
/** @internal */
exports.RetrieveAgentRequestGuardrails$outboundSchema = z.object({
    id: z.string(),
    sampleRate: z.number().default(50),
    executeOn: exports.RetrieveAgentRequestAgentsExecuteOn$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sampleRate: "sample_rate",
        executeOn: "execute_on",
    });
});
function retrieveAgentRequestGuardrailsToJSON(retrieveAgentRequestGuardrails) {
    return JSON.stringify(exports.RetrieveAgentRequestGuardrails$outboundSchema.parse(retrieveAgentRequestGuardrails));
}
function retrieveAgentRequestGuardrailsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestGuardrails' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestSettings$inboundSchema = z.object({
    max_iterations: z.number().int().default(100),
    max_execution_time: z.number().int().default(300),
    tool_approval_required: exports.RetrieveAgentRequestToolApprovalRequired$inboundSchema
        .default("respect_tool"),
    tools: z.array(z.lazy(() => exports.RetrieveAgentRequestTools$inboundSchema))
        .optional(),
    evaluators: z.array(z.lazy(() => exports.RetrieveAgentRequestEvaluators$inboundSchema)).optional(),
    guardrails: z.array(z.lazy(() => exports.RetrieveAgentRequestGuardrails$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "max_iterations": "maxIterations",
        "max_execution_time": "maxExecutionTime",
        "tool_approval_required": "toolApprovalRequired",
    });
});
/** @internal */
exports.RetrieveAgentRequestSettings$outboundSchema = z.object({
    maxIterations: z.number().int().default(100),
    maxExecutionTime: z.number().int().default(300),
    toolApprovalRequired: exports.RetrieveAgentRequestToolApprovalRequired$outboundSchema
        .default("respect_tool"),
    tools: z.array(z.lazy(() => exports.RetrieveAgentRequestTools$outboundSchema))
        .optional(),
    evaluators: z.array(z.lazy(() => exports.RetrieveAgentRequestEvaluators$outboundSchema)).optional(),
    guardrails: z.array(z.lazy(() => exports.RetrieveAgentRequestGuardrails$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        maxIterations: "max_iterations",
        maxExecutionTime: "max_execution_time",
        toolApprovalRequired: "tool_approval_required",
    });
});
function retrieveAgentRequestSettingsToJSON(retrieveAgentRequestSettings) {
    return JSON.stringify(exports.RetrieveAgentRequestSettings$outboundSchema.parse(retrieveAgentRequestSettings));
}
function retrieveAgentRequestSettingsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestSettings' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestVoice$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestVoice);
/** @internal */
exports.RetrieveAgentRequestVoice$outboundSchema = exports.RetrieveAgentRequestVoice$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestFormat$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestFormat);
/** @internal */
exports.RetrieveAgentRequestFormat$outboundSchema = exports.RetrieveAgentRequestFormat$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestAudio$inboundSchema = z.object({
    voice: exports.RetrieveAgentRequestVoice$inboundSchema,
    format: exports.RetrieveAgentRequestFormat$inboundSchema,
});
/** @internal */
exports.RetrieveAgentRequestAudio$outboundSchema = z.object({
    voice: exports.RetrieveAgentRequestVoice$outboundSchema,
    format: exports.RetrieveAgentRequestFormat$outboundSchema,
});
function retrieveAgentRequestAudioToJSON(retrieveAgentRequestAudio) {
    return JSON.stringify(exports.RetrieveAgentRequestAudio$outboundSchema.parse(retrieveAgentRequestAudio));
}
function retrieveAgentRequestAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestAudio' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponseType$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestResponseFormatAgentsResponseType);
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponseType$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponseType$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestResponseFormatJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
/** @internal */
exports.RetrieveAgentRequestResponseFormatJsonSchema$outboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
function retrieveAgentRequestResponseFormatJsonSchemaToJSON(retrieveAgentRequestResponseFormatJsonSchema) {
    return JSON.stringify(exports.RetrieveAgentRequestResponseFormatJsonSchema$outboundSchema.parse(retrieveAgentRequestResponseFormatJsonSchema));
}
function retrieveAgentRequestResponseFormatJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseFormatJsonSchema' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatAgentsResponseType$inboundSchema,
    json_schema: z.lazy(() => exports.RetrieveAgentRequestResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsJSONSchema$outboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatAgentsResponseType$outboundSchema,
    jsonSchema: z.lazy(() => exports.RetrieveAgentRequestResponseFormatJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        jsonSchema: "json_schema",
    });
});
function retrieveAgentRequestResponseFormatAgentsJSONSchemaToJSON(retrieveAgentRequestResponseFormatAgentsJSONSchema) {
    return JSON.stringify(exports.RetrieveAgentRequestResponseFormatAgentsJSONSchema$outboundSchema.parse(retrieveAgentRequestResponseFormatAgentsJSONSchema));
}
function retrieveAgentRequestResponseFormatAgentsJSONSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseFormatAgentsJSONSchema' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsType$inboundSchema = z
    .nativeEnum(exports.RetrieveAgentRequestResponseFormatAgentsType);
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsType$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsType$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestResponseFormatJSONObject$inboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatAgentsType$inboundSchema,
});
/** @internal */
exports.RetrieveAgentRequestResponseFormatJSONObject$outboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatAgentsType$outboundSchema,
});
function retrieveAgentRequestResponseFormatJSONObjectToJSON(retrieveAgentRequestResponseFormatJSONObject) {
    return JSON.stringify(exports.RetrieveAgentRequestResponseFormatJSONObject$outboundSchema.parse(retrieveAgentRequestResponseFormatJSONObject));
}
function retrieveAgentRequestResponseFormatJSONObjectFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseFormatJSONObject' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestResponseFormatType$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestResponseFormatType);
/** @internal */
exports.RetrieveAgentRequestResponseFormatType$outboundSchema = exports.RetrieveAgentRequestResponseFormatType$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestResponseFormatText$inboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatType$inboundSchema,
});
/** @internal */
exports.RetrieveAgentRequestResponseFormatText$outboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatType$outboundSchema,
});
function retrieveAgentRequestResponseFormatTextToJSON(retrieveAgentRequestResponseFormatText) {
    return JSON.stringify(exports.RetrieveAgentRequestResponseFormatText$outboundSchema.parse(retrieveAgentRequestResponseFormatText));
}
function retrieveAgentRequestResponseFormatTextFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseFormatText' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema),
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatText$inboundSchema),
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatJSONObject$inboundSchema),
]);
/** @internal */
exports.RetrieveAgentRequestResponseFormat$outboundSchema = z.union([
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsJSONSchema$outboundSchema),
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatText$outboundSchema),
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatJSONObject$outboundSchema),
]);
function retrieveAgentRequestResponseFormatToJSON(retrieveAgentRequestResponseFormat) {
    return JSON.stringify(exports.RetrieveAgentRequestResponseFormat$outboundSchema.parse(retrieveAgentRequestResponseFormat));
}
function retrieveAgentRequestResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseFormat' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.RetrieveAgentRequestStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
function retrieveAgentRequestStopToJSON(retrieveAgentRequestStop) {
    return JSON.stringify(exports.RetrieveAgentRequestStop$outboundSchema.parse(retrieveAgentRequestStop));
}
function retrieveAgentRequestStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestStop' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
/** @internal */
exports.RetrieveAgentRequestStreamOptions$outboundSchema = z.object({
    includeUsage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        includeUsage: "include_usage",
    });
});
function retrieveAgentRequestStreamOptionsToJSON(retrieveAgentRequestStreamOptions) {
    return JSON.stringify(exports.RetrieveAgentRequestStreamOptions$outboundSchema.parse(retrieveAgentRequestStreamOptions));
}
function retrieveAgentRequestStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestStreamOptions' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestType$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestType);
/** @internal */
exports.RetrieveAgentRequestType$outboundSchema = exports.RetrieveAgentRequestType$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestThinkingLevel$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestThinkingLevel);
/** @internal */
exports.RetrieveAgentRequestThinkingLevel$outboundSchema = exports.RetrieveAgentRequestThinkingLevel$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestThinking$inboundSchema = z.object({
    type: exports.RetrieveAgentRequestType$inboundSchema,
    budget_tokens: z.number(),
    thinking_level: exports.RetrieveAgentRequestThinkingLevel$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "budget_tokens": "budgetTokens",
        "thinking_level": "thinkingLevel",
    });
});
/** @internal */
exports.RetrieveAgentRequestThinking$outboundSchema = z.object({
    type: exports.RetrieveAgentRequestType$outboundSchema,
    budgetTokens: z.number(),
    thinkingLevel: exports.RetrieveAgentRequestThinkingLevel$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        budgetTokens: "budget_tokens",
        thinkingLevel: "thinking_level",
    });
});
function retrieveAgentRequestThinkingToJSON(retrieveAgentRequestThinking) {
    return JSON.stringify(exports.RetrieveAgentRequestThinking$outboundSchema.parse(retrieveAgentRequestThinking));
}
function retrieveAgentRequestThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestThinking' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestToolChoiceType$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestToolChoiceType);
/** @internal */
exports.RetrieveAgentRequestToolChoiceType$outboundSchema = exports.RetrieveAgentRequestToolChoiceType$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestToolChoiceFunction$inboundSchema = z.object({
    name: z.string().optional(),
});
/** @internal */
exports.RetrieveAgentRequestToolChoiceFunction$outboundSchema = z.object({
    name: z.string().optional(),
});
function retrieveAgentRequestToolChoiceFunctionToJSON(retrieveAgentRequestToolChoiceFunction) {
    return JSON.stringify(exports.RetrieveAgentRequestToolChoiceFunction$outboundSchema.parse(retrieveAgentRequestToolChoiceFunction));
}
function retrieveAgentRequestToolChoiceFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestToolChoiceFunction' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestToolChoice2$inboundSchema = z.object({
    type: exports.RetrieveAgentRequestToolChoiceType$inboundSchema.optional(),
    function: z.lazy(() => exports.RetrieveAgentRequestToolChoiceFunction$inboundSchema),
});
/** @internal */
exports.RetrieveAgentRequestToolChoice2$outboundSchema = z.object({
    type: exports.RetrieveAgentRequestToolChoiceType$outboundSchema.optional(),
    function: z.lazy(() => exports.RetrieveAgentRequestToolChoiceFunction$outboundSchema),
});
function retrieveAgentRequestToolChoice2ToJSON(retrieveAgentRequestToolChoice2) {
    return JSON.stringify(exports.RetrieveAgentRequestToolChoice2$outboundSchema.parse(retrieveAgentRequestToolChoice2));
}
function retrieveAgentRequestToolChoice2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestToolChoice2' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestToolChoice1$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestToolChoice1);
/** @internal */
exports.RetrieveAgentRequestToolChoice1$outboundSchema = exports.RetrieveAgentRequestToolChoice1$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.RetrieveAgentRequestToolChoice2$inboundSchema),
    exports.RetrieveAgentRequestToolChoice1$inboundSchema,
]);
/** @internal */
exports.RetrieveAgentRequestToolChoice$outboundSchema = z.union([
    z.lazy(() => exports.RetrieveAgentRequestToolChoice2$outboundSchema),
    exports.RetrieveAgentRequestToolChoice1$outboundSchema,
]);
function retrieveAgentRequestToolChoiceToJSON(retrieveAgentRequestToolChoice) {
    return JSON.stringify(exports.RetrieveAgentRequestToolChoice$outboundSchema.parse(retrieveAgentRequestToolChoice));
}
function retrieveAgentRequestToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestToolChoice' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestModalities$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestModalities);
/** @internal */
exports.RetrieveAgentRequestModalities$outboundSchema = exports.RetrieveAgentRequestModalities$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestParameters$inboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.RetrieveAgentRequestAudio$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.RetrieveAgentRequestResponseFormatAgentsJSONSchema$inboundSchema),
        z.lazy(() => exports.RetrieveAgentRequestResponseFormatText$inboundSchema),
        z.lazy(() => exports.RetrieveAgentRequestResponseFormatJSONObject$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.RetrieveAgentRequestStreamOptions$inboundSchema)).optional(),
    thinking: z.lazy(() => exports.RetrieveAgentRequestThinking$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.RetrieveAgentRequestToolChoice2$inboundSchema),
        exports.RetrieveAgentRequestToolChoice1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.RetrieveAgentRequestModalities$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.RetrieveAgentRequestParameters$outboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.RetrieveAgentRequestAudio$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.RetrieveAgentRequestResponseFormatAgentsJSONSchema$outboundSchema),
        z.lazy(() => exports.RetrieveAgentRequestResponseFormatText$outboundSchema),
        z.lazy(() => exports.RetrieveAgentRequestResponseFormatJSONObject$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.RetrieveAgentRequestStreamOptions$outboundSchema)).optional(),
    thinking: z.lazy(() => exports.RetrieveAgentRequestThinking$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.RetrieveAgentRequestToolChoice2$outboundSchema),
        exports.RetrieveAgentRequestToolChoice1$outboundSchema,
    ]).optional(),
    parallelToolCalls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.RetrieveAgentRequestModalities$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 retrieveAgentRequestParametersToJSON(retrieveAgentRequestParameters) {
    return JSON.stringify(exports.RetrieveAgentRequestParameters$outboundSchema.parse(retrieveAgentRequestParameters));
}
function retrieveAgentRequestParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestParameters' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestRetry$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.RetrieveAgentRequestRetry$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 retrieveAgentRequestRetryToJSON(retrieveAgentRequestRetry) {
    return JSON.stringify(exports.RetrieveAgentRequestRetry$outboundSchema.parse(retrieveAgentRequestRetry));
}
function retrieveAgentRequestRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestRetry' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationVoice$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestFallbackModelConfigurationVoice);
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationVoice$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationVoice$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationFormat$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestFallbackModelConfigurationFormat);
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationFormat$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationFormat$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationAudio$inboundSchema = z.object({
    voice: exports.RetrieveAgentRequestFallbackModelConfigurationVoice$inboundSchema,
    format: exports.RetrieveAgentRequestFallbackModelConfigurationFormat$inboundSchema,
});
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationAudio$outboundSchema = z.object({
    voice: exports.RetrieveAgentRequestFallbackModelConfigurationVoice$outboundSchema,
    format: exports.RetrieveAgentRequestFallbackModelConfigurationFormat$outboundSchema,
});
function retrieveAgentRequestFallbackModelConfigurationAudioToJSON(retrieveAgentRequestFallbackModelConfigurationAudio) {
    return JSON.stringify(exports.RetrieveAgentRequestFallbackModelConfigurationAudio$outboundSchema.parse(retrieveAgentRequestFallbackModelConfigurationAudio));
}
function retrieveAgentRequestFallbackModelConfigurationAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbackModelConfigurationAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationAudio' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema$outboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
function retrieveAgentRequestResponseFormatAgentsResponseJsonSchemaToJSON(retrieveAgentRequestResponseFormatAgentsResponseJsonSchema) {
    return JSON.stringify(exports.RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema$outboundSchema
        .parse(retrieveAgentRequestResponseFormatAgentsResponseJsonSchema));
}
function retrieveAgentRequestResponseFormatAgentsResponseJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema$inboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
    json_schema: z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema$outboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
    jsonSchema: z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        jsonSchema: "json_schema",
    });
});
function retrieveAgentRequestResponseFormatAgentsResponse200JSONSchemaToJSON(retrieveAgentRequestResponseFormatAgentsResponse200JSONSchema) {
    return JSON.stringify(exports.RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema$outboundSchema
        .parse(retrieveAgentRequestResponseFormatAgentsResponse200JSONSchema));
}
function retrieveAgentRequestResponseFormatAgentsResponse200JSONSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONType);
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsJSONObject$inboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema,
});
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsJSONObject$outboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema,
});
function retrieveAgentRequestResponseFormatAgentsJSONObjectToJSON(retrieveAgentRequestResponseFormatAgentsJSONObject) {
    return JSON.stringify(exports.RetrieveAgentRequestResponseFormatAgentsJSONObject$outboundSchema.parse(retrieveAgentRequestResponseFormatAgentsJSONObject));
}
function retrieveAgentRequestResponseFormatAgentsJSONObjectFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseFormatAgentsJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseFormatAgentsJSONObject' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponse200Type$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestResponseFormatAgentsResponse200Type);
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsResponse200Type$outboundSchema = exports.RetrieveAgentRequestResponseFormatAgentsResponse200Type$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsText$inboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatAgentsResponse200Type$inboundSchema,
});
/** @internal */
exports.RetrieveAgentRequestResponseFormatAgentsText$outboundSchema = z.object({
    type: exports.RetrieveAgentRequestResponseFormatAgentsResponse200Type$outboundSchema,
});
function retrieveAgentRequestResponseFormatAgentsTextToJSON(retrieveAgentRequestResponseFormatAgentsText) {
    return JSON.stringify(exports.RetrieveAgentRequestResponseFormatAgentsText$outboundSchema.parse(retrieveAgentRequestResponseFormatAgentsText));
}
function retrieveAgentRequestResponseFormatAgentsTextFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseFormatAgentsText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseFormatAgentsText' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema$inboundSchema),
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsText$inboundSchema),
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsJSONObject$inboundSchema),
]);
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationResponseFormat$outboundSchema = z.union([
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema$outboundSchema),
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsText$outboundSchema),
    z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsJSONObject$outboundSchema),
]);
function retrieveAgentRequestFallbackModelConfigurationResponseFormatToJSON(retrieveAgentRequestFallbackModelConfigurationResponseFormat) {
    return JSON.stringify(exports.RetrieveAgentRequestFallbackModelConfigurationResponseFormat$outboundSchema
        .parse(retrieveAgentRequestFallbackModelConfigurationResponseFormat));
}
function retrieveAgentRequestFallbackModelConfigurationResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbackModelConfigurationResponseFormat$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationResponseFormat' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
function retrieveAgentRequestFallbackModelConfigurationStopToJSON(retrieveAgentRequestFallbackModelConfigurationStop) {
    return JSON.stringify(exports.RetrieveAgentRequestFallbackModelConfigurationStop$outboundSchema.parse(retrieveAgentRequestFallbackModelConfigurationStop));
}
function retrieveAgentRequestFallbackModelConfigurationStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbackModelConfigurationStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationStop' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationStreamOptions$outboundSchema = z.object({
    includeUsage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        includeUsage: "include_usage",
    });
});
function retrieveAgentRequestFallbackModelConfigurationStreamOptionsToJSON(retrieveAgentRequestFallbackModelConfigurationStreamOptions) {
    return JSON.stringify(exports.RetrieveAgentRequestFallbackModelConfigurationStreamOptions$outboundSchema
        .parse(retrieveAgentRequestFallbackModelConfigurationStreamOptions));
}
function retrieveAgentRequestFallbackModelConfigurationStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationStreamOptions' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationType$inboundSchema = z
    .nativeEnum(exports.RetrieveAgentRequestFallbackModelConfigurationType);
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationType$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationType$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationThinkingLevel$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestFallbackModelConfigurationThinkingLevel);
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationThinkingLevel$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationThinkingLevel$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationThinking$inboundSchema = z.object({
    type: exports.RetrieveAgentRequestFallbackModelConfigurationType$inboundSchema,
    budget_tokens: z.number(),
    thinking_level: exports.RetrieveAgentRequestFallbackModelConfigurationThinkingLevel$inboundSchema
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "budget_tokens": "budgetTokens",
        "thinking_level": "thinkingLevel",
    });
});
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationThinking$outboundSchema = z.object({
    type: exports.RetrieveAgentRequestFallbackModelConfigurationType$outboundSchema,
    budgetTokens: z.number(),
    thinkingLevel: exports.RetrieveAgentRequestFallbackModelConfigurationThinkingLevel$outboundSchema
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        budgetTokens: "budget_tokens",
        thinkingLevel: "thinking_level",
    });
});
function retrieveAgentRequestFallbackModelConfigurationThinkingToJSON(retrieveAgentRequestFallbackModelConfigurationThinking) {
    return JSON.stringify(exports.RetrieveAgentRequestFallbackModelConfigurationThinking$outboundSchema.parse(retrieveAgentRequestFallbackModelConfigurationThinking));
}
function retrieveAgentRequestFallbackModelConfigurationThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbackModelConfigurationThinking$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationThinking' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestToolChoiceAgentsType$inboundSchema = z
    .nativeEnum(exports.RetrieveAgentRequestToolChoiceAgentsType);
/** @internal */
exports.RetrieveAgentRequestToolChoiceAgentsType$outboundSchema = exports.RetrieveAgentRequestToolChoiceAgentsType$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestToolChoiceAgentsFunction$inboundSchema = z.object({
    name: z.string().optional(),
});
/** @internal */
exports.RetrieveAgentRequestToolChoiceAgentsFunction$outboundSchema = z.object({
    name: z.string().optional(),
});
function retrieveAgentRequestToolChoiceAgentsFunctionToJSON(retrieveAgentRequestToolChoiceAgentsFunction) {
    return JSON.stringify(exports.RetrieveAgentRequestToolChoiceAgentsFunction$outboundSchema.parse(retrieveAgentRequestToolChoiceAgentsFunction));
}
function retrieveAgentRequestToolChoiceAgentsFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestToolChoiceAgentsFunction' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestToolChoiceAgents2$inboundSchema = z.object({
    type: exports.RetrieveAgentRequestToolChoiceAgentsType$inboundSchema.optional(),
    function: z.lazy(() => exports.RetrieveAgentRequestToolChoiceAgentsFunction$inboundSchema),
});
/** @internal */
exports.RetrieveAgentRequestToolChoiceAgents2$outboundSchema = z.object({
    type: exports.RetrieveAgentRequestToolChoiceAgentsType$outboundSchema.optional(),
    function: z.lazy(() => exports.RetrieveAgentRequestToolChoiceAgentsFunction$outboundSchema),
});
function retrieveAgentRequestToolChoiceAgents2ToJSON(retrieveAgentRequestToolChoiceAgents2) {
    return JSON.stringify(exports.RetrieveAgentRequestToolChoiceAgents2$outboundSchema.parse(retrieveAgentRequestToolChoiceAgents2));
}
function retrieveAgentRequestToolChoiceAgents2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestToolChoiceAgents2' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestToolChoiceAgents1$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestToolChoiceAgents1);
/** @internal */
exports.RetrieveAgentRequestToolChoiceAgents1$outboundSchema = exports.RetrieveAgentRequestToolChoiceAgents1$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.RetrieveAgentRequestToolChoiceAgents2$inboundSchema),
    exports.RetrieveAgentRequestToolChoiceAgents1$inboundSchema,
]);
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationToolChoice$outboundSchema = z.union([
    z.lazy(() => exports.RetrieveAgentRequestToolChoiceAgents2$outboundSchema),
    exports.RetrieveAgentRequestToolChoiceAgents1$outboundSchema,
]);
function retrieveAgentRequestFallbackModelConfigurationToolChoiceToJSON(retrieveAgentRequestFallbackModelConfigurationToolChoice) {
    return JSON.stringify(exports.RetrieveAgentRequestFallbackModelConfigurationToolChoice$outboundSchema
        .parse(retrieveAgentRequestFallbackModelConfigurationToolChoice));
}
function retrieveAgentRequestFallbackModelConfigurationToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbackModelConfigurationToolChoice$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationToolChoice' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationModalities$inboundSchema = z.nativeEnum(exports.RetrieveAgentRequestFallbackModelConfigurationModalities);
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationModalities$outboundSchema = exports.RetrieveAgentRequestFallbackModelConfigurationModalities$inboundSchema;
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfigurationAudio$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.RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema$inboundSchema),
        z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsText$inboundSchema),
        z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsJSONObject$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.RetrieveAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema)).optional(),
    thinking: z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfigurationThinking$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.RetrieveAgentRequestToolChoiceAgents2$inboundSchema),
        exports.RetrieveAgentRequestToolChoiceAgents1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.RetrieveAgentRequestFallbackModelConfigurationModalities$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.RetrieveAgentRequestFallbackModelConfigurationParameters$outboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfigurationAudio$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.RetrieveAgentRequestResponseFormatAgentsResponse200JSONSchema$outboundSchema),
        z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsText$outboundSchema),
        z.lazy(() => exports.RetrieveAgentRequestResponseFormatAgentsJSONObject$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.RetrieveAgentRequestFallbackModelConfigurationStreamOptions$outboundSchema)).optional(),
    thinking: z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfigurationThinking$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.RetrieveAgentRequestToolChoiceAgents2$outboundSchema),
        exports.RetrieveAgentRequestToolChoiceAgents1$outboundSchema,
    ]).optional(),
    parallelToolCalls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.RetrieveAgentRequestFallbackModelConfigurationModalities$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 retrieveAgentRequestFallbackModelConfigurationParametersToJSON(retrieveAgentRequestFallbackModelConfigurationParameters) {
    return JSON.stringify(exports.RetrieveAgentRequestFallbackModelConfigurationParameters$outboundSchema
        .parse(retrieveAgentRequestFallbackModelConfigurationParameters));
}
function retrieveAgentRequestFallbackModelConfigurationParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationParameters' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfiguration2$inboundSchema = z.object({
    id: z.string(),
    parameters: z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSchema).optional(),
});
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfiguration2$outboundSchema = z.object({
    id: z.string(),
    parameters: z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfigurationParameters$outboundSchema).optional(),
});
function retrieveAgentRequestFallbackModelConfiguration2ToJSON(retrieveAgentRequestFallbackModelConfiguration2) {
    return JSON.stringify(exports.RetrieveAgentRequestFallbackModelConfiguration2$outboundSchema.parse(retrieveAgentRequestFallbackModelConfiguration2));
}
function retrieveAgentRequestFallbackModelConfiguration2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbackModelConfiguration2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbackModelConfiguration2' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfiguration$inboundSchema = z.union([
    z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfiguration2$inboundSchema),
    z.string(),
]);
/** @internal */
exports.RetrieveAgentRequestFallbackModelConfiguration$outboundSchema = z.union([
    z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfiguration2$outboundSchema),
    z.string(),
]);
function retrieveAgentRequestFallbackModelConfigurationToJSON(retrieveAgentRequestFallbackModelConfiguration) {
    return JSON.stringify(exports.RetrieveAgentRequestFallbackModelConfiguration$outboundSchema.parse(retrieveAgentRequestFallbackModelConfiguration));
}
function retrieveAgentRequestFallbackModelConfigurationFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestFallbackModelConfiguration' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestModel$inboundSchema = z.object({
    id: z.string(),
    integration_id: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.RetrieveAgentRequestParameters$inboundSchema)
        .optional(),
    retry: z.lazy(() => exports.RetrieveAgentRequestRetry$inboundSchema).optional(),
    fallback_models: z.nullable(z.array(z.union([
        z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfiguration2$inboundSchema),
        z.string(),
    ]))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "integration_id": "integrationId",
        "fallback_models": "fallbackModels",
    });
});
/** @internal */
exports.RetrieveAgentRequestModel$outboundSchema = z.object({
    id: z.string(),
    integrationId: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.RetrieveAgentRequestParameters$outboundSchema)
        .optional(),
    retry: z.lazy(() => exports.RetrieveAgentRequestRetry$outboundSchema).optional(),
    fallbackModels: z.nullable(z.array(z.union([
        z.lazy(() => exports.RetrieveAgentRequestFallbackModelConfiguration2$outboundSchema),
        z.string(),
    ]))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        integrationId: "integration_id",
        fallbackModels: "fallback_models",
    });
});
function retrieveAgentRequestModelToJSON(retrieveAgentRequestModel) {
    return JSON.stringify(exports.RetrieveAgentRequestModel$outboundSchema.parse(retrieveAgentRequestModel));
}
function retrieveAgentRequestModelFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestModel' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestTeamOfAgents$inboundSchema = z.object({
    key: z.string(),
    role: z.string().optional(),
});
/** @internal */
exports.RetrieveAgentRequestTeamOfAgents$outboundSchema = z.object({
    key: z.string(),
    role: z.string().optional(),
});
function retrieveAgentRequestTeamOfAgentsToJSON(retrieveAgentRequestTeamOfAgents) {
    return JSON.stringify(exports.RetrieveAgentRequestTeamOfAgents$outboundSchema.parse(retrieveAgentRequestTeamOfAgents));
}
function retrieveAgentRequestTeamOfAgentsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestTeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestTeamOfAgents' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestMetrics$inboundSchema = z.object({
    total_cost: z.number().default(0),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "total_cost": "totalCost",
    });
});
/** @internal */
exports.RetrieveAgentRequestMetrics$outboundSchema = z.object({
    totalCost: z.number().default(0),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        totalCost: "total_cost",
    });
});
function retrieveAgentRequestMetricsToJSON(retrieveAgentRequestMetrics) {
    return JSON.stringify(exports.RetrieveAgentRequestMetrics$outboundSchema.parse(retrieveAgentRequestMetrics));
}
function retrieveAgentRequestMetricsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestMetrics' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestKnowledgeBases$inboundSchema = z.object({
    knowledge_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "knowledge_id": "knowledgeId",
    });
});
/** @internal */
exports.RetrieveAgentRequestKnowledgeBases$outboundSchema = z.object({
    knowledgeId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        knowledgeId: "knowledge_id",
    });
});
function retrieveAgentRequestKnowledgeBasesToJSON(retrieveAgentRequestKnowledgeBases) {
    return JSON.stringify(exports.RetrieveAgentRequestKnowledgeBases$outboundSchema.parse(retrieveAgentRequestKnowledgeBases));
}
function retrieveAgentRequestKnowledgeBasesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestKnowledgeBases' from JSON`);
}
/** @internal */
exports.RetrieveAgentRequestResponseBody$inboundSchema = z.object({
    _id: z.string(),
    key: z.string(),
    display_name: 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.RetrieveAgentRequestStatus$inboundSchema,
    settings: z.lazy(() => exports.RetrieveAgentRequestSettings$inboundSchema).optional(),
    model: z.lazy(() => exports.RetrieveAgentRequestModel$inboundSchema),
    version_hash: z.string().optional(),
    path: z.string(),
    memory_stores: z.array(z.string()),
    team_of_agents: z.array(z.lazy(() => exports.RetrieveAgentRequestTeamOfAgents$inboundSchema)),
    metrics: z.lazy(() => exports.RetrieveAgentRequestMetrics$inboundSchema).optional(),
    variables: z.record(z.any()).optional(),
    knowledge_bases: z.array(z.lazy(() => exports.RetrieveAgentRequestKnowledgeBases$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "display_name": "displayName",
        "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",
    });
});
/** @internal */
exports.RetrieveAgentRequestResponseBody$outboundSchema = z.object({
    id: z.string(),
    key: z.string(),
    displayName: 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.RetrieveAgentRequestStatus$outboundSchema,
    settings: z.lazy(() => exports.RetrieveAgentRequestSettings$outboundSchema)
        .optional(),
    model: z.lazy(() => exports.RetrieveAgentRequestModel$outboundSchema),
    versionHash: z.string().optional(),
    path: z.string(),
    memoryStores: z.array(z.string()),
    teamOfAgents: z.array(z.lazy(() => exports.RetrieveAgentRequestTeamOfAgents$outboundSchema)),
    metrics: z.lazy(() => exports.RetrieveAgentRequestMetrics$outboundSchema).optional(),
    variables: z.record(z.any()).optional(),
    knowledgeBases: z.array(z.lazy(() => exports.RetrieveAgentRequestKnowledgeBases$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        displayName: "display_name",
        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",
    });
});
function retrieveAgentRequestResponseBodyToJSON(retrieveAgentRequestResponseBody) {
    return JSON.stringify(exports.RetrieveAgentRequestResponseBody$outboundSchema.parse(retrieveAgentRequestResponseBody));
}
function retrieveAgentRequestResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveAgentRequestResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveAgentRequestResponseBody' from JSON`);
}
//# sourceMappingURL=retrieveagentrequest.js.map