ray.rllib.core.rl_module.marl_module.MultiAgentRLModuleSpec.add_modules#

MultiAgentRLModuleSpec.add_modules(module_specs: Dict[str, SingleAgentRLModuleSpec], overwrite: bool = True) None[source]#

Add new module specs to the spec or updates existing ones.

Parameters:
  • module_specs – The mapping for the module_id to the single-agent module specs to be added to this multi-agent module spec.

  • overwrite – Whether to overwrite the existing module specs if they already exist. If False, they will be updated only.