Generating
Structured Data
Generates structured data for a given prompt and schema.
For convenience, we use valibot
as an example.
But this package uses xsschema
internally, so it supports any schema library that xsschema supports: e.g. zod
, valibot
, arktype
, etc.
See xsschema for more information.
Examples
Object
Array
Edit on GitHub
Last updated on