code: def with_base_config(base_config, extra_config):
      
  
      config = copy.deepcopy(base_config)
      config.update(extra_config)
      return config
docs: Returns the given config dict merged with a base agent conf.