Mario is a senior principal software engineer at IBM working as Drools project lead. Among his interests there are also high performance systems and generative AI, being an active contributor of widely adopted projects like Quarkus and LangChain4j. He is also a Java Champion, the JUG Milano coordinator, a frequent speaker and the co-author of "Modern Java in Action" published by Manning.
Look closely at any agentic system and you will find that much of what the LLM does is not generating text but making small decisions: which agent should handle this request, is this answer good enough, should the loop stop, does a human need to step in. Today we make those decisions by asking a chat model to write a word and then parsing it back. That is slow and expensive, and it tells us nothing about how sure the model was.
Decision models take a different approach. Instead of generating text, they answer typed questions about an input (yes/no, one choice among several, a position on a scale) and return probabilities derived from the model's output distribution, with many questions answered in a single call.
This talk introduces decision models and shows how they were integrated in LangChain4j. We start with the low-level DecisionModel API and then move to Decision Services, which let you declare decisions as plain Java interfaces returning booleans, enums and records. We also cover the first provider integration, which works with hosted and self-hosted open models.
We then look at what this changes for agentic systems and how this new kind of models can be used in combination with the LangChain4j Planner abstraction to implement more effective agentic patterns: routing, escalation between cheap and capable agents, judging competing answers and supervising a multi-agent loop can all be driven by a decision model instead of an LLM.
Searching for speaker images...