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