memoryscope.core.config.config_manager

class memoryscope.core.config.config_manager.ConfigManager(config_path: str | None = None, arguments: Arguments | None = None, demo_config_name: str = 'demo_config_zh.yaml', **kwargs)[源代码]

基类:object

__init__(config_path: str | None = None, arguments: Arguments | None = None, demo_config_name: str = 'demo_config_zh.yaml', **kwargs)[源代码]
read_config(config_path: str)[源代码]
static update_ignore_none(config, new_config_dict)[源代码]
static update_global_by_arguments(config: dict, arguments: Arguments)[源代码]
static update_memory_chat_by_arguments(config: dict, arguments: Arguments)[源代码]
static update_memory_service_by_arguments(config: dict, arguments: Arguments)[源代码]
static update_worker_by_arguments(config: dict, arguments: Arguments)[源代码]
static update_model_by_arguments(config: dict, arguments: Arguments)[源代码]
static update_memory_store_by_arguments(config: dict, arguments: Arguments)[源代码]
update_config_by_arguments(arguments: Arguments)[源代码]
add_node_object(node: str, name: str, config: dict)[源代码]
pop_node_object(node: str, name: str)[源代码]
clear_node_all(node: str)[源代码]
dump_config(file_type: Literal['json', 'yaml'] = 'yaml', file_path: str | None = None) str[源代码]