langchain.js
    Preparing search index...

    Class LanggraphZodMetaRegistry<Meta, Schema>

    A Zod v4-compatible meta registry that extends the base registry.

    This registry allows you to associate and retrieve metadata for Zod schemas, leveraging the base registry for storage. It is compatible with Zod v4 and interoperates with the base registry to ensure consistent metadata management across different Zod versions.

    Type Parameters

    • Meta extends SchemaMeta = SchemaMeta

      The type of metadata associated with each schema.

    • Schema extends $ZodType = $ZodType

      The Zod schema type.

    Hierarchy

    • $ZodRegistry<Meta & { [key: string]: unknown }, Schema>
      • LanggraphZodMetaRegistry
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Creates a new LanggraphZodMetaRegistry instance.

      Type Parameters

      • Meta extends SchemaMeta<any, any> = SchemaMeta<any, any>
      • Schema extends $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>> = $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

      Parameters

      Returns LanggraphZodMetaRegistry<Meta, Schema>

    Properties

    The base SchemaMetaRegistry to use for metadata storage.

    Methods

    • Type Parameters

      • S extends $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

      Parameters

      • schema: S
      • ..._meta: undefined extends Meta & { [key: string]: unknown }
            ? [$replace<Meta & { [key: string]: unknown }, S>?]
            : [$replace<Meta & { [key: string]: unknown }, S>]

      Returns this