code: def add_agent_pool(self, pool):
          
          content = self._serialize.body(pool, 'TaskAgentPool')
          response = self._send(http_method='POST',
                                location_id='a8c47e17-4d56-4a56-92bb-de7ea7dc65be',
                                version='5.1-preview.1',
                                content=content)
          return self._deserialize('TaskAgentPool', response)
docs: AddAgentPool.
          [Preview API] Create an agent pool.
          :param :class:`<TaskAgentPool> <azure.devops.v5_1.task_agent.models.TaskAgentPool>` pool: Details about the new agent pool
          :rtype: :class:`<TaskAgentPool> <azure.devops.v5_1.task-agent.models.TaskAgentPool>`