Variable SamplingMessageSchemaConst
SamplingMessageSchema: 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",
>,
>,
],
>;
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",
>,
>,
],
>;
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",
>,
>,
],
>;
role: ZodEnum<["user", "assistant"]>;
},
ZodTypeAny,
"passthrough",
>,
> = ...
Describes a message issued to or received from an LLM API.