From 3fc7fceacc9de3dba0efaa12b004821b717a470f Mon Sep 17 00:00:00 2001 From: Kye Date: Thu, 14 Sep 2023 16:43:37 -0400 Subject: [PATCH] `AutoScaler` cleanup Former-commit-id: 210cd56b19c24d664519d2e5e7a779041fe2b8be --- swarms/swarms/autoscaler.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/swarms/swarms/autoscaler.py b/swarms/swarms/autoscaler.py index fbab09d7..dfbf8fb3 100644 --- a/swarms/swarms/autoscaler.py +++ b/swarms/swarms/autoscaler.py @@ -4,14 +4,21 @@ from time import sleep from swarms.workers.worker import Worker from swarms.utils.decorators import error_decorator, log_decorator, timing_decorator -#from shapeless import shapeless # TODO Handle task assignment and task delegation # TODO: User task => decomposed into very small sub tasks => sub tasks assigned to workers => workers complete and update the swarm, can ask for help from other agents. # TODO: Missing, Task Assignment, Task delegation, Task completion, Swarm level communication with vector db -#@shapeless class AutoScaler: + """ + # usage of usage + auto_scaler = AutoScaler(agent=YourCustomAgent) + auto_scaler.start() + + for i in range(100): + auto_scaler.add_task9f"task {I}}) + + """ @log_decorator @error_decorator @timing_decorator @@ -74,10 +81,3 @@ class AutoScaler: available_agent = next((agent for agent in self.agents_pool)) if available_agent: available_agent.run(task) - -#usage of usage -#auto_scaler = AutoScaler(agent=YourCustomAgent) -# auto_scaler.start() - -#for i in range(100): -# auto_scaler.add_task9f"task {I}}) \ No newline at end of file