aiq.settings.global_settings#
Attributes#
Classes#
Subclass of a Pydantic BaseModel that is hashable. Use in objects that need to be hashed for caching purposes. |
|
Module Contents#
- logger#
- class Settings(/, **data: Any)#
Bases:
aiq.data_models.common.HashableBaseModel
Subclass of a Pydantic BaseModel that is hashable. Use in objects that need to be hashed for caching purposes.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].
- _settings_changed_hooks: ClassVar[list[collections.abc.Callable[[], None]]] = []#
- classmethod validate_components(
- value: Any,
- handler: pydantic.ValidatorFunctionWrapHandler,
- info: pydantic.ValidationInfo,
- classmethod rebuild_annotations()#
- static from_file()#
- _settings_changed()#
- pause_settings_changed_hooks()#
- add_settings_changed_hook(
- cb: collections.abc.Callable[[], None],