Variable ClientResultSchemaConst
ClientResultSchema: ZodUnion<
[
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
"strict",
ZodTypeAny,
{ _meta?: objectOutputType<{}, ZodTypeAny, "passthrough"> },
{ _meta?: objectInputType<{}, ZodTypeAny, "passthrough"> },
>,
ZodObject<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
{
content: ZodDiscriminatedUnion<
"type",
[
ZodObject<
{ text: ZodString; type: ZodLiteral<"text"> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ text: ZodString; type: ZodLiteral<(...)> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ text: ZodString; type: ZodLiteral<(...)> },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
>,
],
>;
model: ZodString;
role: ZodEnum<["user", "assistant"]>;
stopReason: ZodOptional<
ZodUnion<
[ZodEnum<["endTurn", "stopSequence", "maxTokens"]>, ZodString],
>,
>;
},
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
{
content: ZodDiscriminatedUnion<
"type",
[
ZodObject<
{ text: ZodString; type: ZodLiteral<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ text: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ text: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
>,
],
>;
model: ZodString;
role: ZodEnum<["user", "assistant"]>;
stopReason: ZodOptional<
ZodUnion<[ZodEnum<[(...), (...), (...)]>, ZodString]>,
>;
},
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
{
content: ZodDiscriminatedUnion<
"type",
[
ZodObject<
{ text: ZodString; type: ZodLiteral<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ text: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ text: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
data: ZodString;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
>,
],
>;
model: ZodString;
role: ZodEnum<["user", "assistant"]>;
stopReason: ZodOptional<
ZodUnion<[ZodEnum<[(...), (...), (...)]>, ZodString]>,
>;
},
>,
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
{
roots: ZodArray<
ZodObject<
{ name: ZodOptional<ZodString>; uri: ZodString },
"passthrough",
ZodTypeAny,
objectOutputType<
{ name: ZodOptional<ZodString>; uri: ZodString },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ name: ZodOptional<ZodString>; uri: ZodString },
ZodTypeAny,
"passthrough",
>,
>,
"many",
>;
},
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
{
roots: ZodArray<
ZodObject<
{ name: ZodOptional<ZodString>; uri: ZodString },
"passthrough",
ZodTypeAny,
objectOutputType<
{ name: ZodOptional<(...)>; uri: ZodString },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ name: ZodOptional<(...)>; uri: ZodString },
ZodTypeAny,
"passthrough",
>,
>,
"many",
>;
},
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
{
roots: ZodArray<
ZodObject<
{ name: ZodOptional<ZodString>; uri: ZodString },
"passthrough",
ZodTypeAny,
objectOutputType<
{ name: ZodOptional<(...)>; uri: ZodString },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ name: ZodOptional<(...)>; uri: ZodString },
ZodTypeAny,
"passthrough",
>,
>,
"many",
>;
},
>,
ZodTypeAny,
"passthrough",
>,
>,
],
> = ...