Swarms

Latest version: v5.1.7

Safety actively analyzes 638466 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 13 of 23

0.7.01

0.7.0

0.6.6

0.6.5

* swarms/ __init__ clean up

0.6.4

1. **Bug**: `TypeError: BossNode.__init__() got multiple values for argument 'max_iterations'`
- **Root Cause**: This error was caused because the `BossNode` class was incorrectly trying to assign a value to the `max_iterations` parameter in the `BabyAGI` initialization.
- **Resolution**: Commented out the `max_iterations` parameter in the `BabyAGI` initialization inside the `BossNode` class.

2. **Bug**: The same `TypeError` persisted.
- **Root Cause**: The `max_iterations` parameter was being passed to the `BossNode` initialization in `initialize_boss_node` function of `Swarms` class but it was not handled in the `BossNode` class.
- **Resolution**: Reintroduced the `max_iterations` parameter in the `BossNode` class, this time to be used as an attribute of the `BossNode` itself and not in the `BabyAGI` initialization.

3. **Bug**: `AttributeError: 'BossNode' object has no attribute 'create_task'`
- **Root Cause**: This error was caused because `run_swarms` method in `Swarms` class was trying to call a `create_task` method on a `BossNode` object, which was not defined in the `BossNode` class.
- **Resolution**: Added a `create_task` method in `BossNode` class that returns a dictionary containing the objective.

0.6.0

Page 13 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.