@ -67,13 +67,13 @@ The goal of the Swarm Architecture is to provide a flexible and scalable system
## Design Components
## Design Components
### AbstractSwarm
### BaseSwarm
The AbstractSwarm is an abstract base class which defines the basic structure of a swarm and the methods that need to be implemented. Any new swarm should inherit from this class and implement the required methods.
The BaseSwarm is an abstract base class which defines the basic structure of a swarm and the methods that need to be implemented. Any new swarm should inherit from this class and implement the required methods.
### Swarm Classes
### Swarm Classes
Various Swarm classes can be implemented inheriting from the AbstractSwarm class. Each swarm class should implement the required methods for initializing the components, worker nodes, and boss node, and running the swarm.
Various Swarm classes can be implemented inheriting from the BaseSwarm class. Each swarm class should implement the required methods for initializing the components, worker nodes, and boss node, and running the swarm.
Pre-configured swarm classes with multi-modal agents can be provided for ease of use. These classes come with a default configuration of tools and agents, which can be used out of the box.
Pre-configured swarm classes with multi-modal agents can be provided for ease of use. These classes come with a default configuration of tools and agents, which can be used out of the box.
@ -91,7 +91,7 @@ To use a pre-configured swarm, they can simply instantiate the corresponding swa
To create a custom swarm, they need to:
To create a custom swarm, they need to:
1. Define a new swarm class inheriting from AbstractSwarm.
1. Define a new swarm class inheriting from BaseSwarm.
2. Implement the required methods for the new swarm class.
2. Implement the required methods for the new swarm class.
3. Instantiate the swarm class and call the run method.
3. Instantiate the swarm class and call the run method.
@ -41,9 +41,9 @@ The Swarms library is designed to provide a framework for swarm simulation archi
## 2. Class Definition <aname="class-definition"></a>
## 2. Class Definition <aname="class-definition"></a>
### `AbstractSwarm` Class
### `BaseSwarm` Class
The `AbstractSwarm` class is an abstract base class that serves as the foundation for swarm simulation architectures. It defines the core functionality and methods required to manage and interact with a swarm of workers.
The `BaseSwarm` class is an abstract base class that serves as the foundation for swarm simulation architectures. It defines the core functionality and methods required to manage and interact with a swarm of workers.
```python
```python
from abc import ABC, abstractmethod
from abc import ABC, abstractmethod
@ -52,7 +52,7 @@ from typing import List
from swarms.swarms.base import AbstractWorker
from swarms.swarms.base import AbstractWorker
class AbstractSwarm(ABC):
class BaseSwarm(ABC):
"""
"""
Abstract class for swarm simulation architectures
Abstract class for swarm simulation architectures
@ -513,4 +513,4 @@ swarm.save_swarm_state()
---
---
This comprehensive documentation covers the Swarms library, including the `AbstractSwarm` class and its methods. You can use this documentation as a guide to understanding and effectively utilizing the Swarms framework for swarm simulation architectures. Feel free to explore further and adapt the library to your specific use cases.
This comprehensive documentation covers the Swarms library, including the `BaseSwarm` class and its methods. You can use this documentation as a guide to understanding and effectively utilizing the Swarms framework for swarm simulation architectures. Feel free to explore further and adapt the library to your specific use cases.