autocommit.config

Configuration for autocommit

Classes

AutocommitDir(data_path, logfile, ...)

Loads data from the autocommit storage directory

Config(*[, enable_rag, ...])

Configuration for autocommit

class autocommit.config.Config(*, enable_rag: bool = True, enable_function_calls: bool = True, isolation: bool = False, debug: bool = False)[source]

Configuration for autocommit

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'ignored_types': (<class 'functools.cached_property'>,), 'protected_namespaces': ()}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

classmethod from_json_file(file)[source]

Read the configuration from a json file

to_json_file(file)[source]

Write the configuration to a json file

class autocommit.config.AutocommitDir(data_path: Path, logfile: Path, api_key_file: Path, config_file: Path, config: Config)[source]

Loads data from the autocommit storage directory

classmethod from_dir(data_path: Path)[source]

Load the autocommit directory

classmethod from_repo(repo_path: Path)[source]

Load the autocommit directory from the repository