> Markdown version of [/videos/100687-java-is-coming-for-python-s-lunch-the-rise-of-jvm-ai-agents](https://www.wearedevelopers.com/videos/100687-java-is-coming-for-python-s-lunch-the-rise-of-jvm-ai-agents). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Java is Coming for Python’s Lunch: The Rise of JVM AI Agents Frederik Pietzko argues that Python is losing its AI crown as enterprise agents move into production. See how virtual threads, strict typing, and frameworks like Spring AI and Koog make the JVM the ultimate home for resilient AI. - **Speakers:** [Frederik Pietzko](https://www.wearedevelopers.com/@frederik-pietzko) - **Event:** Conference India 2026 - **Published:** November 26, 2026 - **Duration:** 31:24 - **URL:** https://www.wearedevelopers.com/videos/100687-java-is-coming-for-python-s-lunch-the-rise-of-jvm-ai-agents - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/7b354baa89199fa0a34b0d450fd27f81/thumbnails/thumbnail.jpg?time=30000ms ## Summary As AI transitions from experimental prototypes to enterprise production, the JVM is uniquely positioned to overtake Python. JetBrains Developer Advocate Frederik Pietzko argues that because business rules and domain models already live in Java and Kotlin, building agents directly within these systems avoids the friction of external protocols like MCP. Furthermore, the JVM provides out-of-the-box OpenTelemetry observability, cheap concurrency via virtual threads for heavy LLM network I/O, and strict type safety that automatically converts domain models into JSON schemas. Instead of replacing human interaction, enterprise AI should focus on smart business process automation—tackling repetitive tasks like evaluating prose-heavy HR travel policies. Pietzko demonstrates this using a trip-request reviewer built with a judge pattern across three JVM frameworks. Spring AI uses a middleware-like advisor chain for tool calling, session memory compaction, and unbiased evaluation. Built on Spring AI, Embabel uses Goal-Oriented Action Planning (GOAP), the A* algorithm, and a typed blackboard to deterministically plan actions; notably, it recommends performing state mutations in deterministic actions rather than LLM tools to minimize the attack surface. Finally, JetBrains' Koog offers a LangGraph-inspired approach using strategies and subgraphs to strictly control execution flows and isolate judge contexts. For resilient, long-running workflows, Koog uniquely provides automatic node checkpointing and a tool rollback registry to cleanly recover from mid-execution failures. **Keywords:** JVM AI agents, Spring AI, Embabel framework, JetBrains Koog, Kotlin AI development, smart business process automation, LLM judge pattern, goal-oriented action planning, GOAP algorithm, Spring AI advisors, AI tool calling, agent memory compaction, JVM virtual threads, structured LLM outputs, LangGraph for JVM, AI tool rollback, agent state checkpointing, blackboard architecture pattern ## Chapters 1. **Why the JVM excels at production AI agents** (00:02) — Integrating AI into existing enterprise systems requires reliability and scale, which the JVM delivers through built-in type safety, virtual threads, and mature observability. 1. **Automating business processes with a judge pattern** (04:40) — Replacing human interaction with AI often fails, so organizations should instead automate repetitive policy checks using a two-stage review and judge workflow. 1. **Building tool-calling agents and memory with Spring AI** (08:29) — Stateless LLMs struggle with multi-step workflows and domain logic, which Spring AI solves using chat client advisors, tool annotations, and session compaction. 1. **Deterministic action planning in Embabel using GOAP** (14:36) — Unconstrained LLMs can trigger unwanted state mutations, so Embabel uses Goal-Oriented Action Planning and a typed blackboard to deterministically sequence agent actions. 1. **Controlling agent workflows with Koog graphs and subgraphs** (21:49) — Complex agent loops require strict execution boundaries, which JetBrains Koog enforces using LangGraph-inspired strategies and isolated subgraphs. 1. **Resuming failed executions with Koog checkpointing and rollbacks** (27:03) — Long-running agent workflows can fail mid-execution due to API outages, so Koog provides automatic node checkpointing and a tool rollback registry to recover state. ## Related Moments - [Overview of enterprise Java and generative AI](https://www.wearedevelopers.com/videos/1554-java-meets-ai-empowering-spring-developers-to-build-intelligent-apps) (from "Java Meets AI: Empowering Spring Developers to Build Intelligent Apps") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/0a7190d8fc82d88001ae6b738cec5475/thumbnails/thumbnail.jpg?time=62005ms - [Navigating the AI landscape as a Java developer](https://www.wearedevelopers.com/videos/1549-create-ai-infused-java-apps-with-langchain4j) (from "Create AI-Infused Java Apps with LangChain4j") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/b5eb696c7e2e32df1079265d68086dd1/thumbnails/thumbnail.jpg?time=42255ms - [Comparing popular Java frameworks for AI integration](https://www.wearedevelopers.com/videos/1554-java-meets-ai-empowering-spring-developers-to-build-intelligent-apps) (from "Java Meets AI: Empowering Spring Developers to Build Intelligent Apps") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/0a7190d8fc82d88001ae6b738cec5475/thumbnails/thumbnail.jpg?time=62005ms - [Choosing Java over Python for enterprise AI integration](https://www.wearedevelopers.com/videos/1592-agentic-ai-systems-for-critical-workloads) (from "Agentic AI Systems for Critical Workloads") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/09f134a13299828b40bb0ce6399dfff3/thumbnails/thumbnail.jpg?time=126825ms - [Choosing Java over Python for enterprise AI ecosystems](https://www.wearedevelopers.com/videos/1550-ai-agents-graph-your-following-tool-in-your-java-ai-journey) (from "AI Agents Graph: Your following tool in your Java AI journey") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/5d72b20611422c21dd87c05046db07e4/thumbnails/thumbnail.jpg?time=86205ms - [Utilizing Java frameworks to interface with AI models](https://www.wearedevelopers.com/videos/844-enter-the-brave-new-world-of-genai-with-vector-search) (from "Enter the Brave New World of GenAI with Vector Search") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/9603ab4cad02218daecd3265703f19a3/thumbnails/thumbnail.jpg?time=184865ms ## Related Articles - [What is Agentic Programming and Why Should Developers Care?](https://www.wearedevelopers.com/magazine/625-what-is-agentic-programming-and-why-should-developers-care) - [Graph and AI Trends 2026: Why Is AI Running but Not Yet Delivering?](https://www.wearedevelopers.com/magazine/680-graph-and-ai-trends-2026-why-is-ai-running-but-not-yet-delivering) - [MLOps And AI Driven Development](https://www.wearedevelopers.com/magazine/82-mlops-and-ai-driven-development) - [What is Software Engineering in the Age of AI?](https://www.wearedevelopers.com/magazine/640-what-is-software-engineering-in-the-age-of-ai) ## Related Jobs - [Tech Lead Java/Spring](https://www.wearedevelopers.com/jobs/ext/4814922-tech-lead-java-spring) at **Neo4J** - [Principal Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/4667602-principal-software-engineer-copilot-code-review) at **GitHub** - [Staff Software Engineer, GitHub Intelligence (Copilot Agents)](https://www.wearedevelopers.com/jobs/ext/4850314-staff-software-engineer-github-intelligence-copilot-agents) at **GitHub** - [Staff Software Engineer, Copilot Code Review](https://www.wearedevelopers.com/jobs/ext/4743636-staff-software-engineer-copilot-code-review) at **GitHub** - [Google Cloud Engineer, Experienced Associate](https://www.wearedevelopers.com/jobs/ext/4682306-google-cloud-engineer-experienced-associate) at **PwC** - [Google Cloud Engineer, Experienced Associate](https://www.wearedevelopers.com/jobs/ext/4749542-google-cloud-engineer-experienced-associate) at **PwC**