Variable aICompletionResultSchemaConst
aICompletionResultSchema: ZodObject<
{
finish_reason: ZodString;
message: 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<(...) | (...), ZodTypeDef, (...) | (...)>,
>;
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<(...) | (...), ZodTypeDef, (...) | (...)>,
>;
},
"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;
}[];
},
>;
messages: ZodArray<
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<(...), (...), (...)>>;
id: ZodString;
name: ZodString;
thought_signature: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
arguments: Record<string, (...) | (...)>;
id: string;
name: string;
thought_signature?: string;
},
{
arguments: Record<string, (...) | (...)>;
id: string;
name: string;
thought_signature?: string;
},
>,
"many",
>,
>;
tool_results: ZodOptional<
ZodArray<
ZodObject<
{
content: ZodOptional<ZodString>;
id: ZodString;
name: ZodString;
resolution: ZodOptional<ZodType<(...), (...), (...)>>;
},
"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;
}[];
},
>,
"many",
>;
token_usage: ZodOptional<
ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
>;
},
"strip",
ZodTypeAny,
{
finish_reason: string;
message: {
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;
}[];
};
messages: {
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;
}[];
}[];
token_usage?: Record<string, {} | null>;
},
{
finish_reason: string;
message: {
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;
}[];
};
messages: {
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;
}[];
}[];
token_usage?: Record<string, {} | null>;
},
> = ...
Runtime validator for AICompletionResult.