Bring AI and build AI agents into your Jakarta EE Apps with LangChain4J-CDI
summary
Enterprise Java gains concrete tooling to host LLM-powered agents: a CDI extension named LangChain4J-CDI auto-creates proxy AI services (version 0.0.7) from annotated interfaces using @RegisterAIService, injects chat models, chat memory and vector stores via MicroProfile Config, applies scopes (request/application), adds MicroProfile Fault Tolerance retries/fallbacks, and emits metrics to MicroProfile Telemetry/Prometheus. Demo registers a working agent against Gemini 2.5, runs on Jakarta EE 10+, and supports RAG, embeddings and observability.
AI-written summary · about
chapters (9)
- 0:00Introduction and speaker background
- 2:26What is LangChain4J?
- 5:01AI services and agents in LangChain4J
- 9:47Introducing LangChain4J-CDI
- 13:24Configuring AI services with CDI
- 17:22Adding memory and resiliency
- 21:40Getting started with LangChain4J-CDI
- 23:51Resources and further reading
- 26:19Demo and closing remarks
