@arizeai/phoenix-client
Version:
A client for the Phoenix API
92 lines • 3.76 kB
TypeScript
import z from "zod";
export declare const anthropicTextBlockSchema: z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, z.core.$strip>;
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/jpeg";
"image/png": "image/png";
"image/gif": "image/gif";
"image/webp": "image/webp";
}>;
type: z.ZodLiteral<"base64">;
}, z.core.$strip>;
}, z.core.$strip>;
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.js").JSONLiteral, unknown, z.core.$ZodTypeInternals<import("../../jsonLiteralSchema.js").JSONLiteral, unknown>>;
}, z.core.$strip>;
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<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
type: z.ZodLiteral<"image">;
source: z.ZodObject<{
data: z.ZodString;
media_type: z.ZodEnum<{
"image/jpeg": "image/jpeg";
"image/png": "image/png";
"image/gif": "image/gif";
"image/webp": "image/webp";
}>;
type: z.ZodLiteral<"base64">;
}, z.core.$strip>;
}, z.core.$strip>]>>]>;
is_error: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
export type AnthropicToolResultBlock = z.infer<typeof anthropicToolResultBlockSchema>;
export declare const anthropicMessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
type: z.ZodLiteral<"image">;
source: z.ZodObject<{
data: z.ZodString;
media_type: z.ZodEnum<{
"image/jpeg": "image/jpeg";
"image/png": "image/png";
"image/gif": "image/gif";
"image/webp": "image/webp";
}>;
type: z.ZodLiteral<"base64">;
}, z.core.$strip>;
}, z.core.$strip>, z.ZodObject<{
id: z.ZodString;
type: z.ZodLiteral<"tool_use">;
name: z.ZodString;
input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, unknown, z.core.$ZodTypeInternals<import("../../jsonLiteralSchema.js").JSONLiteral, unknown>>;
}, z.core.$strip>, z.ZodObject<{
type: z.ZodLiteral<"tool_result">;
tool_use_id: z.ZodString;
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
type: z.ZodLiteral<"image">;
source: z.ZodObject<{
data: z.ZodString;
media_type: z.ZodEnum<{
"image/jpeg": "image/jpeg";
"image/png": "image/png";
"image/gif": "image/gif";
"image/webp": "image/webp";
}>;
type: z.ZodLiteral<"base64">;
}, z.core.$strip>;
}, z.core.$strip>]>>]>;
is_error: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>], "type">;
export type AnthropicMessagePart = z.infer<typeof anthropicMessagePartSchema>;
//# sourceMappingURL=messagePartSchemas.d.ts.map