nip.factory._build_agents

Contents

nip.factory._build_agents#

nip.factory._build_agents(hyper_params: HyperParameters, settings: ExperimentSettings, protocol_handler: ProtocolHandler, get_scenario_class: Callable[[type, str | None], type]) dict[str, Agent][source]#

Build the agents for the experiment.

Parameters:
  • hyper_params (HyperParameters) – The parameters for the experiment.

  • settings (ExperimentSettings) – The settings for the experiment.

  • protocol_handler (ProtocolHandler) – The protocol handler for the experiment.

  • get_scenario_class (Callable[[type], type]) – A function to get the class for a component based on the scenario and base class.

Returns:

agents (dict[str, Agent]) – The agents for the experiment.