mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 09:37:55 -05:00
MASSIVE UPDATE - 271 new files ## Agent Library (208 agents across 10 categories) - DevOps (28 agents): deployment, monitoring, infrastructure - Engineering (30 agents): code generation, testing, documentation - Data (25 agents): ETL, analysis, visualization - Security (20 agents): scanning, compliance, threat detection - Finance (20 agents): trading, portfolio, risk analysis - Creative (20 agents): content generation, SEO, translation - Business (20 agents): CRM, automation, project management - Research (15 agents): literature review, experiments, analysis - Web (15 agents): scraping, API integration, webhooks - AI/ML (15 agents): training, deployment, monitoring ## Base Framework - BaseAgent class with lifecycle management - AgentExecutor with parallel/sequential/DAG execution - AgentRegistry with discovery and search - Configuration management - Comprehensive error handling and retries ## Python SDK - Production-ready pip-installable package - Sync and async clients - Full type hints and Pydantic models - Comprehensive examples and tests - Auth, Blockchain, and Agent clients ## TypeScript/JavaScript SDK - Production-ready npm-publishable package - Full TypeScript types - ESM + CommonJS dual package - Browser and Node.js support - Comprehensive examples and tests ## Backend Integration - /api/agents endpoints in FastAPI - Agent execution API - Agent discovery and search - Execution plans and orchestration Value: $5M+ worth of engineering work
96 lines
2.5 KiB
Python
96 lines
2.5 KiB
Python
"""
|
|
BlackRoad Agent Library
|
|
|
|
The world's largest production-ready AI agent ecosystem.
|
|
|
|
Features:
|
|
- 208+ pre-built agents across 10 categories
|
|
- Production-grade base framework
|
|
- Agent orchestration and execution
|
|
- Parallel and sequential execution
|
|
- Dependency management
|
|
- Configuration management
|
|
- Comprehensive monitoring
|
|
|
|
Quick Start:
|
|
>>> from agents.base import AgentRegistry, AgentExecutor
|
|
>>> registry = AgentRegistry()
|
|
>>> executor = AgentExecutor()
|
|
>>> agent = registry.get_agent('deployment-agent')
|
|
>>> result = await executor.execute(agent, {'platform': 'railway'})
|
|
|
|
Categories:
|
|
- DevOps (28 agents): Deployment, monitoring, infrastructure
|
|
- Engineering (30 agents): Code generation, testing, documentation
|
|
- Data (25 agents): ETL, analysis, visualization
|
|
- Security (20 agents): Scanning, compliance, threat detection
|
|
- Finance (20 agents): Trading, portfolio management, risk analysis
|
|
- Creative (20 agents): Content generation, SEO, translation
|
|
- Business (20 agents): CRM, automation, project management
|
|
- Research (15 agents): Literature review, experiments, data analysis
|
|
- Web (15 agents): Scraping, API integration, webhooks
|
|
- AI/ML (15 agents): Training, deployment, monitoring
|
|
"""
|
|
|
|
__version__ = '1.0.0'
|
|
__author__ = 'BlackRoad Corporation'
|
|
|
|
from .base import (
|
|
BaseAgent,
|
|
AgentStatus,
|
|
AgentMetadata,
|
|
AgentResult,
|
|
AgentExecutor,
|
|
ExecutionPlan,
|
|
OrchestrationResult,
|
|
AgentRegistry,
|
|
ConfigManager,
|
|
get_config,
|
|
init_config,
|
|
AgentConfig,
|
|
)
|
|
|
|
__all__ = [
|
|
'BaseAgent',
|
|
'AgentStatus',
|
|
'AgentMetadata',
|
|
'AgentResult',
|
|
'AgentExecutor',
|
|
'ExecutionPlan',
|
|
'OrchestrationResult',
|
|
'AgentRegistry',
|
|
'ConfigManager',
|
|
'get_config',
|
|
'init_config',
|
|
'AgentConfig',
|
|
]
|
|
|
|
|
|
def get_agent_count():
|
|
"""Get total number of registered agents."""
|
|
registry = AgentRegistry()
|
|
stats = registry.get_stats()
|
|
return stats['total_agents']
|
|
|
|
|
|
def get_categories():
|
|
"""Get list of all agent categories."""
|
|
registry = AgentRegistry()
|
|
return registry.list_categories()
|
|
|
|
|
|
def print_stats():
|
|
"""Print agent library statistics."""
|
|
registry = AgentRegistry()
|
|
stats = registry.get_stats()
|
|
|
|
print("=" * 60)
|
|
print("BlackRoad Agent Library Statistics")
|
|
print("=" * 60)
|
|
print(f"Total Agents: {stats['total_agents']}")
|
|
print(f"Categories: {stats['total_categories']}")
|
|
print("\nAgents by Category:")
|
|
for category, count in sorted(stats['agents_by_category'].items()):
|
|
print(f" {category:.<20} {count:>3} agents")
|
|
print("=" * 60)
|