"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.ListAgentsStop$inboundSchema = exports.ListAgentsReasoningEffort$inboundSchema = exports.ListAgentsResponseFormat$inboundSchema = exports.ListAgentsResponseFormatText$inboundSchema = exports.ListAgentsResponseFormatJSONObject$inboundSchema = exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema = exports.ListAgentsResponseFormatJsonSchema$inboundSchema = exports.ListAgentsSettings$inboundSchema = exports.ListAgentsGuardrails$inboundSchema = exports.ListAgentsAgentsExecuteOn$inboundSchema = exports.ListAgentsEvaluators$inboundSchema = exports.ListAgentsExecuteOn$inboundSchema = exports.ListAgentsTools$inboundSchema = exports.ListAgentsConditions$inboundSchema = exports.ListAgentsToolApprovalRequired$inboundSchema = exports.ListAgentsType$inboundSchema = exports.ListAgentsEngine$inboundSchema = exports.ListAgentsSource$inboundSchema = exports.ListAgentsKnowledgeBases$inboundSchema = exports.ListAgentsMetrics$inboundSchema = exports.ListAgentsTeamOfAgents$inboundSchema = exports.ListAgentsStatus$inboundSchema = exports.ListAgentsObject$inboundSchema = exports.ListAgentsRequest$outboundSchema = exports.QueryParamType$outboundSchema = exports.ListAgentsLoadBalancerAgentsType = exports.ListAgentsFallbackModelConfigurationType = exports.ListAgentsFallbackModelConfigurationExecuteOn = exports.ListAgentsIdAgents1 = exports.ListAgentsFallbackModelConfigurationModalities = exports.ListAgentsToolChoiceAgents1 = exports.ListAgentsToolChoiceAgentsType = exports.ListAgentsFallbackModelConfigurationReasoningEffort = exports.ListAgentsLoadBalancerType = exports.ListAgentsAgentsType = exports.ListAgentsAgentsResponseExecuteOn = exports.ListAgentsId1 = exports.ListAgentsModalities = exports.ListAgentsToolChoice1 = exports.ListAgentsToolChoiceType = exports.ListAgentsReasoningEffort = exports.ListAgentsAgentsExecuteOn = exports.ListAgentsExecuteOn = exports.ListAgentsToolApprovalRequired = exports.ListAgentsType = exports.ListAgentsEngine = exports.ListAgentsSource = exports.ListAgentsStatus = exports.ListAgentsObject = exports.QueryParamType = void 0;
exports.ListAgentsFallbackModelConfiguration2$inboundSchema = exports.ListAgentsFallbackModelConfigurationRetry$inboundSchema = exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema = exports.ListAgentsFallbackModelConfigurationTimeout$inboundSchema = exports.ListAgentsFallbackModelConfigurationLoadBalancer$inboundSchema = exports.ListAgentsLoadBalancerAgents1$inboundSchema = exports.ListAgentsLoadBalancerAgentsModels$inboundSchema = exports.ListAgentsLoadBalancerAgentsType$inboundSchema = exports.ListAgentsFallbackModelConfigurationCache$inboundSchema = exports.ListAgentsFallbackModelConfigurationType$inboundSchema = exports.ListAgentsFallbackModelConfigurationFallbacks$inboundSchema = exports.ListAgentsFallbackModelConfigurationGuardrails$inboundSchema = exports.ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema = exports.ListAgentsFallbackModelConfigurationId$inboundSchema = exports.ListAgentsIdAgents1$inboundSchema = exports.ListAgentsFallbackModelConfigurationModalities$inboundSchema = exports.ListAgentsFallbackModelConfigurationToolChoice$inboundSchema = exports.ListAgentsToolChoiceAgents1$inboundSchema = exports.ListAgentsToolChoiceAgents2$inboundSchema = exports.ListAgentsToolChoiceAgentsFunction$inboundSchema = exports.ListAgentsToolChoiceAgentsType$inboundSchema = exports.ListAgentsFallbackModelConfigurationThinking$inboundSchema = exports.ListAgentsFallbackModelConfigurationStop$inboundSchema = exports.ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema = exports.ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema = exports.ListAgentsResponseFormatAgentsText$inboundSchema = exports.ListAgentsResponseFormatAgentsJSONObject$inboundSchema = exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema = exports.ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema = exports.ListAgentsRetry$inboundSchema = exports.ListAgentsParameters$inboundSchema = exports.ListAgentsTimeout$inboundSchema = exports.ListAgentsLoadBalancer$inboundSchema = exports.ListAgentsLoadBalancer1$inboundSchema = exports.ListAgentsLoadBalancerModels$inboundSchema = exports.ListAgentsLoadBalancerType$inboundSchema = exports.ListAgentsCache$inboundSchema = exports.ListAgentsAgentsType$inboundSchema = exports.ListAgentsFallbacks$inboundSchema = exports.ListAgentsAgentsGuardrails$inboundSchema = exports.ListAgentsAgentsResponseExecuteOn$inboundSchema = exports.ListAgentsId$inboundSchema = exports.ListAgentsId1$inboundSchema = exports.ListAgentsModalities$inboundSchema = exports.ListAgentsToolChoice$inboundSchema = exports.ListAgentsToolChoice1$inboundSchema = exports.ListAgentsToolChoice2$inboundSchema = exports.ListAgentsToolChoiceFunction$inboundSchema = exports.ListAgentsToolChoiceType$inboundSchema = exports.ListAgentsThinking$inboundSchema = void 0;
exports.ListAgentsResponseBody$inboundSchema = exports.ListAgentsData$inboundSchema = exports.ListAgentsA2AAgentConfiguration$inboundSchema = exports.ListAgentsHeaders$inboundSchema = exports.ListAgentsModel$inboundSchema = exports.ListAgentsFallbackModelConfiguration$inboundSchema = void 0;
exports.listAgentsRequestToJSON = listAgentsRequestToJSON;
exports.listAgentsTeamOfAgentsFromJSON = listAgentsTeamOfAgentsFromJSON;
exports.listAgentsMetricsFromJSON = listAgentsMetricsFromJSON;
exports.listAgentsKnowledgeBasesFromJSON = listAgentsKnowledgeBasesFromJSON;
exports.listAgentsConditionsFromJSON = listAgentsConditionsFromJSON;
exports.listAgentsToolsFromJSON = listAgentsToolsFromJSON;
exports.listAgentsEvaluatorsFromJSON = listAgentsEvaluatorsFromJSON;
exports.listAgentsGuardrailsFromJSON = listAgentsGuardrailsFromJSON;
exports.listAgentsSettingsFromJSON = listAgentsSettingsFromJSON;
exports.listAgentsResponseFormatJsonSchemaFromJSON = listAgentsResponseFormatJsonSchemaFromJSON;
exports.listAgentsResponseFormatAgentsJSONSchemaFromJSON = listAgentsResponseFormatAgentsJSONSchemaFromJSON;
exports.listAgentsResponseFormatJSONObjectFromJSON = listAgentsResponseFormatJSONObjectFromJSON;
exports.listAgentsResponseFormatTextFromJSON = listAgentsResponseFormatTextFromJSON;
exports.listAgentsResponseFormatFromJSON = listAgentsResponseFormatFromJSON;
exports.listAgentsStopFromJSON = listAgentsStopFromJSON;
exports.listAgentsThinkingFromJSON = listAgentsThinkingFromJSON;
exports.listAgentsToolChoiceFunctionFromJSON = listAgentsToolChoiceFunctionFromJSON;
exports.listAgentsToolChoice2FromJSON = listAgentsToolChoice2FromJSON;
exports.listAgentsToolChoiceFromJSON = listAgentsToolChoiceFromJSON;
exports.listAgentsIdFromJSON = listAgentsIdFromJSON;
exports.listAgentsAgentsGuardrailsFromJSON = listAgentsAgentsGuardrailsFromJSON;
exports.listAgentsFallbacksFromJSON = listAgentsFallbacksFromJSON;
exports.listAgentsCacheFromJSON = listAgentsCacheFromJSON;
exports.listAgentsLoadBalancerModelsFromJSON = listAgentsLoadBalancerModelsFromJSON;
exports.listAgentsLoadBalancer1FromJSON = listAgentsLoadBalancer1FromJSON;
exports.listAgentsLoadBalancerFromJSON = listAgentsLoadBalancerFromJSON;
exports.listAgentsTimeoutFromJSON = listAgentsTimeoutFromJSON;
exports.listAgentsParametersFromJSON = listAgentsParametersFromJSON;
exports.listAgentsRetryFromJSON = listAgentsRetryFromJSON;
exports.listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON = listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON;
exports.listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON = listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON;
exports.listAgentsResponseFormatAgentsJSONObjectFromJSON = listAgentsResponseFormatAgentsJSONObjectFromJSON;
exports.listAgentsResponseFormatAgentsTextFromJSON = listAgentsResponseFormatAgentsTextFromJSON;
exports.listAgentsFallbackModelConfigurationResponseFormatFromJSON = listAgentsFallbackModelConfigurationResponseFormatFromJSON;
exports.listAgentsFallbackModelConfigurationStopFromJSON = listAgentsFallbackModelConfigurationStopFromJSON;
exports.listAgentsFallbackModelConfigurationThinkingFromJSON = listAgentsFallbackModelConfigurationThinkingFromJSON;
exports.listAgentsToolChoiceAgentsFunctionFromJSON = listAgentsToolChoiceAgentsFunctionFromJSON;
exports.listAgentsToolChoiceAgents2FromJSON = listAgentsToolChoiceAgents2FromJSON;
exports.listAgentsFallbackModelConfigurationToolChoiceFromJSON = listAgentsFallbackModelConfigurationToolChoiceFromJSON;
exports.listAgentsFallbackModelConfigurationIdFromJSON = listAgentsFallbackModelConfigurationIdFromJSON;
exports.listAgentsFallbackModelConfigurationGuardrailsFromJSON = listAgentsFallbackModelConfigurationGuardrailsFromJSON;
exports.listAgentsFallbackModelConfigurationFallbacksFromJSON = listAgentsFallbackModelConfigurationFallbacksFromJSON;
exports.listAgentsFallbackModelConfigurationCacheFromJSON = listAgentsFallbackModelConfigurationCacheFromJSON;
exports.listAgentsLoadBalancerAgentsModelsFromJSON = listAgentsLoadBalancerAgentsModelsFromJSON;
exports.listAgentsLoadBalancerAgents1FromJSON = listAgentsLoadBalancerAgents1FromJSON;
exports.listAgentsFallbackModelConfigurationLoadBalancerFromJSON = listAgentsFallbackModelConfigurationLoadBalancerFromJSON;
exports.listAgentsFallbackModelConfigurationTimeoutFromJSON = listAgentsFallbackModelConfigurationTimeoutFromJSON;
exports.listAgentsFallbackModelConfigurationParametersFromJSON = listAgentsFallbackModelConfigurationParametersFromJSON;
exports.listAgentsFallbackModelConfigurationRetryFromJSON = listAgentsFallbackModelConfigurationRetryFromJSON;
exports.listAgentsFallbackModelConfiguration2FromJSON = listAgentsFallbackModelConfiguration2FromJSON;
exports.listAgentsFallbackModelConfigurationFromJSON = listAgentsFallbackModelConfigurationFromJSON;
exports.listAgentsModelFromJSON = listAgentsModelFromJSON;
exports.listAgentsHeadersFromJSON = listAgentsHeadersFromJSON;
exports.listAgentsA2AAgentConfigurationFromJSON = listAgentsA2AAgentConfigurationFromJSON;
exports.listAgentsDataFromJSON = listAgentsDataFromJSON;
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");
const components = __importStar(require("../components/index.js"));
/**
 * Filter agents by type: "internal" for Orquesta-managed agents, "a2a" for external A2A-compliant agents
 */
