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

import * as z from "zod/v3";
import { remap as remap$ } from "../../lib/primitives.js";
import { Inputs, Inputs$Outbound, Inputs$outboundSchema } from "./inputs.js";

export type ChatClassificationRequest = {
  model: string;
  /**
   * Chat to classify
   */
  inputs: Inputs;
};

/** @internal */
export type ChatClassificationRequest$Outbound = {
  model: string;
  input: Inputs$Outbound;
};

/** @internal */
export const ChatClassificationRequest$outboundSchema: z.ZodType<
  ChatClassificationRequest$Outbound,
  z.ZodTypeDef,
  ChatClassificationRequest
> = z.object({
  model: z.string(),
  inputs: Inputs$outboundSchema,
}).transform((v) => {
  return remap$(v, {
    inputs: "input",
  });
});

export function chatClassificationRequestToJSON(
  chatClassificationRequest: ChatClassificationRequest,
): string {
  return JSON.stringify(
    ChatClassificationRequest$outboundSchema.parse(chatClassificationRequest),
  );
}
