Update ma_swarm.md

pull/1107/head
Aksh Parekh 5 days ago committed by GitHub
parent 6bf68ad43a
commit eed260f577
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -18,30 +18,37 @@ The `MAAdvisorySwarm` operates as a **sequential workflow**, where each agent's
To set up and run the M&A Advisory Swarm, follow these steps: To set up and run the M&A Advisory Swarm, follow these steps:
## Step 1: Setup and Installation
### Prerequisites ### Prerequisites
* Python 3.8+ | Requirement |
* An Exa API Key (for the `exa_search` tool) |-----------------------|
| Python 3.8 or higher |
| pip package manager |
1. **Install dependencies:**
Use the following command to download all dependencies.
```bash
# Install Swarms framework
pip install swarms
### Setup # Install environment and logging dependencies
pip install python-dotenv loguru
**Set up Exa API Key:** # Install HTTP client and tools
The `Market & Strategic Analysis Agent` utilizes the `exa_search` tool, which requires an `EXA_API_KEY`. pip install httpx swarms_tools
Create a `.env` file in the root directory of your project (or wherever your application loads environment variables) and add your Exa API key: ```
2. **Set up API Keys:**
The `Property Research Agent` utilizes the `exa_search` tool, which requires an `EXA_API_KEY`.
Create a `.env` file in the root directory of your project (or wherever your application loads environment variables) and add your API keys:
``` ```
EXA_API_KEY="YOUR_EXA_API_KEY" EXA_API_KEY="YOUR_EXA_API_KEY"
OPENAI_API_KEY="OPENAI_API_KEY"
``` ```
Replace `"YOUR_EXA_API_KEY"` with your actual Exa API key. Replace `"YOUR_EXA_API_KEY"` & `"OPENAI_API_KEY"` with your actual API keys.
## How to Run
Navigate to the `examples/demos/apps/` directory and run the `ma_advisory.py` script.
```bash
python examples/demos/apps/ma_advisory.py
```
OR, you can execute the following Python code directly (ensure all dependencies and the `.env` file are correctly set up): ## Step 2: Running the Mergers & Acquisitions Advisory Swarm
```python ```python
from typing import List from typing import List

Loading…
Cancel
Save