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

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

__init__(self, list[Extractor] extractors, kbnf.Engine engine, typing.Callable[[list[int]], str] decode_callback, str grammar_str)formatron.formatter.Formatter
__str__(self)formatron.formatter.Formatter
_capturesformatron.formatter.Formatterprotected
_decode_callbackformatron.formatter.Formatterprotected
_engineformatron.formatter.Formatterprotected
_extractorsformatron.formatter.Formatterprotected
_grammar_strformatron.formatter.Formatterprotected
_obtain_accepted_output(self)formatron.formatter.Formatterprotected
_on_completion(self, str generated_output)formatron.formatter.Formatterprotected
_token_id_or_bytesformatron.formatter.Formatterprotected
accept_bytes(self, bytes _bytes)formatron.formatter.Formatter
accept_token(self, int token_id)formatron.formatter.Formatter
captures(self)formatron.formatter.Formatter
compute_allowed_tokens(self)formatron.formatter.Formatter
get_allowed_tokens_since_last_computation(self)formatron.formatter.Formatter
grammar_str(self)formatron.formatter.Formatter
is_completed(self)formatron.formatter.Formatter
mask_logits(self, logits)formatron.formatter.Formatter
reset(self)formatron.formatter.Formatter