Variable ContentBlockSchemaConst
ContentBlockSchema: ZodUnion<
[
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
text: ZodString;
type: ZodLiteral<"text">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
text: ZodString;
type: ZodLiteral<"text">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
text: ZodString;
type: ZodLiteral<"text">;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<ZodString> },
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
description: ZodOptional<ZodString>;
icons: ZodOptional<
ZodArray<
ZodObject<
{
mimeType: ZodOptional<(...)>;
sizes: ZodOptional<(...)>;
src: ZodString;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ mimeType: ...; sizes: ...; src: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ mimeType: ...; sizes: ...; src: ... },
ZodTypeAny,
"passthrough",
>,
>,
"many",
>,
>;
mimeType: ZodOptional<ZodString>;
uri: ZodString;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<ZodString> },
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
description: ZodOptional<ZodString>;
icons: ZodOptional<
ZodArray<
ZodObject<
{ mimeType: ...; sizes: ...; src: ... },
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
"many",
>,
>;
mimeType: ZodOptional<ZodString>;
uri: ZodString;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<ZodString> },
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
description: ZodOptional<ZodString>;
icons: ZodOptional<
ZodArray<
ZodObject<
{ mimeType: ...; sizes: ...; src: ... },
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
"many",
>,
>;
mimeType: ZodOptional<ZodString>;
uri: ZodString;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
resource: ZodUnion<
[
ZodObject<
extendShape<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
mimeType: ZodOptional<ZodString>;
uri: ZodString;
},
{ text: ZodString },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{
_meta: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
{ text: ZodString },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{
_meta: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
{ text: ZodString },
>,
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
extendShape<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
mimeType: ZodOptional<ZodString>;
uri: ZodString;
},
{ blob: ZodEffects<ZodString, string, string> },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{
_meta: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
{ blob: ZodEffects<(...), (...), (...)> },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{
_meta: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
{ blob: ZodEffects<(...), (...), (...)> },
>,
ZodTypeAny,
"passthrough",
>,
>,
],
>;
type: ZodLiteral<"resource">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
resource: ZodUnion<
[
ZodObject<
extendShape<
{
_meta: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
{ text: ZodString },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{ _meta: ...; mimeType: ...; uri: ... },
{ text: ... },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{ _meta: ...; mimeType: ...; uri: ... },
{ text: ... },
>,
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
extendShape<
{
_meta: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
{ blob: ZodEffects<(...), (...), (...)> },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{ _meta: ...; mimeType: ...; uri: ... },
{ blob: ... },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{ _meta: ...; mimeType: ...; uri: ... },
{ blob: ... },
>,
ZodTypeAny,
"passthrough",
>,
>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
resource: ZodUnion<
[
ZodObject<
extendShape<
{
_meta: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
{ text: ZodString },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{ _meta: ...; mimeType: ...; uri: ... },
{ text: ... },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{ _meta: ...; mimeType: ...; uri: ... },
{ text: ... },
>,
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
extendShape<
{
_meta: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
{ blob: ZodEffects<(...), (...), (...)> },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{ _meta: ...; mimeType: ...; uri: ... },
{ blob: ... },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{ _meta: ...; mimeType: ...; uri: ... },
{ blob: ... },
>,
ZodTypeAny,
"passthrough",
>,
>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
>,
],
> = ...
A content block that can be used in prompts and tool results.