langchain.js
Preparing search index...
@langchain/core
utils/json_schema
toJsonSchema
Function toJsonSchema
toJsonSchema
(
schema
:
JsonSchema7Type
|
InteropZodType
)
:
JsonSchema7Type
Converts a Zod schema or JSON schema to a JSON schema.
Parameters
schema
:
JsonSchema7Type
|
InteropZodType
The schema to convert.
Returns
JsonSchema7Type
The converted schema.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
langchain.js
Loading...
Converts a Zod schema or JSON schema to a JSON schema.