@arizeai/phoenix-client
Version:
A client for the Phoenix API
64 lines • 1.56 kB
TypeScript
import z from "zod";
export declare const openaiChatPartTextSchema: z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>;
export type OpenAIChatPartText = z.infer<typeof openaiChatPartTextSchema>;
export declare const openaiChatPartImageSchema: z.ZodObject<{
type: z.ZodLiteral<"image_url">;
image_url: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "image_url";
image_url: {
url: string;
};
}, {
type: "image_url";
image_url: {
url: string;
};
}>;
export type OpenAIChatPartImage = z.infer<typeof openaiChatPartImageSchema>;
export declare const openaiChatPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, z.ZodObject<{
type: z.ZodLiteral<"image_url">;
image_url: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "image_url";
image_url: {
url: string;
};
}, {
type: "image_url";
image_url: {
url: string;
};
}>]>;
export type OpenAIChatPart = z.infer<typeof openaiChatPartSchema>;
//# sourceMappingURL=messagePartSchemas.d.ts.map