Formatron v0.4.9
Formatron empowers everyone to control the output format of language models with minimal overhead.
Loading...
Searching...
No Matches
formatron.config.EngineGenerationConfig Class Reference

Configuration for how an KBNF engine should be used in text generation. More...

Static Public Attributes

bool read_prompt = False
 Whether to accept the prompt tokens when a generation begins.
 
bool reset_at_beginning = True
 Whether to reset the engine when a new generation begins.
 

Detailed Description

Configuration for how an KBNF engine should be used in text generation.

Definition at line 14 of file config.py.

Member Data Documentation

◆ read_prompt

bool formatron.config.EngineGenerationConfig.read_prompt = False
static

Whether to accept the prompt tokens when a generation begins.

Definition at line 21 of file config.py.

◆ reset_at_beginning

bool formatron.config.EngineGenerationConfig.reset_at_beginning = True
static

Whether to reset the engine when a new generation begins.

Definition at line 22 of file config.py.


The documentation for this class was generated from the following file: