nvflare.apis.utils.fl_context_utils module

add_job_audit_event(fl_ctx: FLContext, ref: str = '', msg: str = '') str[source]
gen_new_peer_ctx(fl_ctx: FLContext, need_deep_copy=False)[source]
generate_log_message(fl_ctx: FLContext, msg: str)[source]
get_client(client_name, fl_ctx: FLContext) Client | None[source]

Get the Client object for the specified client name

Parameters:
  • client_name – name of the client to be found

  • fl_ctx – the FLContext object

Returns: a Client object or None if not found

get_serializable_data(fl_ctx: FLContext)[source]