| ▲ | _heimdall 5 hours ago | |||||||||||||||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | podperson 5 hours ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||