/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 62c17395b875 */ import * as z from "zod/v3"; export type ToolsCallParameter = { /** * The name of the parameter */ name: string; /** * The value of the parameter (for primitive types) */ value: string; /** * The value of the parameter (for array types) */ items?: Array | undefined; /** * The value of the parameter (for object types) */ properties?: { [k: string]: ToolsCallParameter } | undefined; }; /** @internal */ export type ToolsCallParameter$Outbound = { name: string; value: string; items?: Array | undefined; properties?: { [k: string]: ToolsCallParameter$Outbound } | undefined; }; /** @internal */ export const ToolsCallParameter$outboundSchema: z.ZodType< ToolsCallParameter$Outbound, z.ZodTypeDef, ToolsCallParameter > = z.object({ name: z.string(), value: z.string(), items: z.array(z.lazy(() => ToolsCallParameter$outboundSchema)).optional(), properties: z.record(z.lazy(() => ToolsCallParameter$outboundSchema)) .optional(), }); export function toolsCallParameterToJSON( toolsCallParameter: ToolsCallParameter, ): string { return JSON.stringify( ToolsCallParameter$outboundSchema.parse(toolsCallParameter), ); }