liteflow  by dromara

Component-based rule engine for complex orchestration

Created 6 years ago
3,796 stars

Top 12.5% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

LiteFlow is a high-performance, component-based rule engine designed for orchestrating complex business logic and AI agents. It targets Java developers seeking to decouple systems and simplify intricate workflows. The framework offers a lightweight DSL for defining rules, enabling dynamic orchestration, hot deployment, and seamless integration of various scripting languages and AI models, significantly enhancing system flexibility and maintainability.

How It Works

LiteFlow employs a component-centric architecture where all logic units are treated as reusable components. Business processes are driven by a lightweight Domain-Specific Language (DSL) defined in XML, JSON, or YAML, allowing for intuitive arrangement of synchronous and asynchronous operations. A key innovation is its ability to orchestrate AI Agents as first-class components, leveraging a ReAct (Reasoning + Acting) Agent module that handles LLM interactions, memory, and skills. This approach allows AI reasoning to be seamlessly integrated into existing business rule flows using standard orchestration operators like THEN, WHEN, and IF.

Quick Start & Requirements

  • Installation: Primarily a Java framework, typically integrated via Maven/Gradle dependencies.
  • Prerequisites: JDK 8-25. JDK 21+ is required for the AI Agent module, which also necessitates configuration for LLM providers (OpenAI, Claude, Gemini, etc.). Full Spring Boot 2.X, 3.X, and 4.X support.
  • Documentation: Official website and documentation links are mentioned but not provided in the source text.
  • Setup: Assumed to be standard Java project setup; AI module setup requires LLM API keys and JDK 21+.

Highlighted Details

  • Unified Component Model: All logic is encapsulated as components.
  • Rule Diversification: Supports XML, JSON, and YAML for rule definition.
  • Hot Refresh: Rules can be updated and reloaded dynamically without application restarts, ensuring high availability.
  • Multi-Language Scripting: Integrates Groovy, Java, Kotlin, JavaScript, Python, Lua, and Aviator scripts.
  • AI Agent Orchestration: Version 2.16.0 introduced liteflow-react-agent, allowing ReAct Agents to be standard components, supporting multiple LLM platforms, multi-turn memory, and skill systems.
  • Robustness: Features component retry, context isolation, and detailed execution step logging.

Maintenance & Community

LiteFlow is a community-driven project with a high iteration speed and an active user base. It is supported by several sponsors, including FastBee and Easysearch. Community engagement is facilitated via Discord (https://discord.gg/MpdBSBnFTu) and a WeChat group (invitation required via official account).

Licensing & Compatibility

The provided README does not explicitly state the project's license. This omission requires clarification for assessing commercial use or closed-source linking compatibility.

Limitations & Caveats

The AI Agent module requires JDK 21 or later. The absence of a clearly stated open-source license is a significant adoption blocker, preventing definitive compatibility assessments for commercial or closed-source projects. Joining the WeChat community requires an invitation process.

Health Check
Last Commit

1 month ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
37 stars in the last 30 days

Explore Similar Projects

Starred by Gagan Bansal Gagan Bansal(Coauthor of AutoGen; Research Scientist at Microsoft Research), Elvis Saravia Elvis Saravia(Founder of DAIR.AI), and
1 more.

agent-framework by microsoft

1.2%
12k
AI agent and multi-agent workflow framework
Created 1 year ago
Updated 23 hours ago
Feedback? Help us improve.