Raised when a node's input or output fails its declared schema.
The underlying validation error (a ZodError, typically) carries the field
path but not the node it came from, which leaves a failure in a large graph
effectively unattributed. This wrapper names the node and which side of it
failed, and keeps the original error on cause for the full detail.
Raised when a node's input or output fails its declared schema.
The underlying validation error (a
ZodError, typically) carries the field path but not the node it came from, which leaves a failure in a large graph effectively unattributed. This wrapper names the node and which side of it failed, and keeps the original error oncausefor the full detail.