Variable anthropicToolResultBlockSchemaConst
anthropicToolResultBlockSchema: ZodObject<
{
content: ZodUnion<
[
ZodString,
ZodArray<
ZodUnion<
[
ZodObject<
{ text: ZodString; type: ZodLiteral<"text"> },
"strip",
ZodTypeAny,
{ text: string; type: "text" },
{ text: string; type: "text" },
>,
ZodObject<
{
source: ZodObject<
{ data: ...; media_type: ...; type: ... },
"strip",
ZodTypeAny,
{ data: ...; media_type: ...; type: ... },
{ data: ...; media_type: ...; type: ... },
>;
type: ZodLiteral<"image">;
},
"strip",
ZodTypeAny,
{
source: {
data: string;
media_type: (...)
| (...)
| (...)
| (...);
type: "base64";
};
type: "image";
},
{
source: {
data: string;
media_type: (...)
| (...)
| (...)
| (...);
type: "base64";
};
type: "image";
},
>,
],
>,
"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: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
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: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
type: "base64";
};
type: "image";
}
)[];
is_error?: boolean;
tool_use_id: string;
type: "tool_result";
},
> = ...