Skip to main content

Overview

This example demonstrates how to create a multi-agent swarm for legal document review and analysis using the Swarms API.

Step 1: Installation

Install the required packages:

Step 2: API Key Setup

Set your API key in a .env file:

Step 3: Code Example

Run the script to analyze legal documents using a multi-agent swarm with specialized roles for structure analysis, party identification, clause extraction, ambiguity checking, and compliance review.