Agentic AI on the JVM

Centralize error handling behind one contract, trace requests across services and LLM calls with OpenTelemetry, then build a multi-agent investigation system with LangChain4j, Neo4j, and Qdrant.

All reading paths 3 entries, 40 min

In reading order

003

Centralized exception handling in REST APIs with Spring and FastAPI

Problem. An API often handles exceptions in one of two bad ways. It catches them and logs nothing, so nobody can find the error later. Or it lets them reach the client, and the response shows class names, table names and SQL.

Fix. Log the stack trace in one global handler and return a small JSON error.

006

InvestigatorAI: a multi-agent investigation system with LangChain4j, Neo4j and Qdrant

Problem. An investigation question can need a graph query, a document search and a check of the sources. One model call cannot do all of this well. When the work is split into separate tasks, each one using real data, the answers are more accurate and you can see which step produced a wrong finding.

Fix. Give each task to its own agent and trace every step in Langfuse.