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<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
text: ZodString;
type: ZodLiteral<"text">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<(...)>;
text: ZodString;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<(...)>;
text: ZodString;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"image">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
data: ZodEffects<ZodString, string, string>;
mimeType: ZodString;
type: ZodLiteral<"audio">;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
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<
{
_meta: ZodOptional<(...)>;
text: ZodString;
type: ZodLiteral<(...)>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ _meta: ...; text: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ _meta: ...; text: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ _meta: ...; data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ _meta: ...; data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ _meta: ...; data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ _meta: ...; 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<
{
_meta: ZodOptional<(...)>;
text: ZodString;
type: ZodLiteral<(...)>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ _meta: ...; text: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ _meta: ...; text: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ _meta: ...; data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ _meta: ...; data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
{
_meta: ZodOptional<(...)>;
data: ZodEffects<(...), (...), (...)>;
mimeType: ZodString;
type: ZodLiteral<(...)>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ _meta: ...; data: ...; mimeType: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ _meta: ...; 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">,
>,
>;
},
{
action: ZodEnum<["accept", "decline", "cancel"]>;
content: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
},
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
{
action: ZodEnum<["accept", "decline", "cancel"]>;
content: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
},
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
{
action: ZodEnum<["accept", "decline", "cancel"]>;
content: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
},
>,
ZodTypeAny,
"passthrough",
>,
>,
ZodObject<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
{
roots: ZodArray<
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
name: ZodOptional<ZodString>;
uri: ZodString;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
name: ZodOptional<ZodString>;
uri: ZodString;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
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<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
name: ZodOptional<ZodString>;
uri: ZodString;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<(...)>;
name: ZodOptional<(...)>;
uri: ZodString;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<(...)>;
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<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
name: ZodOptional<ZodString>;
uri: ZodString;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<(...)>;
name: ZodOptional<(...)>;
uri: ZodString;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<(...)>;
name: ZodOptional<(...)>;
uri: ZodString;
},
ZodTypeAny,
"passthrough",
>,
>,
"many",
>;
},
>,
ZodTypeAny,
"passthrough",
>,
>,
],
> = ...