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

Function isZodSchema

  • isZodSchema<RunOutput>(schema): schema is ZodType<RunOutput, ZodTypeDef, RunOutput>
  • Backward compatible isZodSchema for Zod 3

    Type Parameters

    • RunOutput extends Record<string, unknown> = Record<string, unknown>

    Parameters

    • schema: Record<string, unknown> | ZodType<RunOutput, ZodTypeDef, RunOutput>

    Returns schema is ZodType<RunOutput, ZodTypeDef, RunOutput>

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

Settings

Member Visibility
LangChain.js
  • Loading...

Generated using TypeDoc