Build AI agents that work with your Java applications, services, and data.
The GitHub home for AI Agents with Java by Alex Soto Bueno, Markus Eisele, and Mario Fusco, published by O’Reilly Media.
Read the book on O’Reilly · Browse the repositories
Written for experienced Java developers and software architects, the book explores how to design, build, and operate autonomous agents on the JVM. It connects agent behavior with the concerns that matter in enterprise applications: reliability, security, observability, and integration with existing systems.
Through practical examples and architecture patterns, you’ll explore:
- Agent coordination: orchestration, planning, reflection, and collaboration between agents.
- Memory and knowledge: stateful agents and retrieval-augmented generation (RAG).
- Tool integration: connecting agents to APIs and backend services, with resilience in mind.
- Communication protocols: Model Context Protocol (MCP) and Agent2Agent (A2A).
- Operating agents: access controls, governance, debugging, and observability.
The book draws on Quarkus, LangChain4j, and LangGraph4j.
Browse this organization’s repositories to find the accompanying projects. Start with the README in the project you want to explore for its setup and usage instructions.
For the current book contents and availability, visit the O’Reilly book page.