Configuration API¶
KonfAI builds workflows from YAML by combining configuration decorators, constructor signatures, and recursive object instantiation.
- class konfai.utils.config.Config(key)[source]
Bases:
objectContext manager for reading and updating a subtree of the active YAML config.
- Parameters:
key (
str) – Dot-separated path pointing to the configuration subtree to inspect or materialize.
- konfai.utils.config.config(key=None)[source]
Attach a KonfAI configuration key to a class or callable.
- konfai.utils.config.apply_config(konfai_args=None)[source]
Recursively instantiate callables from the active KonfAI configuration.