/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 72438d323c53
 */

import * as z from "zod/v4";
import { smartUnion } from "../../types/smartUnion.js";
import {
  InstructRequest,
  InstructRequest$Outbound,
  InstructRequest$outboundSchema,
} from "./instructrequest.js";

/**
 * Chat to classify
 */
export type Inputs = InstructRequest | Array<InstructRequest>;

/** @internal */
export type Inputs$Outbound =
  | InstructRequest$Outbound
  | Array<InstructRequest$Outbound>;

/** @internal */
export const Inputs$outboundSchema: z.ZodType<Inputs$Outbound, Inputs> =
  smartUnion([
    InstructRequest$outboundSchema,
    z.array(InstructRequest$outboundSchema),
  ]);

export function inputsToJSON(inputs: Inputs): string {
  return JSON.stringify(Inputs$outboundSchema.parse(inputs));
}
