/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: f0205e8c12f4
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { CodeInterpreterTool$outboundSchema, } from "./codeinterpretertool.js";
import { CompletionArgs$outboundSchema, } from "./completionargs.js";
import { CustomConnector$outboundSchema, } from "./customconnector.js";
import { DocumentLibraryTool$outboundSchema, } from "./documentlibrarytool.js";
import { FunctionTool$outboundSchema, } from "./functiontool.js";
import { GuardrailConfig$outboundSchema, } from "./guardrailconfig.js";
import { ImageGenerationTool$outboundSchema, } from "./imagegenerationtool.js";
import { WebSearchPremiumTool$outboundSchema, } from "./websearchpremiumtool.js";
import { WebSearchTool$outboundSchema, } from "./websearchtool.js";
/** @internal */
export const UpdateAgentRequestTool$outboundSchema = z.union([
    CodeInterpreterTool$outboundSchema,
    CustomConnector$outboundSchema,
    DocumentLibraryTool$outboundSchema,
    FunctionTool$outboundSchema,
    ImageGenerationTool$outboundSchema,
    WebSearchTool$outboundSchema,
    WebSearchPremiumTool$outboundSchema,
]);
export function updateAgentRequestToolToJSON(updateAgentRequestTool) {
    return JSON.stringify(UpdateAgentRequestTool$outboundSchema.parse(updateAgentRequestTool));
}
/** @internal */
export const UpdateAgentRequest$outboundSchema = z.object({
    instructions: z.nullable(z.string()).optional(),
    tools: z.array(z.union([
        CodeInterpreterTool$outboundSchema,
        CustomConnector$outboundSchema,
        DocumentLibraryTool$outboundSchema,
        FunctionTool$outboundSchema,
        ImageGenerationTool$outboundSchema,
        WebSearchTool$outboundSchema,
        WebSearchPremiumTool$outboundSchema,
    ])).optional(),
    completionArgs: CompletionArgs$outboundSchema.optional(),
    guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
    model: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    description: z.nullable(z.string()).optional(),
    handoffs: z.nullable(z.array(z.string())).optional(),
    deploymentChat: z.nullable(z.boolean()).optional(),
    metadata: z.nullable(z.record(z.string(), z.any())).optional(),
    versionMessage: z.nullable(z.string()).optional(),
}).transform((v) => {
    return remap$(v, {
        completionArgs: "completion_args",
        deploymentChat: "deployment_chat",
        versionMessage: "version_message",
    });
});
export function updateAgentRequestToJSON(updateAgentRequest) {
    return JSON.stringify(UpdateAgentRequest$outboundSchema.parse(updateAgentRequest));
}
//# sourceMappingURL=updateagentrequest.js.map