@arizeai/phoenix-client
Version:
A client for the Phoenix API
45 lines • 1.83 kB
TypeScript
import z from "zod";
/**
* OpenAI response format schema
*/
export declare const openaiResponseFormatSchema: z.ZodObject<{
type: z.ZodLiteral<"json_schema">;
json_schema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
schema: z.ZodObject<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
type: z.ZodEnum<{
string: "string";
number: "number";
boolean: "boolean";
object: "object";
null: "null";
array: "array";
integer: "integer";
}>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$loose>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<{
string: "string";
number: "number";
boolean: "boolean";
object: "object";
null: "null";
array: "array";
integer: "integer";
}>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$loose>>;
}, z.core.$strip>]>>;
required: z.ZodOptional<z.ZodArray<z.ZodString>>;
additionalProperties: z.ZodOptional<z.ZodBoolean>;
}, z.core.$loose>;
}, z.core.$strip>;
}, z.core.$strip>;
export type OpenAIResponseFormat = z.infer<typeof openaiResponseFormatSchema>;
//# sourceMappingURL=responseFormatSchema.d.ts.map