by podperson · 1y ago · 0 comments
That said, JSON is “language neutral” but also super convenient for JavaScript developers and typically more convenient for most people than XML.
Why would we need to concert XML, which already supports schemas and is well understood by LLMs, back to JSON schema?
When you provide a JSONSchemea, the result from the LLM is validated in the code between before passing on to the next step. Yes the LLM is reading it too, but non LLM parts of the system use the schema as well
This is arguably much more important for tools and subagents, but also these things are being trained with JSONSchema for tool calling and structured output