UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

264 lines 8.2 kB
import z from "zod"; export declare const anthropicTextBlockSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type: "text"; }>; export type AnthropicTextBlock = z.infer<typeof anthropicTextBlockSchema>; export declare const anthropicImageBlockSchema: z.ZodObject<{ type: z.ZodLiteral<"image">; source: z.ZodObject<{ data: z.ZodString; media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>; type: z.ZodLiteral<"base64">; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }>; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }>; export type AnthropicImageBlock = z.infer<typeof anthropicImageBlockSchema>; export declare const anthropicToolUseBlockSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"tool_use">; name: z.ZodString; input: z.ZodType<import("../../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema").JSONLiteral>; }, "strip", z.ZodTypeAny, { type: "tool_use"; name: string; id: string; input: import("../../jsonLiteralSchema").JSONLiteral; }, { type: "tool_use"; name: string; id: string; input: import("../../jsonLiteralSchema").JSONLiteral; }>; export type AnthropicToolUseBlock = z.infer<typeof anthropicToolUseBlockSchema>; export declare const anthropicToolResultBlockSchema: z.ZodObject<{ type: z.ZodLiteral<"tool_result">; tool_use_id: z.ZodString; content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[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">; source: z.ZodObject<{ data: z.ZodString; media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>; type: z.ZodLiteral<"base64">; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }>; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }>]>, "many">]>; is_error: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "tool_result"; content: string | ({ text: string; type: "text"; } | { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; tool_use_id: string; is_error?: boolean | undefined; }, { type: "tool_result"; content: string | ({ text: string; type: "text"; } | { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; tool_use_id: string; is_error?: boolean | undefined; }>; export type AnthropicToolResultBlock = z.infer<typeof anthropicToolResultBlockSchema>; export declare const anthropicMessagePartSchema: 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">; source: z.ZodObject<{ data: z.ZodString; media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>; type: z.ZodLiteral<"base64">; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }>; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"tool_use">; name: z.ZodString; input: z.ZodType<import("../../jsonLiteralSchema").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema").JSONLiteral>; }, "strip", z.ZodTypeAny, { type: "tool_use"; name: string; id: string; input: import("../../jsonLiteralSchema").JSONLiteral; }, { type: "tool_use"; name: string; id: string; input: import("../../jsonLiteralSchema").JSONLiteral; }>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; tool_use_id: z.ZodString; content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[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">; source: z.ZodObject<{ data: z.ZodString; media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>; type: z.ZodLiteral<"base64">; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }>; }, "strip", z.ZodTypeAny, { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }>]>, "many">]>; is_error: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { type: "tool_result"; content: string | ({ text: string; type: "text"; } | { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; tool_use_id: string; is_error?: boolean | undefined; }, { type: "tool_result"; content: string | ({ text: string; type: "text"; } | { type: "image"; source: { type: "base64"; data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; tool_use_id: string; is_error?: boolean | undefined; }>]>; export type AnthropicMessagePart = z.infer<typeof anthropicMessagePartSchema>; //# sourceMappingURL=messagePartSchemas.d.ts.map