gbnf
A library for parsing GBNF grammars
A library for parsing GBNF grammars
A library for turning JSON schemas into GBNF grammars
A library for generating syntactically valid code from an LLM.
Control what LLMs can, and can't, say
<a href="https://www.npmjs.com/package/contort"><img alt="Latest Contortionist NPM Version" src="https://badge.fury.io/js/contort.svg" /></a> <a href="https://github.com/thekevinscott/contortionist/blob/master/LICENSE"><img alt="License for contortionist"