exports.QueryParamType = {
    Internal: "internal",
    A2a: "a2a",
};
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",
};
exports.ListAgentsSource = {
    Internal: "internal",
    External: "external",
    Experiment: "experiment",
};
exports.ListAgentsEngine = {
    Text: "text",
    Jinja: "jinja",
    Mustache: "mustache",
};
/**
 * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
 */
exports.ListAgentsType = {
    Internal: "internal",
    A2a: "a2a",
};
/**
 * 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",
};
/**
 * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
 *
 * @remarks
 *
 * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
 * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
 * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
 * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
 *
 * Any of "none", "minimal", "low", "medium", "high", "xhigh".
 */
exports.ListAgentsReasoningEffort = {
    None: "none",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
    Xhigh: "xhigh",
};
/**
 * 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 key of the guardrail.
 */
exports.ListAgentsId1 = {
    OrqPiiDetection: "orq_pii_detection",
    OrqSexualModeration: "orq_sexual_moderation",
    OrqHarmfulModeration: "orq_harmful_moderation",
};
/**
 * Determines whether the guardrail runs on the input (user message) or output (model response).
 */
exports.ListAgentsAgentsResponseExecuteOn = {
    Input: "input",
    Output: "output",
};
exports.ListAgentsAgentsType = {
    ExactMatch: "exact_match",
};
exports.ListAgentsLoadBalancerType = {
    WeightBased: "weight_based",
};
/**
 * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
 *
 * @remarks
 *
 * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
 * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
 * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
 * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
 *
 * Any of "none", "minimal", "low", "medium", "high", "xhigh".
 */
