Why is the Rail Schema written in XML and not JSON? #301
Closed
CivilEngineerUK
started this conversation in
General
Replies: 1 comment
-
Hi! It's a great question, here's why we have railspecs written out as XML - https://docs.guardrailsai.com/defining_guards/rail/#why-rail. As far as using XML internally within our execution paths go, that is being swapped out for JSONSchema over the next few weeks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Maybe I am missing something, but guardrails is using an XML schema to specify a JSON output. Why not just specify a JSON schema using JSON which is more readable than XML in general. Obviously there is a reason for guardrails using XML as the input over JSON - perhaps because of the re-prompt handling? Otherwise, what is this reason?
Thanks,
CivilEngineerUK
Beta Was this translation helpful? Give feedback.
All reactions