Illustration einer tropischen Insel mit Palmen und einem hohen Berg

Java Blog für Programmierer

LangChain4j 1.24.0 adds decision models and declarative agent support

· Christian Ullenboom

The release introduces a model type that answers with typed answers and probabilities instead of generated text, aimed at classification, routing, gating, and grading, with a Gemini-backed implementation among the first providers. It also adds helper objects for declarative agents with full CDI support, a Decision Scheduler agentic pattern, token-usage reporting for agentic flows, and a new langchain4j-test module that captures AI Service interactions for assertions; listeners now receive an invocation ID linking nested AI Service calls. Upgrading is not drop-in: constants for OpenAI models that have been shut down were removed, Milvus 2.6.20+ filters changed how isNotEqualTo/isNotIn treats entries without the key, and an async agent whose output is never read now runs fire-and-forget. https://github.com/langchain4j/langchain4j/releases/tag/1.24.0

← Alle Beiträge