exports.ListAgentsFallbackModelConfigurationReasoningEffort = {
    None: "none",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
    Xhigh: "xhigh",
};
/**
 * 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",
};
/**
 * The key of the guardrail.
 */
exports.ListAgentsIdAgents1 = {
    OrqPiiDetection: "orq_pii_detection",
    OrqSexualModeration: "orq_sexual_moderation",
    OrqHarmfulModeration: "orq_harmful_moderation",
};
/**
 * Determines whether the guardrail runs on the input (user message) or output (model response).
 */
exports.ListAgentsFallbackModelConfigurationExecuteOn = {
    Input: "input",
    Output: "output",
};
exports.ListAgentsFallbackModelConfigurationType = {
    ExactMatch: "exact_match",
};
exports.ListAgentsLoadBalancerAgentsType = {
    WeightBased: "weight_based",
};
/** @internal */
exports.QueryParamType$outboundSchema = z.nativeEnum(exports.QueryParamType);
/** @internal */
exports.ListAgentsRequest$outboundSchema = z.object({
    limit: z.number().optional(),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
    type: exports.QueryParamType$outboundSchema.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));
}
/** @internal */
exports.ListAgentsObject$inboundSchema = z.nativeEnum(exports.ListAgentsObject);
/** @internal */
exports.ListAgentsStatus$inboundSchema = z.nativeEnum(exports.ListAgentsStatus);
/** @internal */
exports.ListAgentsTeamOfAgents$inboundSchema = z.object({
    key: z.string(),
    role: z.string().optional(),
});
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",
    });
});
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",
    });
});
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.ListAgentsSource$inboundSchema = z.nativeEnum(exports.ListAgentsSource);
/** @internal */
exports.ListAgentsEngine$inboundSchema = z.nativeEnum(exports.ListAgentsEngine);
/** @internal */
exports.ListAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentsType);
/** @internal */
exports.ListAgentsToolApprovalRequired$inboundSchema = z.nativeEnum(exports.ListAgentsToolApprovalRequired);
/** @internal */
exports.ListAgentsConditions$inboundSchema = z.object({
    condition: z.string(),
    operator: z.string(),
    value: z.string(),
});
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",
    });
});
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.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",
    });
});
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.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",
    });
});
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(600),
    max_cost: z.number().default(0),
    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",
        "max_cost": "maxCost",
        "tool_approval_required": "toolApprovalRequired",
    });
});
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.ListAgentsResponseFormatJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
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: z.literal("json_schema"),
    json_schema: z.lazy(() => exports.ListAgentsResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
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.ListAgentsResponseFormatJSONObject$inboundSchema = z.object({
    type: z.literal("json_object"),
});
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.ListAgentsResponseFormatText$inboundSchema = z.object({
    type: z.literal("text"),
});
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.ListAgentsResponseFormatText$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatJSONObject$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
]);
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.ListAgentsReasoningEffort$inboundSchema = z.nativeEnum(exports.ListAgentsReasoningEffort);
/** @internal */
exports.ListAgentsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
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.ListAgentsThinking$inboundSchema = z.union([
    components.ThinkingConfigDisabledSchema$inboundSchema,
    components.ThinkingConfigEnabledSchema$inboundSchema,
    components.ThinkingConfigAdaptiveSchema$inboundSchema,
]);
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.ListAgentsToolChoiceFunction$inboundSchema = z.object({
    name: z.string(),
});
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),
});
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.ListAgentsToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsToolChoice2$inboundSchema),
    exports.ListAgentsToolChoice1$inboundSchema,
]);
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.ListAgentsId1$inboundSchema = z.nativeEnum(exports.ListAgentsId1);
/** @internal */
exports.ListAgentsId$inboundSchema = z.union([exports.ListAgentsId1$inboundSchema, z.string()]);
function listAgentsIdFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsId' from JSON`);
}
/** @internal */
exports.ListAgentsAgentsResponseExecuteOn$inboundSchema = z.nativeEnum(exports.ListAgentsAgentsResponseExecuteOn);
/** @internal */
exports.ListAgentsAgentsGuardrails$inboundSchema = z.object({
    id: z.union([exports.ListAgentsId1$inboundSchema, z.string()]),
    execute_on: exports.ListAgentsAgentsResponseExecuteOn$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "execute_on": "executeOn",
    });
});
function listAgentsAgentsGuardrailsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsAgentsGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsAgentsGuardrails' from JSON`);
}
/** @internal */
exports.ListAgentsFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function listAgentsFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbacks' from JSON`);
}
/** @internal */
exports.ListAgentsAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentsAgentsType);
/** @internal */
exports.ListAgentsCache$inboundSchema = z.object({
    ttl: z.number().default(1800),
    type: exports.ListAgentsAgentsType$inboundSchema,
});
function listAgentsCacheFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsCache' from JSON`);
}
/** @internal */
exports.ListAgentsLoadBalancerType$inboundSchema = z.nativeEnum(exports.ListAgentsLoadBalancerType);
/** @internal */
exports.ListAgentsLoadBalancerModels$inboundSchema = z.object({
    model: z.string(),
    weight: z.number().default(0.5),
});
function listAgentsLoadBalancerModelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsLoadBalancerModels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsLoadBalancerModels' from JSON`);
}
/** @internal */
exports.ListAgentsLoadBalancer1$inboundSchema = z.object({
    type: exports.ListAgentsLoadBalancerType$inboundSchema,
    models: z.array(z.lazy(() => exports.ListAgentsLoadBalancerModels$inboundSchema)),
});
function listAgentsLoadBalancer1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsLoadBalancer1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsLoadBalancer1' from JSON`);
}
/** @internal */
exports.ListAgentsLoadBalancer$inboundSchema = z.lazy(() => exports.ListAgentsLoadBalancer1$inboundSchema);
function listAgentsLoadBalancerFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsLoadBalancer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsLoadBalancer' from JSON`);
}
/** @internal */
exports.ListAgentsTimeout$inboundSchema = z.object({
    call_timeout: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "call_timeout": "callTimeout",
    });
});
function listAgentsTimeoutFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsTimeout$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsTimeout' from JSON`);
}
/** @internal */
exports.ListAgentsParameters$inboundSchema = z.object({
    name: z.string().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(),
    presence_penalty: z.nullable(z.number()).optional(),
    response_format: z.union([
        z.lazy(() => exports.ListAgentsResponseFormatText$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatJSONObject$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
    ]).optional(),
    reasoning_effort: exports.ListAgentsReasoningEffort$inboundSchema.optional(),
    verbosity: z.string().optional(),
    seed: z.nullable(z.number()).optional(),
    stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
    thinking: z.union([
        components.ThinkingConfigDisabledSchema$inboundSchema,
        components.ThinkingConfigEnabledSchema$inboundSchema,
        components.ThinkingConfigAdaptiveSchema$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(),
    guardrails: z.array(z.lazy(() => exports.ListAgentsAgentsGuardrails$inboundSchema))
        .optional(),
    fallbacks: z.array(z.lazy(() => exports.ListAgentsFallbacks$inboundSchema))
        .optional(),
    cache: z.lazy(() => exports.ListAgentsCache$inboundSchema).optional(),
    load_balancer: z.lazy(() => exports.ListAgentsLoadBalancer1$inboundSchema).optional(),
    timeout: z.lazy(() => exports.ListAgentsTimeout$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "frequency_penalty": "frequencyPenalty",
        "max_tokens": "maxTokens",
        "max_completion_tokens": "maxCompletionTokens",
        "presence_penalty": "presencePenalty",
        "response_format": "responseFormat",
        "reasoning_effort": "reasoningEffort",
        "top_p": "topP",
        "top_k": "topK",
        "tool_choice": "toolChoice",
        "parallel_tool_calls": "parallelToolCalls",
        "load_balancer": "loadBalancer",
    });
});
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",
    });
});
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.ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
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: z.literal("json_schema"),
    json_schema: z.lazy(() => exports.ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
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.ListAgentsResponseFormatAgentsJSONObject$inboundSchema = z.object({
    type: z.literal("json_object"),
});
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.ListAgentsResponseFormatAgentsText$inboundSchema = z.object({
    type: z.literal("text"),
});
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.ListAgentsResponseFormatAgentsText$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema),
]);
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.ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema = z.nativeEnum(exports.ListAgentsFallbackModelConfigurationReasoningEffort);
/** @internal */
exports.ListAgentsFallbackModelConfigurationStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
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.ListAgentsFallbackModelConfigurationThinking$inboundSchema = z.union([
    components.ThinkingConfigDisabledSchema$inboundSchema,
    components.ThinkingConfigEnabledSchema$inboundSchema,
    components.ThinkingConfigAdaptiveSchema$inboundSchema,
]);
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.ListAgentsToolChoiceAgentsFunction$inboundSchema = z.object({
    name: z.string(),
});
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),
});
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.ListAgentsFallbackModelConfigurationToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsToolChoiceAgents2$inboundSchema),
    exports.ListAgentsToolChoiceAgents1$inboundSchema,
]);
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.ListAgentsIdAgents1$inboundSchema = z.nativeEnum(exports.ListAgentsIdAgents1);
/** @internal */
exports.ListAgentsFallbackModelConfigurationId$inboundSchema = z.union([exports.ListAgentsIdAgents1$inboundSchema, z.string()]);
function listAgentsFallbackModelConfigurationIdFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationId' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema = z
    .nativeEnum(exports.ListAgentsFallbackModelConfigurationExecuteOn);
