Skip to content

--8<-- [start:prerequisites]

确保您的环境和项目符合以下要求:

  • JDK 17+
  • Kotlin 2.2.0+
  • Gradle 8.0+ 或 Maven 3.8+

--8<-- [end:prerequisites]

--8<-- [start:dependencies]

Koog 软件包 添加为依赖项:

dependencies {
    // 稳定版
    implementation("ai.koog:koog-agents:1.0.0")

    // Beta 版
    implementation("ai.koog:koog-agents-additions:1.0.0-beta")
}
dependencies {
    // 稳定版
    implementation 'ai.koog:koog-agents:1.0.0'

    // Beta 版
    implementation 'ai.koog:koog-agents-additions:1.0.0-beta'
}
xml
<dependency>
    <!-- 稳定版 -->
    <dependency>
        <groupId>ai.koog</groupId>
        <artifactId>koog-agents-jvm</artifactId>
        <version>1.0.0</version>
    </dependency>

    <!-- Beta 版 -->
    <dependency>
        <groupId>ai.koog</groupId>
        <artifactId>koog-agents-additions-jvm</artifactId>
        <version>1.0.0-beta</version>
    </dependency>
</dependency>

--8<-- [end:dependencies]

--8<-- [start:api-key]

从 LLM 提供商处获取 API 密钥,或者通过 Ollama 运行本地 LLM。 要了解更多信息,请参阅 快速入门

--8<-- [end:api-key]