Function: resolveStructure()
@providerprotocol/ai / utils / resolveStructure
Function: resolveStructure()
Section titled “Function: resolveStructure()”resolveStructure(
structure):JSONSchema
Defined in: src/utils/zod.ts:210
Resolves a structure parameter that may be JSONSchema or Zod schema. Validates that the result is an object schema.
Parameters
Section titled “Parameters”structure
Section titled “structure”JSONSchema or Zod schema (must be object type)
Returns
Section titled “Returns”Resolved JSONSchema
Throws
Section titled “Throws”Error if schema is not an object type