Paul Krill
Editor at Large

JetBrains updates Kotlin-based AI agent development framework

news
Aug 28, 20252 mins
Development Libraries and FrameworksGenerative AIKotlin

Koog 0.4.0 adds native structured output, support for Apple iOS platform and GPT-5 models.

AI agents and agentic AI
Credit: Rob Schultz / Shutterstock

Koog 0.4.0, an update to the JetBrains Kotlin framework for building AI agents, features native structured output intended to hold up in production. It also adds Apple’s iOS as a target platform, as well as GPT-5 model and OpenTelemetry support.

Announced August 28, Koog 0.4.0 is intended to make agents observable, seamless, deployable in a user’s stack, and more predictable, while adding support for new platforms and models, JetBrains said. Code is accessible from GitHub. Native structured output addresses a situation in which a large language model (LLM) can provide the exact data format needed, but then the process stops working. Koog 0.4.0 adds native structured output supported by some LLMs, with pragmatic guardrails like retries and fixing strategies. When a model supports structured output, the framework uses it directly. Otherwise, Koog falls back to a tuned prompt-and-retry, with a fixing parser powered by a separate model, until the payload looks exactly how it should.

For iOS, Koog is now available on Apple’s mobile operating system as part of a focus on Kotlin Multiplatform. Developers can build an agent once and ship it to iOS, Android, and JVM back ends—all with the same strategy graphs, observability hooks, and tests. But developers must use Koog 0.4.1 to build for iOS. Additionally with Koog 0.4.0, GPT-5 support and custom LLM parameters help a model think harder on complex parameters. Settings such as reasoningEffort enable a balance of quality, cost, and latency for each call, according to JetBrains. OpenTelemetry backing, meanwhile, supports both the W&B Weave AI development toolkit and the Langfuse open source LLM engineering platform.

Developers can install the desired plugin on any agent and point it to a back end. They will be able to see nested agent events along with token and cost breakdowns per request. To deal with the LLM calling time out, tools misbehaving, and networks hiccups, Koog 0.4.0 adds RetryingLLMClient, with Conservative, Production, and Aggressive presets. Fine-grained control and DeepSeek model support are also featured.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author