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

When AI Alignment Experts Can't Align Their Own AI

TLDR Meta’s director of AI alignment told her agent "confirm before acting." It deleted her entire inbox anyway. OpenClaw hit 250k GitHub stars in 60 days, its codebase hit 400,000 lines, and about 12% of its skill marketplace was malware. NanoClaw runs every agent in its own Linux container with 4,000 lines of code you can read in one sitting. I picked a third option. It runs on the JVM. ...

March 30, 2026 · 6 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

Divide, Distribute and Conquer — Stream v. Batch @ Philly JUG

TL;DR On September 13th 2017 I presented «Divide, Distribute and Conquer: Stream v. Batch» at Philly JUG. In this presentation I talked about how developers and data engineers are changing their perception on data processing using streaming data technologies. Table 1. Revisions history Version Date Comments v1.0 09/20/2017 Initial revision Tweets @ThePhillyJUG meetup where @gamussa talked about stream vs batch, #kafka #kafkastreams pic.twitter.com/6KlFwfnCAw — Jason Young (@jythejavaguy) September 14, 2017 @gamussa: "how many here use Gradle? Maven? Hmm, people have made some poor life choices. (J/K!)" Didn't say which was the right choice :) pic.twitter.com/rPAGZNKEoy — Jason Young (@jythejavaguy) September 14, 2017 A presentation Have you seen this? Please, rate! Loading... Slides [Philly JUG] Divide, Distribute and Conquer: Stream v. Batch from Viktor Gamov Useful links Kafka Streams [1] Confluent repo of Kafka Streams examples [2] Grab the code You can find code sample is following GH repository https://github.com/gAmUssA/kstreams-wordcount 1. https://kafka.apache.org/documentation/streams/ 2. https://github.com/confluentinc/kafka-streams-examples

September 20, 2017 · 1 min · Viktor Gamov

Testing containers with Testcontainers @ Atlanta JUG

TL;DR On July 18th 2017 I presented «Testing containers with TestContainers: There and back again» at Atlanta JUG talk. In this presentation I talked about how Docker can help with seamless transition from development to production by leveraging container technology in integration testing. Table 1. Revisions history Version Date Comments v1.0 07/20/2017 Initial revision A presentation Slides Testing containers with TestContainers @ AJUG 7/18/2017 from Viktor Gamov Useful links Official website of TestContainers [1] TestContainers Java Examples [2] OpenJDK Docker images [3] Pumba - Chaos testing tool for Docker [4] Grab the code You can find code sample is following GH repository https://github.com/gAmUssA/testcontainers-hazelcast 1. https://www.testcontainers.org 2. https://github.com/testcontainers/testcontainers-java-examples 3. https://hub.docker.com/_/openjdk/ 4. https://github.com/gaia-adm/pumba

July 20, 2017 · 1 min · Viktor Gamov

Distributed Java Streams @ ACGNJ 2017

The Splendors and Miseries of the Distributed Streams Have you seen it? Do you like it? Please, rate Loading... Slides TBD TBD

May 30, 2017 · 1 min · Viktor Gamov

JavaPuzzlers @ PhillyETE 2017

Have you seen it? Do you like it? Please, rate Loading... Slides TBD [Philly ETE] Java Puzzlers NG from Viktor Gamov

April 18, 2017 · 1 min · Viktor Gamov

JPoint - 2017 [RU]

Распределяй и властвуй — 2: Потоки данных наносят ответный удар - Russian Edition Видели ли вы этот доклад? как Вам? Гружу... Видео TBD Слайды Распределяй и властвуй — 2: Потоки данных наносят ответный удар from Viktor Gamov Код Примеры кода вы найдете здесь https://github.com/hazelcast/hazelcast-jet-code-samples Подсчет строк https://github.com/hazelcast/hazelcast-jet-code-samples/blob/master/core/wordcount/src/main/java/WordCount.java Консьюмер Кафки https://github.com/hazelcast/hazelcast-jet-code-samples/blob/master/kafka/consume-kafka/src/main/java/ConsumeKafka.java

April 8, 2017 · 1 min · Viktor Gamov

JBreak 2017 [RU]

Блеск и нищета распределенных стримов - Russian Edition Видели ли вы этот доклад? как Вам? Loading... Видео TBD Слайды [JBreak] Блеск И Нищета Распределенных Стримов - 04-04-2017 from Viktor Gamov Код искать тут You can find code sample is following GH repository https://github.com/gAmUssA/jet-streams-presentation Branch for this talk Jbreak_2017

April 4, 2017 · 1 min · Viktor Gamov

Hazelcast Node.js Client Refcard

Welcome to «The Distributed World» of Hazelcast. Here are sample usages of distributed data structures using Node.js client. Table 1. Revisions history Version Date Comments v1.1 03/09/2015 single quotes in js code, added Before Getting Started section v1.0 02/07/2015 Initial revision The JavaScript examples use ES6 syntax ...

February 9, 2017 · 3 min · Viktor Gamov