Swarm AI 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
Swarm AI 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
Swarm AI 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 克隆仓库 git clone https://github.com/intelliswarm-ai/swarm-ai cd swarm-ai # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 swarm-ai --help # 基本运行 swarm-ai [options] <input> # 详细使用说明请查阅文档 # https://github.com/intelliswarm-ai/swarm-ai
# swarm-ai 配置说明 # 查看配置选项 swarm-ai --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export SWARM_AI_CONFIG="/path/to/config.yml"
A multi-agent orchestration framework for Java, designed for enterprise use. Built on Spring AI 1.0.4 GA and Spring Boot 3.4 with type-safe state management, dynamic skill generation, RL-powered decision making, and enterprise features.
www.intelliswarm.ai | Documentation | Quick Start | Migration Guide
swarmai-enterprise) -- Commercial tier with license-gated multi-tenancy, advanced governance, RBAC, audit, and SSOswarmai-eval) -- Framework for agentic self-evaluation and competitive benchmarksObservabilityContext now propagates across parallel threads via Snapshot APISwarmException, AgentExecutionException, ProcessExecutionException, ToolExecutionException, ConfigurationException, PermissionDeniedExceptionAuditSink, MeteringSink, LicenseProvider for enterprise extensibility| Feature | Module | Description |
|---|---|---|
| **Multi-Tenancy** | enterprise | Tenant-isolated memory, knowledge, quotas, budgets |
| **Governance Gates** | core + enterprise | Human-in-the-loop approval checkpoints (BEFORE_TASK, AFTER_TASK) |
| **Budget Tracking** | core | Real-time token/cost tracking with HARD_STOP or WARN enforcement |
| **RL Policy Engine** | core | LinUCB, NeuralLinUCB, Thompson Sampling — benchmark-validated algorithms |
| **License Management** | enterprise | JWT/RSA license validation, feature-gated bean activation |
| **Tool Permissions** | core | READ_ONLY, WORKSPACE_WRITE, DANGEROUS levels with WARN logging |
| **Tool Hooks** | core | Audit, sanitize, rate-limit, deny interceptors on every tool call |
| **Circuit Breaker** | core | resilience4j circuit breaker + retry on LLM API calls |
| **Health Checks** | core | Spring Boot Actuator indicators for Memory, Budget, EventStore |
| **Observability** | core | Correlation IDs, structured logging, decision tracing, event replay |
./mvnw clean test # 3004 tests, all passing
./mvnw clean install # install to local Maven repo
Available on Maven Central. Recommended approach is to import the BOM and let it manage versions for all SwarmAI modules:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>ai.intelliswarm</groupId>
<artifactId>swarmai-bom</artifactId>
<version>1.0.9</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>ai.intelliswarm</groupId>
<artifactId>swarmai-core</artifactId>
</dependency>
<dependency>
<groupId>ai.intelliswarm</groupId>
<artifactId>swarmai-tools</artifactId>
</dependency>
<dependency>
<groupId>ai.intelliswarm</groupId>
<artifactId>swarmai-dsl</artifactId>
</dependency>
</dependencies>
Enterprise + Studio modules (swarmai-enterprise,swarmai-studio) are licensed under BSL 1.1 and distributed via GitHub Packages instead of Maven Central. Configure a<server>block in your~/.m2/settings.xmlwith a Personal Access Token havingread:packagesscope to consume them.
Agent researcher = Agent.builder()
.role("Research Analyst")
.goal("Find accurate, up-to-date information")
.backstory("Experienced researcher who verifies facts.")
.chatClient(chatClient)
.tool(webSearchTool)
.permissionMode(PermissionLevel.READ_ONLY)
.build();
Agent writer = Agent.builder()
.role("Content Writer")
.goal("Write clear, engaging reports")
.backstory("Turns research into well-structured articles.")
.chatClient(chatClient)
.build();
Task research = Task.builder()
.id("research").description("Research: {topic}")
.agent(researcher).build();
Task report = Task.builder()
.id("report").description("Write a report from findings")
.agent(writer).dependsOn("research")
.outputFormat(OutputFormat.MARKDOWN).build();
SwarmOutput result = Swarm.builder()
.agents(List.of(researcher, writer))
.tasks(List.of(research, report))
.process(ProcessType.SEQUENTIAL)
.build()
.kickoff(Map.of("topic", "AI agents in enterprise"));
| SwarmAI | LangGraph | langchain4j | Spring AI | |
|---|---|---|---|---|
| Language | Java | Python | Java | Java |
| Multi-agent orchestration | ✓ | ✓ | partial | ✗ |
| Declarative YAML workflows | ✓ | ✗ | ✗ | ✗ |
| Budget enforcement | ✓ | ✗ | ✗ | ✗ |
| Governance / approval gates | ✓ | partial | ✗ | ✗ |
| RBAC on tool execution | ✓ | ✗ | ✗ | ✗ |
| Production maturity | new (1.0) | mature | mature | mature |
| Community size | small | large | medium | large |
If you don't need multi-agent orchestration with governance, use Spring AI directly. If you're on Python, use LangGraph. SwarmAI's wedge is JVM teams that need an opinionated agent layer with budget, RBAC, and approval gates baked in.
Swarm AI是一个有前景的开源AI框架,具有自我改进能力
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,Swarm AI 在Agent工作流赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | swarm-ai |
| 原始描述 | 开源AI工作流:Spring AI framework for Java that plans, executes, and improves itself — agents 。⭐13 · Java |
| Topics | JavaAI工作流 |
| GitHub | https://github.com/intelliswarm-ai/swarm-ai |
| License | Apache-2.0 |
| 语言 | Java |
收录时间:2026-05-25 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端