[Refactor] Use NodeSlot.hasErrors API (#3284)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2025-03-30 20:10:28 -04:00
committed by GitHub
parent b01ddb6aff
commit cb06d96930
6 changed files with 114 additions and 59 deletions

View File

@@ -259,7 +259,12 @@ const zError = z.object({
type: z.string(),
message: z.string(),
details: z.string(),
extra_info: z.record(z.string(), z.any())
extra_info: z
.object({
input_name: z.string().optional()
})
.passthrough()
.optional()
})
const zNodeError = z.object({
errors: z.array(zError),