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

Function isZodSchema

  • isZodSchema<RunOutput>(input): input is ZodType<RunOutput, ZodTypeDef, RunOutput>
  • Given either a Zod schema, or plain object, determine if the input is a Zod schema.

    Type Parameters

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

    Parameters

    • input: Record<string, any> | ZodType<RunOutput, ZodTypeDef, RunOutput>

    Returns input is ZodType<RunOutput, ZodTypeDef, RunOutput>

    Whether or not the provided input is a Zod schema.

    • Defined in langchain-core/src/utils/types/is_zod_schema.ts:9

Settings

Member Visibility

Theme

LangChain.js - v0.2.8
  • Loading...

Generated using TypeDoc