Variable anthropicMessagePartToOpenAIConst
anthropicMessagePartToOpenAI: ZodEffects< ZodDiscriminatedUnion< "type", [ ZodObject< { text: ZodString; type: ZodLiteral<"text"> }, "strip", ZodTypeAny, { text: string; type: "text" }, { text: string; type: "text" }, >, ZodObject< { source: ZodObject< { data: ZodString; media_type: ZodEnum< ["image/jpeg", "image/png", "image/gif", "image/webp"], >; type: ZodLiteral<"base64">; }, "strip", ZodTypeAny, { 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"; type: "base64"; }, >; type: ZodLiteral<"image">; }, "strip", ZodTypeAny, { source: { data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; type: "base64"; }; type: "image"; }, { source: { data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; type: "base64"; }; type: "image"; }, >, ZodObject< { id: ZodString; input: ZodType<JSONLiteral, ZodTypeDef, JSONLiteral>; name: ZodString; type: ZodLiteral<"tool_use">; }, "strip", ZodTypeAny, { id: string; input: JSONLiteral; name: string; type: "tool_use" }, { id: string; input: JSONLiteral; name: string; type: "tool_use" }, >, ZodObject< { content: ZodUnion< [ ZodString, ZodArray< ZodUnion< [ ZodObject<(...)
, (...)
, (...)
, (...)
, (...)
>, ZodObject<(...)
, (...)
, (...)
, (...)
, (...)
>, ], >, "many", >, ], >; is_error: ZodOptional<ZodBoolean>; tool_use_id: ZodString; type: ZodLiteral<"tool_result">; }, "strip", ZodTypeAny, { content: | string | (
| { text: string; type: "text" } | { source: { data: string; media_type: (...)
| (...)
| (...)
| (...)
; type: "base64"; }; type: "image"; } )
[]; is_error?: boolean; tool_use_id: string; type: "tool_result"; }, { content: | string | (
| { text: string; type: "text" } | { source: { data: string; media_type: (...)
| (...)
| (...)
| (...)
; type: "base64"; }; type: "image"; } )
[]; is_error?: boolean; tool_use_id: string; type: "tool_result"; }, >, ], >, | null | { text: string; type: "text" } | { image_url: { url: string }; type: "image_url" }, | { id: string; input: JSONLiteral; name: string; type: "tool_use" } | { text: string; type: "text" } | { source: { data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; type: "base64"; }; type: "image"; } | { content: | string | (
| { text: string; type: "text" } | { source: { data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; type: "base64"; }; type: "image"; } )
[]; is_error?: boolean; tool_use_id: string; type: "tool_result"; },> = ...