Formatron
v0.4.9
v0.4.9
v0.4.8
v0.4.7
v0.4.6
v0.4.5
v0.4.4
v0.4.3
v0.4.2
v0.4.1
v0.4.0
v0.3.4
v0.3.3
v0.3.2
v0.3.1
v0.3.0
v0.2.0
v0.1.3
v0.1.2
v0.1.1
Formatron empowers everyone to control the output format of language models with minimal overhead.
Loading...
Searching...
No Matches
config.py
Go to the documentation of this file.
1
"""
2
Configuration classes for Formatron.
3
"""
4
from
dataclasses
import
dataclass
5
6
7
@dataclass
8
class
EngineGenerationConfig
:
9
"""
10
Configuration for how an KBNF engine should be used in text generation.
11
12
Attributes:
13
read_prompt: Whether to accept the prompt tokens when a generation begins.
14
reset_at_beginning: Whether to reset the engine when a new generation begins.
15
"""
16
read_prompt: bool =
False
17
reset_at_beginning: bool =
True
formatron.config.EngineGenerationConfig
Configuration for how an KBNF engine should be used in text generation.
Definition
config.py:14
src
formatron
config.py
Generated by
1.11.0