ADK for TypeScript: API Reference
    Preparing search index...

    Class NodeSchemaValidationError

    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.

    Hierarchy

    • Error
      • NodeSchemaValidationError

    Constructors

    • Parameters

      • options: { cause: unknown; direction: "output" | "input"; nodeName: string }
        • cause: unknown

          The underlying validation error.

        • direction: "output" | "input"

          Whether the input or the output failed.

        • nodeName: string

          The name of the node that failed validation.

      Returns NodeSchemaValidationError

    Properties

    direction: "output" | "input"

    Which side of the node failed: its inputSchema or its outputSchema.

    nodeName: string