Repository navigation
AF4J 1.0: governed, stateful multi-agent workflows on top of Spring AI #7439
ahmed-sekka
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
A few months ago I asked here how to handle stateful multi-agent workflows in Spring AI. The answer was to keep exploring it as an external layer, so I did. That layer reached 1.0 and is now on Maven Central.
What it is. AF4J is a small runtime that sits on top of Spring AI's
ChatClient. Spring AI handles the model and the tools. AF4J handles what happens around them when several agents run as one workflow:What it is not. It is not a workflow engine. Durable timers, compensation and waits that span days are out of scope today, and Temporal is the right tool for those. It is also not an official Spring project.
A real case. secANTy, an application security platform, uses AF4J as the governance layer of its investigation agent: the agent runs on an AF4J graph with a token budget per run, and nothing it proposes is acted on without a human decision.
Try it. Java 17+, Apache 2.0. Tested in CI against Spring AI 1.0 and 1.1 on Spring Boot 3.5, and Spring AI 2.1 on Spring Boot 4.2.
Feedback is welcome, especially on where this should meet the upcoming
spring-ai-agentmodule instead of overlapping with it.All reactions