Formatron v0.4.9
Formatron empowers everyone to control the output format of language models with minimal overhead.
Loading...
Searching...
No Matches
formatron.formatter.FormatterBuilder Member List

This is the complete list of members for formatron.formatter.FormatterBuilder, including all inherited members.

__init__(self)formatron.formatter.FormatterBuilder
_add_capture_name(self, NonterminalExtractor extractor)formatron.formatter.FormatterBuilderprotected
_add_extractor(self, str extractor_type, typing.Callable[[str], Extractor] create_extractor)formatron.formatter.FormatterBuilderprotected
_assert_capture_name_valid(self, str capture_name)formatron.formatter.FormatterBuilderprotected
_capture_namesformatron.formatter.FormatterBuilderprotected
_counterformatron.formatter.FormatterBuilderprotected
_create_nonterminal(self, str name)formatron.formatter.FormatterBuilderprotected
_extractorsformatron.formatter.FormatterBuilderprotected
_formatter_builder_counterformatron.formatter.FormatterBuilderprotectedstatic
_instance_idformatron.formatter.FormatterBuilderprotected
_main_ruleformatron.formatter.FormatterBuilderprotected
_nonterminal_to_extractorformatron.formatter.FormatterBuilderprotected
_rulesformatron.formatter.FormatterBuilderprotected
append_line(self, str line)formatron.formatter.FormatterBuilder
append_multiline_str(self, str lines)formatron.formatter.FormatterBuilder
append_str(self, str string)formatron.formatter.FormatterBuilder
build(self, kbnf.Vocabulary vocabulary, typing.Callable[[list[int]], str] decode, kbnf.Config engine_config=None)formatron.formatter.FormatterBuilder
choose(self, *Extractor|str extractors, str capture_name=None)formatron.formatter.FormatterBuilder
extractor(self, typing.Callable[[str], Extractor] create_extractor)formatron.formatter.FormatterBuilder
json(self, typing.Type[Schema]|collections.abc.Sequence schema, *, str capture_name=None)formatron.formatter.FormatterBuilder
regex(self, str regex, *, str capture_name=None)formatron.formatter.FormatterBuilder
regex_complement(self, str regex, *, str capture_name=None)formatron.formatter.FormatterBuilder
str(self, *, typing.Union[str, list[str]] stop=None, typing.Optional[str] capture_name=None)formatron.formatter.FormatterBuilder
substr(self, str string, *, str capture_name=None, bool extract_empty_substring=False)formatron.formatter.FormatterBuilder