
Framework designed for building AI agents with tool interaction, complex workflows, semantic search, and persistent memory. Offers modular architecture, real-time processing, and comprehensive tracing.
Build status:
Useful links:
Koog is a Kotlin-based framework designed to build and run AI agents entirely in idiomatic Kotlin. It lets you create agents that can interact with tools, handle complex workflows, and communicate with users.
Key features of Koog include:
The LLM providers and platforms whose LLMs you can use to power your agent capabilities:
To help you get started with AI agents, here is a quick example:
fun main() = runBlocking {
// Before you run the example, assign a corresponding API key as an environment variable.
val apiKey = System.getenv("OPENAI_API_KEY") // or Anthropic, Google, OpenRouter, etc.
val agent = AIAgent(
promptExecutor = simpleOpenAIExecutor(apiKey), // or Anthropic, Google, OpenRouter, etc.
systemPrompt = "You are a helpful assistant. Answer user questions concisely.",
llmModel = OpenAIModels.Chat.GPT4o
)
val result = agent.run("Hello! How can you help me?")
println(result)
}Currently, the framework supports the JVM, JS, WasmJS and iOS targets.
Add dependencies to the build.gradle.kts file:
dependencies {
implementation("ai.koog:koog-agents:0.6.3")
}
Make sure that you have mavenCentral() in the list of repositories.
Add dependencies to the build.gradle file:
dependencies {
implementation 'ai.koog:koog-agents:0.6.3'
}
Make sure that you have mavenCentral() in the list of repositories.
Add dependencies to the pom.xml file:
<dependency>
<groupId>ai.koog</groupId>
<artifactId>koog-agents-jvm</artifactId>
<version>0.6.3</version>
</dependency>
Make sure that you have mavenCentral in the list of repositories.
Read the Contributing Guidelines.
This project and the corresponding community are governed by the JetBrains Open Source and Community Code of Conduct. Please make sure you read it.
Koog is licensed under the Apache 2.0 License.
Please feel free to ask any questions in our official Slack channel and to use Koog official YouTrack project for filing feature requests and bug reports.
Build status:
Useful links:
Koog is a Kotlin-based framework designed to build and run AI agents entirely in idiomatic Kotlin. It lets you create agents that can interact with tools, handle complex workflows, and communicate with users.
Key features of Koog include:
The LLM providers and platforms whose LLMs you can use to power your agent capabilities:
To help you get started with AI agents, here is a quick example:
fun main() = runBlocking {
// Before you run the example, assign a corresponding API key as an environment variable.
val apiKey = System.getenv("OPENAI_API_KEY") // or Anthropic, Google, OpenRouter, etc.
val agent = AIAgent(
promptExecutor = simpleOpenAIExecutor(apiKey), // or Anthropic, Google, OpenRouter, etc.
systemPrompt = "You are a helpful assistant. Answer user questions concisely.",
llmModel = OpenAIModels.Chat.GPT4o
)
val result = agent.run("Hello! How can you help me?")
println(result)
}Currently, the framework supports the JVM, JS, WasmJS and iOS targets.
Add dependencies to the build.gradle.kts file:
dependencies {
implementation("ai.koog:koog-agents:0.6.3")
}
Make sure that you have mavenCentral() in the list of repositories.
Add dependencies to the build.gradle file:
dependencies {
implementation 'ai.koog:koog-agents:0.6.3'
}
Make sure that you have mavenCentral() in the list of repositories.
Add dependencies to the pom.xml file:
<dependency>
<groupId>ai.koog</groupId>
<artifactId>koog-agents-jvm</artifactId>
<version>0.6.3</version>
</dependency>
Make sure that you have mavenCentral in the list of repositories.
Read the Contributing Guidelines.
This project and the corresponding community are governed by the JetBrains Open Source and Community Code of Conduct. Please make sure you read it.
Koog is licensed under the Apache 2.0 License.
Please feel free to ask any questions in our official Slack channel and to use Koog official YouTrack project for filing feature requests and bug reports.