Variable aIMessageSchemaConst
aIMessageSchema: ZodObject<
{
content: ZodOptional<ZodString>;
content_parts: ZodOptional<
ZodArray<
ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
"many",
>,
>;
resume_token: ZodOptional<ZodString>;
role: ZodString;
structured_output: ZodOptional<ZodType<{} | null, ZodTypeDef, {} | null>>;
tool_calls: ZodOptional<
ZodArray<
ZodObject<
{
arguments: ZodRecord<
ZodString,
ZodType<{} | null, ZodTypeDef, {} | null>,
>;
id: ZodString;
name: ZodString;
thought_signature: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
arguments: Record<string, {} | null>;
id: string;
name: string;
thought_signature?: string;
},
{
arguments: Record<string, {} | null>;
id: string;
name: string;
thought_signature?: string;
},
>,
"many",
>,
>;
tool_results: ZodOptional<
ZodArray<
ZodObject<
{
content: ZodOptional<ZodString>;
id: ZodString;
name: ZodString;
resolution: ZodOptional<ZodType<{} | null, ZodTypeDef, {} | null>>;
},
"strip",
ZodTypeAny,
{ content?: string; id: string; name: string; resolution?: {}
| null },
{ content?: string; id: string; name: string; resolution?: {} | null },
>,
"many",
>,
>;
},
"strip",
ZodTypeAny,
{
content?: string;
content_parts?: Record<string, {} | null>[];
resume_token?: string;
role: string;
structured_output?: {} | null;
tool_calls?: {
arguments: Record<string, {} | null>;
id: string;
name: string;
thought_signature?: string;
}[];
tool_results?: {
content?: string;
id: string;
name: string;
resolution?: {}
| null;
}[];
},
{
content?: string;
content_parts?: Record<string, {} | null>[];
resume_token?: string;
role: string;
structured_output?: {} | null;
tool_calls?: {
arguments: Record<string, {} | null>;
id: string;
name: string;
thought_signature?: string;
}[];
tool_results?: {
content?: string;
id: string;
name: string;
resolution?: {}
| null;
}[];
},
> = ...
Runtime validator for AIMessage.