class documentation

Configuration schema for dynamic object instantiation. Typically used to instantiate objects stored in registries.

A dictionary with a name and a dictionary of parameters.

Example

>>> ConfigItem(name="Resize", params={"height": 256}).name
'Resize'
>>> ConfigItem(name="Normalize").params
{}
Instance Variable name Name of the object this configuration applies to.
Instance Variable params Additional parameters for instantiating the object.

Inherited from BaseModelExtraForbid:

Instance Variable model_config Pydantic model configuration with extra set to "forbid".
name: str =

Name of the object this configuration applies to.

params: Params =

Additional parameters for instantiating the object.