// the take
A teaching project that walks Java developers through building an AI chat application and a ReAct-pattern autonomous agent using Spring AI and Java 21. The app domain is relationship advice, but that's just the vehicle — the actual content covers RAG, tool calling, MCP, and agent loop implementation. It's aimed at Chinese developers who want AI engineering on their resume.
The agent hierarchy (BaseAgent → ReActAgent → ToolCallAgent → YuManus) is a clean, composable design that mirrors how production agents are actually structured. The tool set is practical — web search, file ops, terminal, PDF generation, web scraping — not toy examples. Spring AI's Advisor and ChatMemory abstractions are exercised properly, including a custom FileBasedChatMemory rather than relying only on in-memory state. The project ships a companion MCP server (yu-image-search-mcp-server) as a separate module, which gives learners a real server-side MCP implementation to study.
The TerminalOperationTool is a serious red flag — giving an LLM unrestricted shell access with no sandboxing is the kind of decision that ends careers in production. There are no integration tests that matter; YuManusTest and LoveAppTest are spring context load tests at best. The RAG knowledge base is three markdown files bundled in resources, which is fine for a demo but teaches nothing about document freshness, re-indexing, or handling knowledge conflicts. The codebase is also tightly coupled to Alibaba's Bailian platform in the cloud RAG path, so anyone not using that platform has to rework chunks of the RAG configuration.
We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →