UNPKG

@arizeai/phoenix-client

Version:
52 lines 2.26 kB
import z from "zod"; export declare const vercelAIChatPartTextSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>; export type VercelAIChatPartText = z.infer<typeof vercelAIChatPartTextSchema>; export declare const vercelAIChatPartImageSchema: z.ZodObject<{ type: z.ZodLiteral<"image">; image: z.ZodString; mimeType: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type VercelAIChatPartImage = z.infer<typeof vercelAIChatPartImageSchema>; export declare const vercelAIChatPartToolCallSchema: z.ZodObject<{ type: z.ZodLiteral<"tool-call">; toolCallId: z.ZodString; toolName: z.ZodString; input: z.ZodType<import("../../jsonLiteralSchema").JSONLiteral, unknown, z.core.$ZodTypeInternals<import("../../jsonLiteralSchema").JSONLiteral, unknown>>; }, z.core.$strip>; export type VercelAIChatPartToolCall = z.infer<typeof vercelAIChatPartToolCallSchema>; export declare const vercelAIChatPartToolResultSchema: z.ZodObject<{ type: z.ZodLiteral<"tool-result">; toolCallId: z.ZodString; toolName: z.ZodString; output: z.ZodObject<{ type: z.ZodLiteral<"text">; value: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export type VercelAIChatPartToolResult = z.infer<typeof vercelAIChatPartToolResultSchema>; export declare const vercelAIChatPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; image: z.ZodString; mimeType: z.ZodOptional<z.ZodString>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool-call">; toolCallId: z.ZodString; toolName: z.ZodString; input: z.ZodType<import("../../jsonLiteralSchema").JSONLiteral, unknown, z.core.$ZodTypeInternals<import("../../jsonLiteralSchema").JSONLiteral, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool-result">; toolCallId: z.ZodString; toolName: z.ZodString; output: z.ZodObject<{ type: z.ZodLiteral<"text">; value: z.ZodString; }, z.core.$strip>; }, z.core.$strip>], "type">; export type VercelAIChatPart = z.infer<typeof vercelAIChatPartSchema>; //# sourceMappingURL=messagePartSchemas.d.ts.map