/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import * as z from "zod/v3";
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,
  z.ZodTypeDef,
  Inputs
> = z.union([
  InstructRequest$outboundSchema,
  z.array(InstructRequest$outboundSchema),
]);

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