Variable PromptMessageSchemaConst
PromptMessageSchema: ZodObject<
{
content: ZodUnion<
[
ZodObject<
{ text: ZodString; type: ZodLiteral<"text"> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ text: ZodString; type: ZodLiteral<"text"> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ text: ZodString; type: ZodLiteral<"text"> },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"image"> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"image"> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"image"> },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"audio"> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"audio"> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"audio"> },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
resource: ZodUnion<
[
ZodObject<
extendShape<{ mimeType: ...; uri: ... }, { text: ... }>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<(...), (...)>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<(...), (...)>,
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
extendShape<{ mimeType: ...; uri: ... }, { blob: ... }>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<(...), (...)>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<(...), (...)>,
ZodTypeAny,
"passthrough",
>,
>,
],
>;
type: ZodLiteral<"resource">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
resource: ZodUnion<
[
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
resource: ZodUnion<
[
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
>,
],
>;
role: ZodEnum<["user", "assistant"]>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
content: ZodUnion<
[
ZodObject<
{ text: ZodString; type: ZodLiteral<"text"> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ text: ZodString; type: ZodLiteral<"text"> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ text: ZodString; type: ZodLiteral<"text"> },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"image"> },
"passthrough",
ZodTypeAny,
objectOutputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"audio"> },
"passthrough",
ZodTypeAny,
objectOutputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
resource: ZodUnion<
[
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
],
>;
type: ZodLiteral<"resource">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
resource: ZodUnion<
[
ZodObject<(...), (...), (...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
resource: ZodUnion<
[
ZodObject<(...), (...), (...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
>,
],
>;
role: ZodEnum<["user", "assistant"]>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
content: ZodUnion<
[
ZodObject<
{ text: ZodString; type: ZodLiteral<"text"> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ text: ZodString; type: ZodLiteral<"text"> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ text: ZodString; type: ZodLiteral<"text"> },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"image"> },
"passthrough",
ZodTypeAny,
objectOutputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"audio"> },
"passthrough",
ZodTypeAny,
objectOutputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
resource: ZodUnion<
[
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
],
>;
type: ZodLiteral<"resource">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
resource: ZodUnion<
[
ZodObject<(...), (...), (...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
resource: ZodUnion<
[
ZodObject<(...), (...), (...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
>,
],
>;
role: ZodEnum<["user", "assistant"]>;
},
ZodTypeAny,
"passthrough",
>,
> = ...
Describes a message returned as part of a prompt.