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)[source]

Bases: object

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