ImageGenDataSchema
이 콘텐츠는 아직 번역되지 않았습니다.
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)。
이 페이지가 도움이 되었나요?
피드백 감사합니다. 이 문서를 계속 개선하겠습니다.