Variable PromptMessageSchemaConst
PromptMessageSchema: ZodObject<
{
content: ZodUnion<
[
ZodObject<
{
_meta: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
text: ZodString;
type: ZodLiteral<"text">;
},
"strip",
ZodTypeAny,
{ _meta?: Record<string, unknown>; text: string; type: "text" },
{ _meta?: Record<string, unknown>; text: string; type: "text" },
>,
ZodObject<
{
_meta: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
"strip",
ZodTypeAny,
{
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "image";
},
{
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "image";
},
>,
ZodObject<
{
_meta: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
"strip",
ZodTypeAny,
{
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "audio";
},
{
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "audio";
},
>,
ZodObject<
extendShape<
extendShape<
extendShape<
{ name: ZodString; title: ZodOptional<ZodString> },
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
description: ZodOptional<ZodString>;
mimeType: ZodOptional<ZodString>;
uri: ZodString;
},
>,
{
icons: ZodOptional<
ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
>;
},
>,
{ type: ZodLiteral<"resource_link"> },
>,
"strip",
ZodTypeAny,
{
_meta?: objectOutputType<{}, ZodTypeAny, "passthrough">;
description?: string;
icons?: { mimeType?: string; sizes?: (...)[]; src: string }[];
mimeType?: string;
name: string;
title?: string;
type: "resource_link";
uri: string;
},
{
_meta?: objectInputType<{}, ZodTypeAny, "passthrough">;
description?: string;
icons?: { mimeType?: string; sizes?: (...)[]; src: string }[];
mimeType?: string;
name: string;
title?: string;
type: "resource_link";
uri: string;
},
>,
ZodObject<
{
_meta: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
resource: ZodUnion<
[
ZodObject<
extendShape<
{ _meta: ...; mimeType: ...; uri: ... },
{ text: ... },
>,
"strip",
ZodTypeAny,
{
_meta?: (...) | (...);
mimeType?: (...) | (...);
text: string;
uri: string;
},
{
_meta?: (...)
| (...);
mimeType?: (...) | (...);
text: string;
uri: string;
},
>,
ZodObject<
extendShape<
{ _meta: ...; mimeType: ...; uri: ... },
{ blob: ... },
>,
"strip",
ZodTypeAny,
{
_meta?: (...) | (...);
blob: string;
mimeType?: (...) | (...);
uri: string;
},
{
_meta?: (...)
| (...);
blob: string;
mimeType?: (...) | (...);
uri: string;
},
>,
],
>;
type: ZodLiteral<"resource">;
},
"strip",
ZodTypeAny,
{
_meta?: Record<string, unknown>;
resource:
| {
_meta?: Record<string, unknown>;
mimeType?: string;
text: string;
uri: string;
}
| {
_meta?: Record<string, unknown>;
blob: string;
mimeType?: string;
uri: string;
};
type: "resource";
},
{
_meta?: Record<string, unknown>;
resource:
| {
_meta?: Record<string, unknown>;
mimeType?: string;
text: string;
uri: string;
}
| {
_meta?: Record<string, unknown>;
blob: string;
mimeType?: string;
uri: string;
};
type: "resource";
},
>,
],
>;
role: ZodEnum<["user", "assistant"]>;
},
"strip",
ZodTypeAny,
{
content: | {
_meta?: Record<string, unknown>;
text: string;
type: "text";
}
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "image";
}
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "audio";
}
| {
_meta?: Record<string, unknown>;
resource:
| {
_meta?: Record<string, unknown>;
mimeType?: string;
text: string;
uri: string;
}
| {
_meta?: Record<string, unknown>;
blob: string;
mimeType?: string;
uri: string;
};
type: "resource";
}
| {
_meta?: objectOutputType<{}, ZodTypeAny, "passthrough">;
description?: string;
icons?: { mimeType?: string; sizes?: string[]; src: string }[];
mimeType?: string;
name: string;
title?: string;
type: "resource_link";
uri: string;
};
role: "user"
| "assistant";
},
{
content: | {
_meta?: Record<string, unknown>;
text: string;
type: "text";
}
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "image";
}
| {
_meta?: Record<string, unknown>;
data: string;
mimeType: string;
type: "audio";
}
| {
_meta?: Record<string, unknown>;
resource:
| {
_meta?: Record<string, unknown>;
mimeType?: string;
text: string;
uri: string;
}
| {
_meta?: Record<string, unknown>;
blob: string;
mimeType?: string;
uri: string;
};
type: "resource";
}
| {
_meta?: objectInputType<{}, ZodTypeAny, "passthrough">;
description?: string;
icons?: { mimeType?: string; sizes?: string[]; src: string }[];
mimeType?: string;
name: string;
title?: string;
type: "resource_link";
uri: string;
};
role: "user"
| "assistant";
},
> = ...
Describes a message returned as part of a prompt.