Variable PromptMessageSchemaConst
PromptMessageSchema: ZodObject<
{
content: 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<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
description: ZodOptional<ZodString>;
icons: ZodOptional<
ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
>;
mimeType: ZodOptional<ZodString>;
uri: ZodString;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<ZodString> },
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
description: ZodOptional<ZodString>;
icons: ZodOptional<ZodArray<(...), (...)>>;
mimeType: ZodOptional<ZodString>;
uri: ZodString;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<ZodString> },
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
description: ZodOptional<ZodString>;
icons: ZodOptional<ZodArray<(...), (...)>>;
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: ...; mimeType: ...; uri: ... },
{ text: ... },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<(...), (...)>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<(...), (...)>,
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
extendShape<
{ _meta: ...; mimeType: ...; uri: ... },
{ blob: ... },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<(...), (...)>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<(...), (...)>,
ZodTypeAny,
"passthrough",
>,
>,
],
>;
type: ZodLiteral<"resource">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
resource: ZodUnion<
[
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
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<
{
_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<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
text: ZodString;
type: ZodLiteral<"text">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
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<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
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<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<ZodString> },
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
description: ZodOptional<ZodString>;
icons: ZodOptional<ZodArray<(...), (...)>>;
mimeType: ZodOptional<ZodString>;
uri: ZodString;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<(...)> },
{
_meta: ZodOptional<(...)>;
description: ZodOptional<(...)>;
icons: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<(...)> },
{
_meta: ZodOptional<(...)>;
description: ZodOptional<(...)>;
icons: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
resource: ZodUnion<
[
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
],
>;
type: ZodLiteral<"resource">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
resource: ZodUnion<
[
ZodObject<(...), (...), (...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
resource: ZodUnion<
[
ZodObject<(...), (...), (...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
>,
],
>;
role: ZodEnum<["user", "assistant"]>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
content: 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<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
text: ZodString;
type: ZodLiteral<"text">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
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<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
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<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<ZodString> },
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
description: ZodOptional<ZodString>;
icons: ZodOptional<ZodArray<(...), (...)>>;
mimeType: ZodOptional<ZodString>;
uri: ZodString;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<(...)> },
{
_meta: ZodOptional<(...)>;
description: ZodOptional<(...)>;
icons: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<(...)> },
{
_meta: ZodOptional<(...)>;
description: ZodOptional<(...)>;
icons: ZodOptional<(...)>;
mimeType: ZodOptional<(...)>;
uri: ZodString;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
resource: ZodUnion<
[
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
ZodObject<
extendShape<(...), (...)>,
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
],
>;
type: ZodLiteral<"resource">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
resource: ZodUnion<
[
ZodObject<(...), (...), (...), (...), (...)>,
ZodObject<(...), (...), (...), (...), (...)>,
],
>;
type: ZodLiteral<"resource">;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
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.