nvflare.job_config.base_app_config module

class BaseAppConfig[source]

Bases: ABC

BaseAppConfig holds the base essential component data for the ServerApp and ClientApp, including the task_data_filters, task_result_filters, system components and used external scripts.

add_component(cid: str, component)[source]
add_ext_dir(ext_dir: str)[source]
add_ext_script(ext_script: str)[source]
add_file_source(src_path: str, dest_dir=None, app_folder_type=None)[source]
add_params(args: Dict[str, any])[source]

Add additional system configuration parameters to be included in the generated JSON configs.

Parameters:

args – Dictionary of configuration parameters (e.g., {“timeout”: 600, “max_retries”: 3})

add_task_data_filter(tasks: List[str], filter: Filter)[source]
add_task_result_filter(tasks: List[str], filter: Filter)[source]