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

Function toJsonSchema

  • toJsonSchema(schema): JSONSchema
  • Converts a Zod schema or JSON schema to a JSON schema.

    Parameters

    • schema: InteropZodType | JsonSchema7Type

      The schema to convert.

    Returns JSONSchema

    The converted schema.

    • Defined in langchain-core/src/utils/json_schema.ts:23

Settings

Member Visibility
LangChain.js
  • Loading...

Generated using TypeDoc