dazu package

Subpackages

Submodules

dazu.config module

class dazu.config.DazuConfig(configuration_values: Optional[Dict[str, Any]] = None)

Bases: object

as_dict() → Dict[str, Any]
property component_names
for_component(index, defaults=None) → Dict[str, Any]
get(key: str, default: Any = None) → Any
items() → List[Any]
override(config) → None
set_component_attr(index, **kwargs) → None
view() → str
exception dazu.config.InvalidConfigError(message: str)

Bases: ValueError

Raised if an invalid configuration is encountered.

dazu.config.component_config_from_pipeline(index: int, pipeline: List[Dict[str, Any]], defaults: Optional[Dict[str, Any]] = None) → Dict[str, Any]
dazu.config.load(config: Union[str, Dict, None] = None, **kwargs: Any) → dazu.config.DazuConfig
dazu.config.override_defaults(defaults: Optional[Dict[str, Any]], custom: Optional[Dict[str, Any]]) → Dict[str, Any]

dazu.constants module

dazu.registry module

class dazu.registry.Registry

Bases: object

classmethod get(moduleName: str = None, moduleCls: Type[dazu.typing.module.Module] = None, prefix: str = '', default=None) → Any
classmethod getAdapter(config: dazu.config.DazuConfig, adapterName: str = None)
modules = {'dialogue_simple': <class 'dazu.components.dialogue.simple.SimpleDialogue'>, 'nlu_simple': <class 'dazu.components.nlu.simple.SimpleNLU'>}
classmethod registry(module: Type[dazu.typing.module.Module], prefix: str = '')
classmethod registryAdapter(adapter: Type[dazu.typing.module.Module])
dazu.registry.pipeline_template(s: str) → Optional[List[Dict[str, Any]]]

dazu.util module

dazu.util.json_to_string(obj: Any, **kwargs: Any) → str

dazu.version module

Module contents