Skip to content

Overview

Koog is an open-source JetBrains framework for building AI agents with an idiomatic, type-safe Kotlin DSL designed specifically for JVM and Kotlin developers. It lets you create agents that interact with tools, handle complex workflows, and communicate with users.

You can customize agent capabilities with a modular feature system and deploy your agents across JVM, JS, WasmJS, Android, and iOS targets using Kotlin Multiplatform.

Agents

Learn about agents in general and how to create different types of agents using Koog:

  • Basic agents


    Use a predefined strategy that works for most common use cases

  • Functional agents


    Define custom logic as a lambda function in plain Kotlin

  • Graph-based agents


    Implement a custom workflow as a strategy graph

  • Planner agents


    Iteratively build and execute a plan until the state matches the desired conditions

Core components

Learn about the core components of Koog agents in detail:

  • Prompts


    Create, manage, and run prompts that drive the agent's interaction with the LLM

  • Strategies


    Design the agent's intended workflow as a directed graph

  • Tools


    Enable the agent to interact with external data sources and services

  • Features


    Extend and enhance the functionality of AI agents

Advanced usage

Integrations