A powerful framework for building AI agents with Claude
Project description
Storm Agent ๐ฉ๏ธ
Unleash the Power of AI Agents
A powerful, production-ready framework for building intelligent AI agents with Claude. Storm Agent provides everything you need to create sophisticated agents that can search the web, process documents, integrate with external services, and coordinate with other agents.
โก Key Features
- ๐ Production Ready: Battle-tested framework with comprehensive error handling
- ๐ค Multiple Agent Types: Basic, Web Search, Deep Research, and Multi-Agent systems
- ๐ Web Intelligence: Advanced web search with Brave Search and Firecrawl content extraction
- ๐ Document Processing: Native Google Drive integration with OAuth2 authentication
- ๐ MCP Protocol: Connect to external tools and services via Model Context Protocol
- ๐ง Deep Research: AI-powered research with citations and structured reports
- ๐ Multi-Agent Coordination: Agent handoffs and collaborative workflows
- ๐ก๏ธ Human-in-the-Loop: Built-in approval mechanisms for sensitive operations
- ๐ Async Performance: Parallel tool execution and non-blocking operations
๐ Quick Start
Installation
# Install from PyPI
pip install storm-agent
# Or install with development dependencies
pip install storm-agent[dev]
Basic Usage
from storm_agent import Agent
# Create a powerful AI agent
storm = Agent(
name="My Storm Agent",
description="A helpful AI assistant",
verbose=True
)
# Unleash the storm
response = await storm.run_async("Hello! How can you help me today?")
print(response)
# Or use the synchronous version
response = storm.run("What's the weather like?")
Web Search Agent
from storm_agent import Agent, WebSearchAgent
# Quick web search setup
storm = Agent(
name="Research Storm",
description="Web research specialist",
enable_web_search=True,
verbose=True
)
# Or use the specialized WebSearchAgent
researcher = WebSearchAgent(
name="Web Researcher",
description="Specialized web search agent"
)
response = await researcher.run_async("What are the latest developments in AI?")
Advanced Research Agent
from storm_agent import DeepResearchAgent
# Create a research powerhouse
research_storm = DeepResearchAgent(
name="Research Storm",
description="Deep research specialist with citations",
enable_web_search=True,
enable_google_drive=True,
verbose=True
)
# Get comprehensive research with citations
response = await research_storm.run_async(
"Analyze the impact of renewable energy on global markets"
)
MCP Integration
from storm_agent import Agent
# Configure MCP servers for external tool access
mcp_servers = [
{
"type": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/directory"],
"env": {}
}
]
storm = Agent(
name="File Storm",
description="Agent with file system access",
mcp_servers=mcp_servers,
verbose=True
)
response = await storm.run_async("List and analyze the files in my project directory")
๐๏ธ Architecture
Storm Agent is built with a clean, modular architecture:
storm-agent/
โโโ src/storm_agent/ # Core framework
โ โโโ agents/ # Agent implementations
โ โโโ tools/ # Tool implementations
โ โโโ utils/ # Utility modules
โ โโโ cli.py # Command-line interface
โโโ examples/ # Usage examples and demos
โโโ tests/ # Comprehensive test suite
โโโ docs/ # Documentation
โโโ scripts/ # Setup and utility scripts
๐ค Available Agents
Agent (General Purpose)
The versatile foundation agent that can be configured with any combination of tools.
WebSearchAgent
Optimized for web research tasks with built-in search and content extraction capabilities.
DeepResearchAgent
Advanced research specialist that provides comprehensive analysis with citations and structured reports.
MultiAgentSystem
Orchestrates multiple agents for complex, multi-step workflows with intelligent task delegation.
๐ ๏ธ Built-in Tools
Web Intelligence
- BraveSearchTool: High-quality web search with ranking and filtering
- FirecrawlContentTool: Advanced content extraction with fallback mechanisms
Document Processing
- GoogleDriveTool: Search and access Google Drive files with OAuth2
- GoogleDriveContentTool: Extract content from Docs, Sheets, PDFs, and images
System Integration
- RequestApprovalTool: Human-in-the-loop approval for sensitive operations
- HandoffTool: Seamless agent-to-agent task delegation
- MCPTool: Dynamic integration with Model Context Protocol servers
๐ Examples
Explore the examples/ directory for comprehensive demonstrations:
basic_web_search.py- Simple web search and content extractiondeep_research.py- Advanced research with citationsmcp_example.py- External tool integration via MCPhuman_in_the_loop.py- Interactive approval workflowssimple_multi_agent.py- Multi-agent coordination patternscustom_agent.py- Building custom agent typeshandoff_basics.py- Agent handoff mechanisms
โ๏ธ Configuration
Environment Variables
Create a .env file with your API keys:
# Required
ANTHROPIC_API_KEY=your_anthropic_api_key
# Optional - for web search capabilities
BRAVE_API_KEY=your_brave_search_api_key
FIRECRAWL_API_KEY=your_firecrawl_api_key
Google Drive Integration
For Google Drive access, set up OAuth2 credentials:
# Run the setup script
python -m storm_agent.scripts.setup_google_drive
# Or if installed from source
python scripts/setup_google_drive.py
๐ MCP Integration
Storm Agent has first-class support for the Model Context Protocol (MCP), enabling seamless integration with external tools and services. Connect to file systems, databases, APIs, and more.
See our MCP Integration Guide for detailed documentation.
๐ Citation System
Storm Agent includes a sophisticated citation system for research tasks, providing:
- Automatic source tracking
- Reference formatting
- Citation verification
- Structured bibliography generation
๐งช Development
Running Tests
# Install development dependencies
pip install storm-agent[dev]
# Run all tests
pytest
# Run with coverage
pytest --cov=storm_agent
# Run specific test categories
pytest -m "not integration" # Skip integration tests
pytest -m "asyncio" # Run only async tests
Creating Custom Tools
Extend Storm Agent with your own tools:
from storm_agent import Tool
class WeatherTool(Tool):
def __init__(self):
super().__init__(
name="weather_lookup",
description="Get current weather for a location"
)
async def execute(self, location: str, **kwargs) -> str:
# Your weather API integration here
return f"Weather in {location}: Sunny, 72ยฐF"
# Use your custom tool
from storm_agent import Agent
storm = Agent(
name="Weather Storm",
tools=[WeatherTool()]
)
Command Line Interface
# Check version
storm-agent --version
# Create and run an agent
storm-agent create --name "Research Assistant" --type research --web-search
# Run built-in examples
storm-agent run-example basic
storm-agent run-example research
๐ค Contributing
We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Add tests for new functionality
- Run the test suite (
pytest) - Submit a pull request
Development Setup
# Clone the repository
git clone https://github.com/storm-agent/storm-agent.git
cd storm-agent
# Install in development mode
pip install -e ".[dev]"
# Set up pre-commit hooks
pre-commit install
# Run tests
pytest
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Support
- Documentation: https://storm-agent.readthedocs.io
- Issues: GitHub Issues
- Discussions: GitHub Discussions
โญ Star History
If Storm Agent has been helpful for your projects, please consider giving it a star on GitHub!
Storm Agent - Unleash the Power of AI Agents ๐ฉ๏ธ
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file storm_agent-1.0.1.tar.gz.
File metadata
- Download URL: storm_agent-1.0.1.tar.gz
- Upload date:
- Size: 66.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d21ca56007082f6ad079619d38b1a6447bb66e1fe10dac94800585623ea78f08
|
|
| MD5 |
f67eb4c8f7fbdd515d142c6f9e9ba564
|
|
| BLAKE2b-256 |
a6408581d9ec786726453a9a6bfabbfb095e52eed80c7fda3772a4b270eb82a7
|
File details
Details for the file storm_agent-1.0.1-py3-none-any.whl.
File metadata
- Download URL: storm_agent-1.0.1-py3-none-any.whl
- Upload date:
- Size: 51.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a296515ee58d7de9b538b883b55e89da5094d9b970d141f1832490986fd265d
|
|
| MD5 |
3fb2a7729e31499f5fc0731d1a3f5fa5
|
|
| BLAKE2b-256 |
f8eb5126da0af838b38853a76abc43487c1a33dc456f9f9dec79ba38e949cb5b
|