Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/trip-planning-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
paths:
- 'examples/trip-planning-example/**'

env:
JAVA_VERSION: 17
JAVA_DISTRIBUTION: 'corretto'

jobs:
app-compilation:

Expand All @@ -21,11 +25,11 @@ jobs:
run: |
git config --global core.autocrlf input
- uses: actions/checkout@v5
- name: Set up JDK 17
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'corretto'
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}

# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
Expand All @@ -35,3 +39,7 @@ jobs:
- name: Assemble
working-directory: ./examples/trip-planning-example
run: ./gradlew assemble

- name: ktlintCheck
working-directory: ./examples/trip-planning-example
run: ./gradlew ktlintCheck
16 changes: 7 additions & 9 deletions examples/trip-planning-example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.ktlint)
application
}

application.mainClass.set("ai.koog.agents.examples.tripplanning.MainKt")

dependencies {
implementation(libs.koog.agents)
implementation(libs.kotlin.bom)

implementation(libs.kotlinx.serialization.json)

implementation(libs.kotlinx.coroutines.core)

implementation(libs.ktor.client.core)
implementation(libs.kotlinx.coroutines.swing)
implementation(libs.kotlinx.datetime)
implementation(libs.kotlinx.serialization.json)
implementation(libs.ktor.client.cio)
implementation(libs.ktor.client.content.negotiation)
implementation(libs.ktor.serialization.kotlinx.json)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.logging)

implementation(libs.koog.all)

implementation(libs.ktor.serialization.kotlinx.json)
implementation(libs.logback.classic)
implementation(libs.oshai.logging)
}
Expand Down
33 changes: 14 additions & 19 deletions examples/trip-planning-example/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,29 @@
[versions]
kotlin = "2.1.20"
ktor = "3.1.2"
coroutines = "1.10.2"
koog = "0.4.2-feat-1-3"
logback = "1.5.13"
oshai-logging = "7.0.7"
koog = "0.6.1"
kotlin = "2.3.0"
kotlinx-datetime = "0.7.1-0.6.x-compat"
ktlint = "14.0.1"
ktor = "3.4.0"
logback = "1.5.27"
oshai-logging = "7.0.14"

[libraries]
koog-agents = { module = "ai.koog:koog-agents", version.ref = "koog" }
kotlin-bom = { module = "org.jetbrains.kotlin:kotlin-bom", version.ref = "kotlin" }

# Serialization
kotlinx-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "coroutines" }
kotlinx-coroutines-swing = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-swing", version.ref = "coroutines" }
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinx-datetime" }
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json"}

# Ktor
ktor-client-core = { group = "io.ktor", name = "ktor-client-core", version.ref = "ktor" }
ktor-client-cio = { group = "io.ktor", name = "ktor-client-cio", version.ref = "ktor" }
ktor-client-content-negotiation = { group = "io.ktor", name = "ktor-client-content-negotiation", version.ref = "ktor" }
ktor-serialization-kotlinx-json = { group = "io.ktor", name = "ktor-serialization-kotlinx-json", version.ref = "ktor" }
ktor-client-core = { group = "io.ktor", name = "ktor-client-core", version.ref = "ktor" }
ktor-client-logging = { group = "io.ktor", name = "ktor-client-logging", version.ref = "ktor" }

# Koog (meta-dependency to get all core modules)
koog-all = { module = "ai.koog:koog-agents", version.ref = "koog" }

# Coroutines
kotlinx-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "coroutines" }

# Logging
ktor-serialization-kotlinx-json = { group = "io.ktor", name = "ktor-serialization-kotlinx-json", version.ref = "ktor" }
logback-classic = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
oshai-logging = { module = "io.github.oshai:kotlin-logging", version.ref = "oshai-logging" }

[plugins]
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" }
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Mon Jun 16 13:32:43 CEST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
50 changes: 32 additions & 18 deletions examples/trip-planning-example/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading