Files
Shahin Saadati bae192e3d4 Add Kotlin tabs for grounding with Agent Search (#2160)
* Add Kotlin tabs for grounding with Agent Search

Both tab groups on the page showed Python and Java only, though
VertexAiSearchTool has existed in adk-kotlin since v0.1.0.

Kotlin uses the constructor directly rather than the builder the Java tab
reaches for, since dataStoreId is a named parameter. The citation snippet
collects from the event Flow instead of iterating a list, and reads
isFinalResponse as a property.

Both tabs are inline, matching their siblings: the snippets elide
surrounding setup and carry placeholder datastore ids, so there is
nothing here that could compile standalone.

* Badge the grounding page with the version VertexAiSearchTool shipped in

The badge said Kotlin v0.8.0, the version adk-docs compiles against,
rather than the introducing release. VertexAiSearchTool has been present
since v0.1.0, matching the Python v0.1.0 and Java v0.1.0 badges already
on this page.

* Cover Kotlin in the Agent Search authentication setup

Kotlin reads the same Google Cloud credentials and env vars as Java from
the application environment, so the auth bullet now names both. Also
corrects the Kotlin support tag: VertexAiSearchTool landed in v0.2.0, not
v0.1.0.

* Apply suggestion from @joefernandez

---------

Co-authored-by: Shahin Saadati <3443249+happyhuman@users.noreply.github.com>
Co-authored-by: Joe Fernandez <931947+joefernandez@users.noreply.github.com>
2026-08-31 13:21:20 -07:00
..