Function: zodToJSONSchemaSync()
@providerprotocol/ai / utils / zodToJSONSchemaSync
Function: zodToJSONSchemaSync()
Section titled “Function: zodToJSONSchemaSync()”zodToJSONSchemaSync(
schema):JSONSchema
Defined in: src/utils/zod.ts:178
Synchronous version of zodToJSONSchema. Requires modules to be cached via prior async load.
Parameters
Section titled “Parameters”schema
Section titled “schema”Zod schema to convert
Returns
Section titled “Returns”JSON Schema representation
Throws
Section titled “Throws”Error if modules not loaded or dependencies missing