You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since SpringAI requires JDK 17 and Spring Boot 3, but many applications still use JDK 8 version at present, so AI4J that can support JDK 8 is used to access large models such as OpenAI.
4
-
An Java SDK for quickly integrating AI large model applications. It integrates multiple platform large models such as OpenAI, Ollama, Zhipu (ChatGLM), DeepSeek, Moonshot (Kimi), Tencent Hunyuan, Lingyi (01), etc. It provides a unified input and output (aligned with OpenAI), eliminates differences, optimizes function calls (Tool Call), optimizes RAG calls, and supports vector databases (Pinecone). It also supports JDK 1.8, providing users with the ability to quickly integrate AI.
23
+
A Java AI Agentic development toolkit for JDK 8+, combining foundational AI capabilities with higher-level agent development capabilities.
24
+
It covers multi-provider model access, unified I/O, Tool Calling, MCP, RAG, unified `VectorStore`, ChatMemory, agent runtime, coding agent, CLI / TUI / ACP, and FlowGram integration, helping Java applications grow from basic model integration to more complete agentic application development.
25
+
26
+
This repository has evolved into a multi-module SDK. In addition to the core `ai4j` module, it now provides `ai4j-agent`, `ai4j-coding`, `ai4j-cli`, `ai4j-spring-boot-starter`, `ai4j-flowgram-spring-boot-starter`, and `ai4j-bom`. If you only need the basic LLM integration layer, start with `ai4j`. If you need agent runtime, coding agent, CLI / ACP, Spring Boot, or FlowGram integration, add the corresponding modules.
27
+
28
+
## Positioning Compared with Common Java AI Options
|`Spring AI`|`Java 17+`|`Spring Boot 3.x`| Spring-native AI integration, model access, Tool Calling, MCP, and RAG |
34
+
|`Spring AI Alibaba`|`Java 17+`|`Spring Boot 3.x`| Spring and Alibaba Cloud AI ecosystem integration |
35
+
|`LangChain4j`|`Java 17+`| Plain Java / Spring / Quarkus and more | General Java abstractions for LLM, agent, and RAG integration, plus AI Services |
5
36
6
37
## Supported platforms
7
38
+ OpenAi
@@ -21,6 +52,11 @@ An Java SDK for quickly integrating AI large model applications. It integrates m
21
52
## Features
22
53
+ Supports Spring and ordinary Java applications. Supports applications above Java 8.
23
54
+ Multi-platform and multi-service.
55
+
+ Provides `ai4j-agent` as the general agent runtime, with ReAct, subagents, agent teams, memory, tracing, and tool loop support.
56
+
+ Built-in Coding Agent CLI / TUI with interactive repository sessions, provider profiles, workspace model override, and session/process management.
57
+
+ Provides `ai4j-coding` as the coding agent runtime, with workspace-aware tools, outer loop, checkpoint compaction, subagent, and team collaboration support.
58
+
+ Provides `ai4j-flowgram-spring-boot-starter` for integrating FlowGram workflows and trace in Spring Boot applications.
59
+
+ Provides `ai4j-bom` for version alignment across multiple ai4j modules.
24
60
+ Unified input and output.
25
61
+ Unified error handling.
26
62
+ Supports streaming output. Supports streaming output of function call parameters.
@@ -37,12 +73,140 @@ An Java SDK for quickly integrating AI large model applications. It integrates m
37
73
+[Quick access to open source large models such as qwen2.5 and llama3.1 on the Ollama platform in Java.](https://blog.csdn.net/qq_35650513/article/details/142408092?spm=1001.2014.3001.5501)
38
74
+[Build a legal AI assistant in Java and quickly implement RAG applications.](https://blog.csdn.net/qq_35650513/article/details/142568177?fromshare=blogdetail&sharetype=blogdetail&sharerId=142568177&sharerefer=PC&sharesource=qq_35650513&sharefrom=from_link)
39
75
76
+
## Coding Agent CLI / TUI
77
+
78
+
AI4J now includes `ai4j-cli`, which can be used directly as a local coding agent. Current capabilities include:
0 commit comments