• Preparing search index...
  • The search index is not available
LangChain.js
  • LangChain.js
  • @langchain/core
  • utils/types
  • getInteropZodObjectShape

Function getInteropZodObjectShape

  • getInteropZodObjectShape<T>(schema): InteropZodObjectShape<T>
  • Retrieves the shape (fields) of a Zod object schema, supporting both Zod v3 and v4.

    Type Parameters

    • T extends InteropZodObject

      The type of the Zod object schema.

    Parameters

    • schema: T

      The Zod object schema instance (either v3 or v4).

    Returns InteropZodObjectShape<T>

    The shape of the object schema.

    Throws

    If the schema is not a Zod v3 or v4 object.

    • Defined in langchain-core/src/utils/types/zod.ts:470

Settings

Member Visibility
LangChain.js
  • Loading...

Generated using TypeDoc