ImageGenDataSchema
This content is not available in your language yet.
const ImageGenDataSchema: z.ZodObject<{ errorCode: z.ZodOptional<z.ZodString>; imageCount: z.ZodNumber; images: z.ZodArray<z.ZodObject<{ url: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ url: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ url: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">; model: z.ZodString; taskId: z.ZodOptional<z.ZodString>;}, "passthrough", z.ZodTypeAny, z.objectOutputType<{ errorCode: z.ZodOptional<z.ZodString>; imageCount: z.ZodNumber; images: z.ZodArray<z.ZodObject<{ url: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ url: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ url: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">; model: z.ZodString; taskId: z.ZodOptional<z.ZodString>;}, z.ZodTypeAny, "passthrough">, z.objectInputType<{ errorCode: z.ZodOptional<z.ZodString>; imageCount: z.ZodNumber; images: z.ZodArray<z.ZodObject<{ url: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ url: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ url: z.ZodString; }, z.ZodTypeAny, "passthrough">>, "many">; model: z.ZodString; taskId: z.ZodOptional<z.ZodString>;}, z.ZodTypeAny, "passthrough">>;ImageGenData 的 zod schema(passthrough 容未知键;消费方按需校验 ToolResult.data)。
Was this page helpful?
Thanks for your feedback.