mirror of
https://github.com/google/adk-docs.git
synced 2026-09-14 16:16:59 +08:00
eb989519a7
* Upgrade Kotlin docs to adk-kotlin 0.9.0 and move off AdkWebServer adk-kotlin 0.9.0 split the web server into AdkApiServer, which serves the agent runtime contract headlessly, and AdkDevServer, which adds the development UI. AdkWebServer is deprecated in that release and goes away at 1.0, so WebMain.kt as written here stops compiling the day 1.0 ships. The quickstart snippet now builds an AdkDevServer from an AdkServerConfig. That drops three imports: AdkServerConfig.inMemory() supplies the agent loader and the in-memory session and artifact services the old constructor took one by one. Two behaviour notes come with the split. AdkWebServer pinned host to 0.0.0.0; the new classes bind loopback, which is a visible change for anyone reaching the server from a container or a remote box, so the page now says so and names the host parameter in prose. It prints no worked example on purpose: the only value such a snippet could carry is either 127.0.0.1, which overrides the default with itself, or 0.0.0.0, which is a copyable way to publish an unauthenticated server on every interface, and AdkDevServer construction is already shown in full earlier on the page. And AdkApiServer is the headless half of the same config, so it gets a short section rather than a bare mention - the bundled Kotlin API reference is still generated at 0.5.0 and documents none of these classes, so a link there would not have helped. The "not meant for production" warning now sits directly after the screenshot, where go.md, java.md and python.md put it. The dependency blocks readers copy from still pinned 0.8.0, and so did the examples project. Verified on Maven Central that 0.9.0 is published for every artifact named across these pages: -core, -processor, -webserver, -litertlm, -a2a and -integrations. Checked the 0.9.0 POMs before bumping: Ktor still resolves to 2.3.13 and a2a-java-sdk-client to 1.0.0.Final, so the explicit pins stay correct and the two comments citing them only needed their version reference moved. The `Kotlin v0.x` support badges are deliberately left alone: they record the release a feature landed in, not the current version. Verified by compiling: every snippet added here was compiled verbatim against the published 0.9.0 artifacts on JDK 17, and the whole examples project still builds at 0.9.0. As a negative control, the old snippet still compiles at 0.9.0 but emits the deprecation warning, which is what makes this a 1.0 break rather than a present-day one. Note the Kotlin snippet check only builds .kt files changed in the PR, so it will not cover a markdown-only change like this. * Apply suggestion from @joefernandez * Apply suggestion from @joefernandez * Removing information bloat from the Get Started see comments for where to locate this information --------- Co-authored-by: Joe Fernandez <931947+joefernandez@users.noreply.github.com>