/** @internal */
exports.ListAgentsFallbackModelConfigurationGuardrails$inboundSchema = z.object({
    id: z.union([exports.ListAgentsIdAgents1$inboundSchema, z.string()]),
    execute_on: exports.ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "execute_on": "executeOn",
    });
});
function listAgentsFallbackModelConfigurationGuardrailsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationGuardrails' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function listAgentsFallbackModelConfigurationFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationFallbacks' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationType$inboundSchema = z
    .nativeEnum(exports.ListAgentsFallbackModelConfigurationType);
/** @internal */
exports.ListAgentsFallbackModelConfigurationCache$inboundSchema = z.object({
    ttl: z.number().default(1800),
    type: exports.ListAgentsFallbackModelConfigurationType$inboundSchema,
});
function listAgentsFallbackModelConfigurationCacheFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationCache' from JSON`);
}
/** @internal */
exports.ListAgentsLoadBalancerAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentsLoadBalancerAgentsType);
/** @internal */
exports.ListAgentsLoadBalancerAgentsModels$inboundSchema = z.object({
    model: z.string(),
    weight: z.number().default(0.5),
});
function listAgentsLoadBalancerAgentsModelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsLoadBalancerAgentsModels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsLoadBalancerAgentsModels' from JSON`);
}
/** @internal */
exports.ListAgentsLoadBalancerAgents1$inboundSchema = z.object({
    type: exports.ListAgentsLoadBalancerAgentsType$inboundSchema,
    models: z.array(z.lazy(() => exports.ListAgentsLoadBalancerAgentsModels$inboundSchema)),
});
function listAgentsLoadBalancerAgents1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsLoadBalancerAgents1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsLoadBalancerAgents1' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationLoadBalancer$inboundSchema = z.lazy(() => exports.ListAgentsLoadBalancerAgents1$inboundSchema);
function listAgentsFallbackModelConfigurationLoadBalancerFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationLoadBalancer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationLoadBalancer' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationTimeout$inboundSchema = z.object({
    call_timeout: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "call_timeout": "callTimeout",
    });
});
function listAgentsFallbackModelConfigurationTimeoutFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationTimeout$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationTimeout' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema = z.object({
    name: z.string().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(),
    presence_penalty: z.nullable(z.number()).optional(),
    response_format: z.union([
        z.lazy(() => exports.ListAgentsResponseFormatAgentsText$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema),
    ]).optional(),
    reasoning_effort: exports.ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema
        .optional(),
    verbosity: z.string().optional(),
    seed: z.nullable(z.number()).optional(),
    stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
    thinking: z.union([
        components.ThinkingConfigDisabledSchema$inboundSchema,
        components.ThinkingConfigEnabledSchema$inboundSchema,
        components.ThinkingConfigAdaptiveSchema$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(),
    guardrails: z.array(z.lazy(() => exports.ListAgentsFallbackModelConfigurationGuardrails$inboundSchema)).optional(),
    fallbacks: z.array(z.lazy(() => exports.ListAgentsFallbackModelConfigurationFallbacks$inboundSchema)).optional(),
    cache: z.lazy(() => exports.ListAgentsFallbackModelConfigurationCache$inboundSchema)
        .optional(),
    load_balancer: z.lazy(() => exports.ListAgentsLoadBalancerAgents1$inboundSchema)
        .optional(),
    timeout: z.lazy(() => exports.ListAgentsFallbackModelConfigurationTimeout$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "frequency_penalty": "frequencyPenalty",
        "max_tokens": "maxTokens",
        "max_completion_tokens": "maxCompletionTokens",
        "presence_penalty": "presencePenalty",
        "response_format": "responseFormat",
        "reasoning_effort": "reasoningEffort",
        "top_p": "topP",
        "top_k": "topK",
        "tool_choice": "toolChoice",
        "parallel_tool_calls": "parallelToolCalls",
        "load_balancer": "loadBalancer",
    });
});
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.ListAgentsFallbackModelConfigurationRetry$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",
    });
});
function listAgentsFallbackModelConfigurationRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationRetry' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelConfiguration2$inboundSchema = z.object({
    id: z.string(),
    parameters: z.lazy(() => exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema).optional(),
    retry: z.lazy(() => exports.ListAgentsFallbackModelConfigurationRetry$inboundSchema)
        .optional(),
});
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(),
]);
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",
    });
});
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.ListAgentsHeaders$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function listAgentsHeadersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsHeaders' from JSON`);
}
/** @internal */
exports.ListAgentsA2AAgentConfiguration$inboundSchema = z.object({
    agent_url: z.string(),
    card_url: z.string().optional(),
    headers: z.record(z.lazy(() => exports.ListAgentsHeaders$inboundSchema)).optional(),
    cached_card: z.any().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "agent_url": "agentUrl",
        "card_url": "cardUrl",
        "cached_card": "cachedCard",
    });
});
function listAgentsA2AAgentConfigurationFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsA2AAgentConfiguration' from JSON`);
}
/** @internal */
exports.ListAgentsData$inboundSchema = z.object({
    _id: z.string(),
    key: z.string(),
    display_name: z.string().optional(),
    created_by_id: z.nullable(z.string()).optional(),
    updated_by_id: z.nullable(z.string()).optional(),
    created: z.string().optional(),
    updated: z.string().optional(),
    status: exports.ListAgentsStatus$inboundSchema,
    version: z.string().optional(),
    path: z.string(),
    memory_stores: z.array(z.string()).optional(),
    team_of_agents: z.array(z.lazy(() => exports.ListAgentsTeamOfAgents$inboundSchema))
        .optional(),
    skills: z.array(z.string()),
    metrics: z.lazy(() => exports.ListAgentsMetrics$inboundSchema).optional(),
    variables: z.record(z.any()).optional(),
    knowledge_bases: z.array(z.lazy(() => exports.ListAgentsKnowledgeBases$inboundSchema))
        .optional(),
    source: exports.ListAgentsSource$inboundSchema.optional(),
    engine: exports.ListAgentsEngine$inboundSchema.default("text"),
    type: exports.ListAgentsType$inboundSchema.default("internal"),
    role: z.string(),
    description: z.string(),
    system_prompt: z.nullable(z.string()).optional(),
    instructions: z.string(),
    settings: z.lazy(() => exports.ListAgentsSettings$inboundSchema).optional(),
    model: z.lazy(() => exports.ListAgentsModel$inboundSchema),
    a2a: z.lazy(() => exports.ListAgentsA2AAgentConfiguration$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "display_name": "displayName",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "memory_stores": "memoryStores",
        "team_of_agents": "teamOfAgents",
        "knowledge_bases": "knowledgeBases",
        "system_prompt": "systemPrompt",
    });
});
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",
    });
});
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