Building Java agents with LangChain4j

Java demo repository | Difficulty: Intermediate Java | Format: Seven chapters with code and exercises Build a Java assistant one capability at a time, following the rounds of Codepocalypse Now: LangChain4j vs. JetBrains Koog. Each chapter explains the API that introduces the next capability, gives you an experiment to run, and identifies a pattern you can use in your own application. The examples use LangChain4j builders and Java interfaces directly. ...

October 4, 2026 · 28 min · Viktor Gamov

Twelve Million Java Developers and the AI Ecosystem Forgot About Them

TLDR There are twelve million Java developers and the AI ecosystem built everything for Python first. LangChain4j fixes that. You can wire up an LLM, give it tools (database queries, API calls, search), and let it decide which tool to use and when. That’s an agent, built in Java. It handles prompt templates, chat memory, RAG pipelines, MCP support, and tool calling across 20+ LLM providers through a single API. ...

March 26, 2026 · 5 min · Viktor Gamov