Formatron v0.5.0
Formatron empowers everyone to control the output format of language models with minimal overhead.
|
Go to the source code of this file.
Namespaces | |
namespace | formatron |
namespace | formatron.formats |
This subpackage contains modules that operate with concrete formats, like json. | |
namespace | formatron.formats.utils |
Functions | |
str | formatron.formats.utils.escape_identifier (str s) |
For each character in the string, if it is a valid kbnf identifier character, add it to the result. | |
Variables | |
str | formatron.formats.utils.VALID_IDENTIFIER_CHARACTERS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_" |