I wrote this library this weekend after realizing that Zod was really not designed for the use-cases I want JSON schemas for: 1) defining response formats for LLMs and 2) as a single source of truth for data structures.
Had you considered using something like XML as the transport format rather than JSON? If the UX is similar to zod it wouldn't matter what the underlying data format is, and XML is meant to support schemas unlike JSON.
JSON Schema is a schema built on JSON and it’s already being used. Using XML would mean converting the XML into JSON schema to define the response from the LLM.
That said, JSON is “language neutral” but also super convenient for JavaScript developers and typically more convenient for most people than XML.
podperson|3 months ago
7thpower|3 months ago
taveras|3 months ago
Will you support Standard Schema (https://standardschema.dev)? How does this compare to typebox (https://github.com/sinclairzx81/typebox)?
kevmo314|3 months ago
How did we end up in a world where 97 items is considered large?
vages|3 months ago
unknown|3 months ago
[deleted]
yunohn|3 months ago
> This provides O(1) performance
Wouldn’t 1% of N still imply O(N) performance?
podperson|3 months ago
bbminner|3 months ago
_heimdall|3 months ago
podperson|3 months ago
That said, JSON is “language neutral” but also super convenient for JavaScript developers and typically more convenient for most people than XML.