Discover and explore top open-source AI tools and projects—updated daily.
Java library for building stateful, multi-agent LLM apps, designed for Langchain4j and Spring AI
Top 40.6% on SourcePulse
LangGraph4j provides a Java-native framework for building stateful, multi-agent applications powered by Large Language Models (LLMs). It enables developers to construct complex LLM workflows by defining nodes, edges, and state management, offering a structured approach to orchestrating agent interactions and tool usage.
How It Works
LangGraph4j is built around the concept of a StatefulGraph
, parameterized by a state object that is passed between nodes. Nodes are functions that accept and return state updates, either setting or adding to specific state attributes defined by a schema. This schema uses Channels
to represent state attributes, with AppenderChannel
facilitating list accumulation. The library supports asynchronous operations via CompletableFuture
and streaming responses using java-async-generator
, with features like checkpoints for saving and replaying graph execution.
Quick Start & Requirements
langgraph4j-core
dependency to your Maven project.
<dependency>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-core</artifactId>
<version>1.5.8</version>
</dependency>
Highlighted Details
Maintenance & Community
The project is actively maintained, with the latest release (1.5.8) on April 26, 2025. Community resources and integration examples are available, including links to projects like AIDEEPIN and Dynamo Multi AI Agent POC.
Licensing & Compatibility
The library is available under a standard open-source license, facilitating commercial use and integration with closed-source applications.
Limitations & Caveats
Graph visualization and a playground with breakpoint features are marked as "x" (not implemented) in the README's feature list, indicating these specific functionalities may be incomplete or unavailable.
14 hours ago
1 day