JetBrains/koog

Koog is a JVM (Java and Kotlin) framework for building predictable, fault-tolerant and enterprise-ready AI agents across all platforms – from backend services to Android and iOS, JVM, and even in-browser environments. Koog is based on our AI products expertise and provides proven solutions for complex LLM and AI problems

What it solves

Koog は AI エージェントを構築するためのフレームワークで、開発者が慣用的な Kotlin と Java API を用いて、ツールと対話し、複雑なワークフローを管理し、ユーザーとコミュニケーションできるエージェントを作成できます。JVM ベースのアプリケーションに LLM を型安全に統合し、信頼性とスケーラビリティを確保します。

How it works

Koog はコンポーザブルなアーキテクチャと Kotlin DSL を使用してエージェントの振る舞いを定義します。Google、OpenAI、Anthropic、Ollama など多数の LLM プロバイダーをサポートし、モデル間のシームレスな切り替えが可能です。フレームワークには履歴圧縮、障害耐性のための状態永続化、ベクトル埋め込みを用いた RAG ベースの知識検索機能が組み込まれています。

Who it’s for

JVM と Kotlin の開発者向けで、Spring Boot や Ktor といったフレームワークを利用したエンタープライズアプリケーションに AI エージェントを組み込みたい方に最適です。

Highlights

  • Multiplatform Support: Deploy agents across JVM, JS, WasmJS, Android, and iOS.
  • Agentic Capabilities: Support for parallel tool calls, Model Context Protocol (MCP) integration, and flexible graph-based workflows.
  • Observability: Built-in OpenTelemetry exporters for monitoring with tools like Langfuse and W&B Weave.
  • Reliability: Built-in retries and agent state persistence to recover from failures.
  • RAG Integration: Native support for knowledge retrieval and memory via vector embeddings.