|
|
@ -122,7 +122,7 @@ swarm_architecture:
|
|
|
|
|
|
|
|
|
|
|
|
Now, create the main Python script that will use the `create_agents_from_yaml` function.
|
|
|
|
Now, create the main Python script that will use the `create_agents_from_yaml` function.
|
|
|
|
|
|
|
|
|
|
|
|
### `example.py`:
|
|
|
|
### `main.py`:
|
|
|
|
```python
|
|
|
|
```python
|
|
|
|
from swarms.agents.create_agents_from_yaml import create_agents_from_yaml
|
|
|
|
from swarms.agents.create_agents_from_yaml import create_agents_from_yaml
|
|
|
|
|
|
|
|
|
|
|
@ -138,7 +138,7 @@ print(task_results)
|
|
|
|
### Example Run:
|
|
|
|
### Example Run:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
```bash
|
|
|
|
python example.py
|
|
|
|
python main.py
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
This will:
|
|
|
|
This will:
|
|
|
|