File tree Expand file tree Collapse file tree 5 files changed +14
-15
lines changed Expand file tree Collapse file tree 5 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ java {
2424 }
2525}
2626
27- tasks.register<JavaExec >(" devUi" ) {
27+ // Task to execute the startDevUI() Kotlin function via a small entrypoint
28+ tasks.register<JavaExec >(" startDevUI" ) {
2829 group = " application"
29- description = " Start the ADK Dev UI server "
30- mainClass.set(" com.google. adk.web.AdkWebServer " )
30+ description = " Starts the ADK Dev UI by invoking startDevUI() "
31+ mainClass.set(" adk.DevUiMainKt " )
3132 classpath = sourceSets[" main" ].runtimeClasspath
32- args = listOf (" --adk.agents.source-dir=src/main/java" )
3333}
3434
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ package adk
2+
3+ import adk.ClimateTraceAgent.Companion.initAgent
4+ import com.google.adk.web.AdkWebServer
5+
6+ fun main () {
7+ AdkWebServer .start(initAgent())
8+ }
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import com.google.adk.models.Gemini
88import com.google.adk.runner.InMemoryRunner
99import com.google.adk.tools.LongRunningFunctionTool
1010import com.google.adk.tools.mcp.McpToolset
11+ import com.google.adk.web.AdkWebServer
1112import com.google.genai.Client
1213import com.google.genai.types.Content
1314import com.google.genai.types.Part
@@ -84,4 +85,3 @@ fun main() {
8485 }
8586 })
8687}
87-
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ molecule = "2.1.0"
2626mcp = " 0.6.0"
2727shadowPlugin = " 9.1.0"
2828jib = " 3.4.5"
29- googleAdk = " 0.2 .0"
29+ googleAdk = " 0.3 .0"
3030koogAgents = " 0.4.1"
3131
3232
You can’t perform that action at this time.
0 commit comments