Commit Graph

133 Commits

Author SHA1 Message Date
Toni Klopfenstein 27e1303857 Kotlin snippets fixes (#1770)
* Migrating from Map to typed data classes in FuncTool and LongRunningTool kotlin examples

* lint cleanup of kotlin snippets

* adding gradle wrapper for kotlin snippets

* cleaning up build file for kotlin

* fixing ktlint_code_style, added focus on included Gradle Wrapper

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-05-19 15:29:44 -05:00
Kristopher Overholt 50f7df7f46 Add Kotlin language support to ADK docs (#1768)
* Add Kotlin to hero / front page

* Add quickstart page for Kotlin

* Complete Kotlin quickstart guide and fix hero code sample (#2)

* Replace GitHub repo links with language icons in header (#3)

* Fix header icon FOUC and homepage font weight regression (#4)

* Testing staging pipeline

* Revert test edit (for staging pipeline)

* Update language icon tooltips to indicate GitHub destination (#5)

* Add link to ADK Kotlin release notes (#7)

* Initial commit of ADK Kotlin API reference docs (#6)

* Add script to generate ADK Kotlin API reference docs (#8)

* Update links and link checker ignore list (temporarily) (#9)

* Add ADK Kotlin for Android getting started guide to Advanced setup page (#10)

* Add advanced setup page with steps to "Use ADK Kotlin in Android projects"

* Update temp link checker rules

* Add placeholder folder for adk-samples (#13)

* adding linter/compilation checks for kotlin snippets (#12)

* adding linter/compilation checks for kotlin snippets

* Add Kotlin validation scripts

* Initial commit of Kotlin sample agents for adk-samples (#15)

* Adding kotlin snippet for llm agents (#16)

* Adding kotlin snippets to  Events (#17)

* Pull changes to docs/events/index.md from glaforge-kotlin-snippets

* fixing kotlin event timestamp and longRunningToolIds

* Fix language tags (#19)

* Fix language tags

* Update

* Fix wrapping

* Fix wrapping (again)

* Fix wrapping/format

* Fix language tag on integration page

* Enable check_paths in PyMdown Snippets Extension to make the build fail if a snippet can't be found (#20)

* Update mkdocs config (#21)

* Fix broken links, update URLs to adk.dev, and improve (temp) lychee config (#22)

* Add Kotlin/maven badge to README (#23)

* Adding Kotlin snippets for artifacts  (#18)

* Pull Kotlin snippets for artifacts from glaforge-kotlin-snippets

* Add comprehensive Kotlin snippets for artifacts

* Refactor artifacts documentation to use external Kotlin snippets

* Update Kotlin model to gemini-flash-latest

* Fix GCS initialization in Kotlin artifact snippet

* afixi failing test with capital-agent added to files_to_check

* Fix snippet label syntax for MkDocs build

* Configure proper Gradle project for Kotlin snippets and fix dependencies

* Add KSP support and generated sources to Kotlin snippets build

* fixing capital_agent turnComplete

* Fix syntax error in build.gradle.kts by removing invalid placeholders (#25)

* Adding Kotlin snippets to google-gemini.md (#27)

Pulling kotlin changes to google-gemini.md from glaforge-kotlin-snippets

* Add a warning about not adding an api key to production code. (#28)

* Add a warning about not adding an api key to production code.

* Update note

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>

* Add ADK Demo App sample showcasing Gemini-powered agents (#29)

This sample demonstrates how to use the Google ADK (Agent Development Kit) in an Android application to create a chat interface powered by a Gemini-based "Fun Facts" agent. The implementation features:
*   Integration with the Kotlin ADK core and processor libraries.
*   A `FunFactsAgent` defined using `LlmAgent` and the Gemini model.
*   A `ChatViewModel` utilizing `InMemoryRunner` for asynchronous message streaming.
*   A modern UI built with Jetpack Compose and Material 3.
*   Build configuration logic for secure API key management via environment variables or `local.properties`.

* Update Kotlin docs and samples to align with adk-kotlin API changes (#30)

Rename GeminiModel to Gemini, @AdkTool/@AdkParam to @Tool/@Param,
adkTools() to generatedTools(), replace DebugRunner with InMemoryRunner,
fix AgentLoader import path, use SingleAgentLoader, bump Kotlin to
2.3.21 and KSP to 2.3.7, and update Android minSdk from 24 to 26.

* adding kotlin info to READMEs (#14)

* Reorganize Android sample agent and add READMEs (#31)

* Move Android sample agent

* Update repo README, add Android README, update sample agent README

* Minor edit to language support tags (#32)

* Remove blog post link (#33)

Will re-add after it's published

* Remove examples link (#34)

* Adding Kotlin snippets for Sessions docs (#26)

* initial kotlins snippets additions to sessions docs

* Updating memory docs with kotlin snippets

* Adding kotlin snippets to session state docs.

* update model to gemini-flash-latest

* sessions examples clean-up

* fixing sessions snippet markers

* adding kotlin session snippets to files to test

* adding callback to memory_example

* Fixing capital agent snippet  (#35)

Fixing file name
Updating adkTool > Tool
Updating GeminiModel > Gemini

* Adding kotlin snippets for tools docs (#36)

* adding function tool kotlin snippets

* adding function_tools snippets to files to test

* Adding kotlin snippets to observability docs (#37)

* initial kotlin observability updates

* adding observability snippets to file check (#38)

* Adding Kotlin snippets to Callbacks docs (#39)

*  kotlin callbacks snippets

* adding callbacks snippets to file check

* Align Kotlin and KSP versions with published 0.1.0 artifacts (#40)

* switch CLI entry points from InMemoryRunner to ReplRunner (#41)

* Switch CLI entry points from InMemoryRunner to ReplRunner

* Fix wording

* Update API reference docs for Kotlin, 2026-05-18 (#42)

* Remove ADK on Android note until published (#43)

* Update Kotlin code samples (#44)

* Rename GeminiModel to Gemini in Kotlin snippets and docs

* Remove broken SessionKey call and use sessionId directly in AgentTool snippet

* Rewrite Go hero snippet to use llmagent API

* Use isFinalResponse with safe access in CapitalAgent snippet

* Use Role.USER constant instead of raw string in SetupExample

* Use full semver v0.1.0 in Kotlin language support tags

* Remove Android setup steps, moving to new property (#45)

* Tutorial Kotlin agent (#46)

* Adding multi-tool-agent snippet and updating tutorial
* Fixing Go language order on tutorial page
* adding multi tool agent example to files to test

* Inline Kotlin get-started code sample

* Kotlin Multi agents snippets (#47)

* Multi-agent kotlin snippets

* Fixing docs tags in multiagent example

* Fix Kotlin language support tags, code samples, and google-gemini.md cleanup (#48)

* Add Kotlin v0.1.0 to language support tags across docs

* Fix MultiToolAgent.kt model string and argument style

* Update MultiAgentExample.kt to use gemini-flash-latest model string

* Fix google-gemini.md: add Kotlin sample, remove unsupported Java tabs

* Remove explicit apiKey from CallbackBasic.kt for consistency

* Standardize Gemini() constructor to use named args in all snippets

* Remove adk-samples directory (moved to google/adk-samples#1969)

* Remove adk-samples directory (moved to google/adk-samples#1969) (#49)

* Update API reference docs for ADK Kotlin 0.1.0 (#50)

* Remove adk-samples directory (moved to google/adk-samples#1969)

* Update API reference docs for ADK Kotlin 0.1.0

* Remove kotlin lycheeignore config (#51)

* Remove adk-samples directory (moved to google/adk-samples#1969)

* Remove Kotlin .lycheeignore config links

---------

Co-authored-by: Toni Klopfenstein <2359976+ToniCorinne@users.noreply.github.com>
Co-authored-by: Jolanda Verhoef <JolandaVerhoef@users.noreply.github.com>
2026-05-19 11:43:42 -05:00
dependabot[bot] cac85aa9b1 chore(deps): bump the go_modules group across 2 directories with 2 updates (#1582)
Bumps the go_modules group with 2 updates in the /examples/go directory: [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) and [google.golang.org/grpc](https://github.com/grpc/grpc-go).
Bumps the go_modules group with 1 update in the /tools/feature-matrix directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go).


Updates `go.opentelemetry.io/otel/sdk` from 1.38.0 to 1.43.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.38.0...v1.43.0)

Updates `google.golang.org/grpc` from 1.76.0 to 1.79.3
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.76.0...v1.79.3)

Updates `google.golang.org/grpc` from 1.75.1 to 1.79.3
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.76.0...v1.79.3)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
  dependency-version: 1.43.0
  dependency-type: indirect
  dependency-group: go_modules
- dependency-name: google.golang.org/grpc
  dependency-version: 1.79.3
  dependency-type: indirect
  dependency-group: go_modules
- dependency-name: google.golang.org/grpc
  dependency-version: 1.79.3
  dependency-type: indirect
  dependency-group: go_modules
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-05-08 17:14:26 -05:00
dependabot[bot] 953957b508 chore(deps): bump org.postgresql:postgresql (#1736)
Bumps the maven group with 1 update in the /examples/java/demos/patent-search-agent/src/main/java/tools/CloudRunFunction directory: [org.postgresql:postgresql](https://github.com/pgjdbc/pgjdbc).


Updates `org.postgresql:postgresql` from 42.6.1 to 42.7.11
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.6.1...REL42.7.11)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-version: 42.7.11
  dependency-type: direct:production
  dependency-group: maven
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-06 10:59:27 -05:00
Kristopher Overholt f6b1259cdc Add agent routing and model routing pages for RoutedAgent/RoutedLlm in ADK JS (#1709)
* Add agent routing and model routing docs for RoutedAgent and RoutedLlm in ADK JS

* Update example code snippets

* Add renamed code sample files

* Update lychee link checker config

* Shorten docs and snippets paths and filenames

* Update titles

* Rework intros

* Rework intros

* Add notes about experimental status

* Move InMemoryRunner outside of code snippet regions since it's unused in rendered snippet
2026-05-04 17:37:44 -05:00
Kristopher Overholt 06bec8757d Add Cancel Agent Runs page for AbortSignal support in ADK JS (#1708)
* Add Cancel Agent Runs docs page for ADK JS AbortSignal support

* Add Cancel Agent Runs page

* Shorter section heading

* Re-run deploy build

* Fix language tag

* Move sample code to snippets files/dir

* Reword intro

* Reorder sections

* Shorter doc and snippet file names

* Add cancel page
2026-05-04 16:07:56 -05:00
Kristopher Overholt e9a6dcaf99 Fix TypeScript snippet rendering on Skills page (#1690)
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2026-04-28 16:25:25 -05:00
Isaac Alejandro Blanco 32ca424b35 Update A Simple Math Toolset example code (#1697)
* fix: working code for the new version

* fix: typos

* fix: lint

* Fix import paths, remove trailing underscore from prefix, and replace Runner with InMemoryRunner/run_debug for a self-contained runnable example.

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-04-28 13:14:58 -05:00
Kristopher Overholt 0942b60c15 Update Java ADK dependency versions to 1.2.0 (#1691) 2026-04-27 13:31:29 -05:00
Anastasia 0cd4f6a538 Add ambient agents documentation for Golang (#1649)
* Add ambient agents documentation for Golang

* Minor edits

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
Co-authored-by: Karol Piotrowicz <karol.piotrowicz@gmail.com>
2026-04-24 14:34:39 +02:00
Kristopher Overholt 1214ad915a Update product names in docs (#1673)
* Update names in docs

* Update names in docs

* Code formatting

* Format notebooks

* Update names in docs

* Update names in docs

* Update names in code samples

* Update names in docs

* Update names in docs

* Update names in docs

* Update names in docs

* Update names in docs

* Update names in docs

* Update names in docs

* Update names in docs

* Update icon

* Update names in docs

* Update names in docs
2026-04-22 05:10:38 -07:00
Toni Klopfenstein 0f9f80ce5a Adding Skills snippets for Typescript (#1668)
* initial TS skills samples addtions

* fixing script dependencies, models, and agent functionality

* fixing Python snippet model name

* fixing package.jsson paths

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-04-21 17:53:04 -07:00
Toni Klopfenstein ae78cb4eed Adding confirmation Typescript snippets (#1669)
* Adding initial confirmation js snippets

* updating confirmation tools examples to output text response to user to improve test flow

* fixing boolean_confirmation failure to deny excessive requests

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-04-21 17:52:17 -07:00
dependabot[bot] 9edc834103 chore(deps): bump the pip group across 4 directories with 1 update (#1641)
* chore(deps): bump the pip group across 4 directories with 1 update

Bumps the pip group with 1 update in the /examples/python/agent-samples/youtube_shorts_assistant directory: [google-adk](https://github.com/google/adk-python).
Bumps the pip group with 1 update in the /examples/python/snippets/streaming/adk-streaming-ws directory: [google-adk](https://github.com/google/adk-python).
Bumps the pip group with 1 update in the /examples/python/snippets/streaming/adk-streaming-ws/app directory: [google-adk](https://github.com/google/adk-python).
Bumps the pip group with 1 update in the /examples/python/snippets/streaming/adk-streaming/app directory: [google-adk](https://github.com/google/adk-python).


Updates `google-adk` from 0.1.0 to 1.28.1
- [Release notes](https://github.com/google/adk-python/releases)
- [Changelog](https://github.com/google/adk-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/adk-python/compare/v0.1.0...v1.28.1)

Updates `google-adk` from 1.17.0 to 1.28.1
- [Release notes](https://github.com/google/adk-python/releases)
- [Changelog](https://github.com/google/adk-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/adk-python/compare/v0.1.0...v1.28.1)

Updates `google-adk` from 1.17.0 to 1.28.1
- [Release notes](https://github.com/google/adk-python/releases)
- [Changelog](https://github.com/google/adk-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/adk-python/compare/v0.1.0...v1.28.1)

Updates `google-adk` from 1.10.0 to 1.28.1
- [Release notes](https://github.com/google/adk-python/releases)
- [Changelog](https://github.com/google/adk-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/adk-python/compare/v0.1.0...v1.28.1)

---
updated-dependencies:
- dependency-name: google-adk
  dependency-version: 1.28.1
  dependency-type: direct:production
  dependency-group: pip
- dependency-name: google-adk
  dependency-version: 1.28.1
  dependency-type: direct:production
  dependency-group: pip
- dependency-name: google-adk
  dependency-version: 1.28.1
  dependency-type: direct:production
  dependency-group: pip
- dependency-name: google-adk
  dependency-version: 1.28.1
  dependency-type: direct:production
  dependency-group: pip
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove version pins from samples

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-04-15 09:58:13 -05:00
eliasecchig f3f466fe29 Add ambient agents documentation (#1630)
* Add ambient agents documentation

Document how to build event-driven ambient agents using ADK trigger
endpoints and the /run endpoint. Covers Pub/Sub, Eventarc (Standard
and Advanced), Cloud Scheduler, concurrency control, retry logic,
session lifecycle, and deployment to Cloud Run.

* Address reviewer feedback: clarify event processing flow

- Move "How events are processed" higher, right after trigger endpoints
  intro, so the mental model comes before setup instructions
- Reword step 5: explicitly describe status code behavior (200 = ack,
  500 = retry) instead of vague "determines whether to retry"
- Clarify that trigger endpoints auto-create sessions without needing
  the --auto_create_session flag
- Restructure heading hierarchy under "Using trigger endpoints"

* Address reviewer feedback from koverholt

- Use named sections (--8<-- [start/end]) in code snippets to hide
  license headers in doc embeds
- Change model to gemini-flash-latest alias
- Restructure: show example agent first, then enable instructions,
  then "Try it locally" with step-by-step commands and curl test
- Fix port consistency (curl uses 8000 matching adk api_server default)
- Add curl example for /run endpoint

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-04-15 09:26:16 -05:00
Toni Klopfenstein 3e60a094fc Adding JS memory snippets (#1580)
* adding initial JS snippets to memory docs

* updating js example to separate script for testing

* updating memory snippet for typescript

* removing unnecessary .js file, fixing code rendering in docs

* removing unused imports

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-04-08 13:42:56 -05:00
Joe Fernandez 7567175816 docs: move multi-tool agent and redirect links (#1557)
* docs: move multi-tool agent and redirect links

* update based on comments and testing
2026-04-03 17:55:27 -07:00
Kristopher Overholt 58f3aaebca Replace documentation URLs and paths for adk.dev migration (#1536)
* Replace google.github.io/adk-docs URLs and /adk-docs/ paths with adk.dev

Migrate all hardcoded documentation references to use the new custom
domain. Update root-relative links to remove the /adk-docs/ subpath
prefix since the site will be served from the root of adk.dev.

* Additional fixes
2026-04-01 12:48:27 -05:00
Toni Klopfenstein fac3375a2d Updates to getting started guides for Go (#1495)
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2026-03-29 06:27:03 -06:00
Toni Klopfenstein dd9bc3adf7 Update memory docs with Go snippets (#1493)
* updating memeory docs for new adk-go functionality

* fixing code snippets alignment on memory docs

* fix Go notes on memory docs

---------

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2026-03-29 06:24:07 -06:00
Guillaume Laforge 0dacea986e doc: A2A support in ADK Java (#1503)
* doc: A2A support in ADK Java

* doc: fix spelling for the Agent2Agent protocol name
2026-03-27 09:12:13 -07:00
vpaiva77 0a09aefdbd Fix: Model not supported (#1483) 2026-03-26 15:32:28 +00:00
Shahin Saadati 06f553cfe9 Added missing java snippets to function-tools.md (#1467)
* Added missing java snippets to function-tools.md

* Update function-tools.md

---------

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2026-03-24 08:44:55 -07:00
Shahin Saadati 5331a07f1b Added the missing java snippet to tools-custom/index.md (#1454) 2026-03-19 16:18:24 +00:00
Sandheep P ee1555e66c The app name youtube-shorts-assistant contains hyphens, which aren't valid Python identifiers. (#1436) 2026-03-16 23:52:40 +00:00
Shahin Saadati ca9d1ec6b1 Added the missing java code snippets. (#1417) 2026-03-13 18:32:37 +00:00
Scott Mansfield 20569ed52e Update typescript context (#1393)
* Update snippets to new Context type

* Updating documentation to reflect the unified Context type in Typescript

* Incorporating review feedback

---------

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2026-03-06 14:27:19 -08:00
ShacharSh 1d02f6f461 Fix tool name reference in the customer_support_agent.py example (#1224)
While the check_and_transfer function is wrapped as a FunctionTool named as escalation_tool , this name is later on remains unused. This fix should clarify the example using the right name.

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2026-02-04 10:40:41 -08:00
Aditya Mulik 10ba6551f3 docs: refactor parallel agent example - clean imports and test code (#1213)
* docs: refactor parallel agent example - clean imports and test code

* Update parallel agent; bump to Gemini 2.5 Flash

---------

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-02-02 18:42:00 -06:00
Aditya Mulik b3146d7e60 docs: refactor loop agent example - clean imports and test code (#1212)
* docs: refactor loop agent example - clean imports and test code

* Update loop agent; bump to Gemini 2.5 Flash

---------

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-02-02 18:26:10 -06:00
Aditya Mulik 0222117d34 docs: refactor sequential agent example - clean imports and test code (#1211)
* docs: refactor sequential agent example - clean imports and test code

* removed constants comment

* fix typo

* Add GEMINI_MODEL constant comment to sequential agent

* Update to Gemini 2.5 Flash

* Clean up sequential agent code sample

---------

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-02-02 18:02:40 -06:00
Aditya Mulik 15fb0b5910 Removed BaseAgent as it was redundant (#1199)
Was wondering if BaseAgent was used in the code, since it's redundant, I thought of removing it.

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-01-29 11:48:49 -06:00
Huan Chen 372b316234 docs: document built-in data-agent tools (#1164)
* docs: document built-in data-agent tools

* replace project and agent name

* add in nav

* update title

* update content

* update title

* update content

* update content

* update content

* update version
2026-01-23 14:39:36 -08:00
Kamal Aboul-Hosn b38ec7602b docs: Add documentation for the new Pub/Sub tool (#1151)
* docs: Add documentation for the new Pub/Sub tool

* Update pubsub.md

---------

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2026-01-20 15:25:01 -08:00
Kristopher Overholt 01c85c4a13 Cleaning up 3P tool wrapper sample code (#1152) 2026-01-16 13:54:30 -06:00
alan blount e145fd4932 fix(docs): Update bigquery.py creds (#845)
* fix(docs): Update bigquery.py creds 

I required this to make it work
application_default_credentials, _ = google.auth.default()

* Update examples/python/snippets/tools/built-in-tools/bigquery.py

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-01-16 11:50:12 -06:00
Sultan Fariz 613079f70f fix: infinite loop in LoopAgent exit tool example (#1105)
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2026-01-15 17:03:37 -08:00
Didier Durand 159e536aed doc: fixing typos in various files (#1140)
* doc: fixing typos in various files

* Update code-exec-agent-engine.md

---------

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2026-01-15 16:59:02 -08:00
Joe Fernandez 23b740df3b Models for Agents page reorg (#1128)
* fix(deploy): simplifying Agent Engine deployment

* revise and update ae deploy doc structure

* respond to review comments

* docs: break up Models page into multiple pages

- Create page per model and access method
- Push Models topic up to top level TOC entry

* updates based on review feedback

* fix broken links due to page move

* consistency updates and review input updates

* update gemini-2.0-flash to 2.5

* respond to review comments

* docs: update Python API docs to 1.22.0 (#1129)

* build(deps): bump golang.org/x/crypto (#987)

Bumps the go_modules group with 1 update in the /tools/feature-matrix directory: [golang.org/x/crypto](https://github.com/golang/crypto).


Updates `golang.org/x/crypto` from 0.42.0 to 0.45.0
- [Commits](https://github.com/golang/crypto/compare/v0.42.0...v0.45.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.45.0
  dependency-type: indirect
  dependency-group: go_modules
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>

* Update model version from gemini-2.0 to gemini-2.5, since gemini-2.0-flash will be deprecated on Feb 5,2026. (#1132)

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>

* Changes model MODEL_2_0_FLASH to MODEL_2_5_FLASH as gemini-2.0 is deprecating (#1131)

* Update model constants to use GEMINI 2.5

* Corrected model name

---------

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>

* Add Agent Runtime pages for Web Interface and Command Line; reorganize existing Agent Runtime pages (#1130)

* Add pages for adk web, adk run, reorganize runtime pages

* Minor edit

* Updates based on review

* docs: break up Models page into multiple pages

- Create page per model and access method
- Push Models topic up to top level TOC entry

* minor update

* add placeholder file

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Polong Lin <polong-lin@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>
Co-authored-by: llalitkumarrr <llalitkumarrr@google.com>
Co-authored-by: Dinesh Thumma <160909147+DineshThumma9@users.noreply.github.com>
Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-01-13 15:03:29 -08:00
Pang Luo 026def65ee Fix state update (#1104)
Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-01-05 15:37:38 -06:00
Didier Durand 60c8fa89be doc: fixing typos in various files (#1093)
Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-01-05 11:37:02 -06:00
Kristopher Overholt c23a453c82 Fix TS example code snippets (#1071)
* Update example TS code snippets

* Update
2025-12-15 17:58:57 -06:00
Kristopher Overholt 824be91392 Various fixes in TS docs (fixes docs CI build) (#1070)
* Various fixes in TS docs

* Fix link
2025-12-15 16:58:39 -06:00
Shahin Saadati fd7c7a3dca feat: Merge all the typescript code samples and snippets into the main repo. (#1063)
* Deleted redundant files.

* Deleted redundant files.

* Deleted redundant files.

* Deleted redundant files.

* Deleted redundant files.

* Deleted redundant files.

* Delete .gitignore

Deleted redundant files.

* Delete .gitignore

Deleted redundant files.

* Delete .gitignore

* Delete .gitignore

* Delete .gitignore

* Revert changes to .gitignore

* Revert changes to .gitignore

* Revert changes to .gitignore

* Revert changes to .gitignore

* Revert changes to .gitignore

* Revert changes to .gitignore

* Add MCP Tools TS example

* Removed unnecessary changes

* Removed extra slashes

* Added the custom agent sample.

* Corrected an error in the package.json file.

* Updated custom-agent.md

* Made small fixes.

* Add Session TS examples

* Added the typescript code snippets for multi agent.

* added the code sample for loop agent

* Added the code sample for loop agent

* Added the code sample for parallel agent

* Fixed a few issues and bugs

* Added the code sample for sequential agent

* Renamed run back to runAsync

* Updated the capital agent code sample.

* Corrected the snippet

* Renamed run() to runAsync()

* Add Runtime TS examples

* Fixed the snippets after library updates.

* Fixed the sample code after library changes.

* Added final touchups and fixes.

* Updated the code based on recent library changes.

* Updated package.json

* Updated package.json

* Updated package.json

* Updated the code with runAsync and package.json

* Updated the typescript sample.

* Updated after_tool_callback.ts with runAsync

* Updated after_model_callback.ts

* Updated before_model_callback.ts

* Updated before_tool_callback.ts

* Created before_agent_callback.ts

* Update before_agent_callback.ts

Changed the condition

* Update before_model_callback.ts

Changed the condition

* Update after_model_callback.ts

Changed the condition

* Update after_tool_callback.ts

Changed the condition

* Update after_agent_callback.ts

Changed the condition

* Update callback_basic.ts

Changed the condition

* Update storyflow_agent.ts

Changed the condition

* Update sequential_agent_code_development_agent.ts

Changed the condition

* Updated before_agent_callback.ts

* Removed unnecessary comment.

* Updated comment

* Renamed run to runAsync

* Added artifact code snippets.

* Fixed .link-checker-config.json

* Added tsconfig.json

* Update .gitignore with node modules files

* Added 7 typescript code snippets

* Cleaned up and corrected the snippets for plugins

* Update index.md

Undid the changes in artifacts/index.md

* Escaped properly.

* Add Long Running Function Tool TS examples

* Resolved code review feedback

* Fixed the code sample per git comments.

* Fixed the code per git comments.

* Fixed the md file per git comments.

* Fixed the issues per git comments.

* Fixed issues per github comments.

* Fixed the issues per PR comments.

* Fixed issues per PR comments.

* Added a code sample for HITL

* Fixed the indentations in the typescript code

* Used createPartFromBase64 when appropriate.

* Switched to use createUserContent.

* docs: Add JavaScript Quickstart, short unified format

* Added a simulated user delay to the code sample.

* Made some cosmetic improvements

* Added the code snippet with HITL with policy

* Made cosmetic modifications to multi-agents.md

* Added more tutorial for the HITL with policy

* Modularized the main function and added helper functions.

* Resolved code review feedback

* Resolved code review feedback

* Resolved code review feedback

* Fixed minor things in the typescript code per PR comments.

* Fixed the import for Event and used createEventActions.

* Simplified functionResponse code.

* Corrected the Event import and used createEventActions.

* Updated ADK versions in package.json.

* Final review of all changes & Add Safety TS example

* Make tsconfig.json files consistent

* Generated the API Reference for typescript

* Resolved code review feedback

* feat: Add Typescript API reference to docs

This commit adds the generated TypeDoc documentation for the Typescript ADK to the documentation site.

It also updates the main API reference page to include a link to the new Typescript API reference.

* docs: update TypeScript quickstart

* docs: Add version tags for Build Agents topics

- add version tags
- move TS content to second position (after Python)

* docs: Add MCP Toolbox for databases TS SDK Documentation

* Update mcp-toolbox-for-databases.md

* use typescript code block

* minor changes

* Update mcp-toolbox-for-databases.md

* Auto generated the typescript API reference.

* Added the TS code snippets for context.

* Fixed TS code snippets for context.

* Modified the sample based on the comment.

* docs: adding TypeScript language tags (2 of 3)

- Update all Run Agents section topics
- change all TS tags to v0.2.0 per eng agreement

* docs: Add TypeScript language support tags, Components (3 of 3)

- add TS language support tags
- re-order TS examples to be second
- minor fixes: remove trailing spaces

* Added callback samples for typescript to the markdown files.

* Updated adk version in quickstart

* Updated google/adk version for typescript.

---------

Co-authored-by: manchan <manchan@google.com>
Co-authored-by: Mandy Chan <75594070+slothwriter@users.noreply.github.com>
Co-authored-by: Joe Fernandez <joefernandez@google.com>
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
Co-authored-by: Twisha Bansal <58483338+twishabansal@users.noreply.github.com>
2025-12-15 12:53:24 -08:00
Ivan Cheung 4f74c1c091 PR and Regression testing for Go snippets (#973)
* Added pr checks and regression test code

* Added github workflows and go.mod/go.sum

* Added comments to files_to_test.txt

* Moved check_go_snippets.sh

* Fixed issues with workflows

* Removed unneeded workflow

* Revert bad change

* Added runner tests

* Added README

* refactor(go-snippets): Unify Go module structure and dynamically update ADK dependency

Consolidate all Go snippet module dependencies to a single  file located at . This simplifies dependency management and ensures consistent versions across all Go examples.

Update Usage: tools/go-snippets/runner.sh <build|run> [file1 file2 ...] to dynamically fetch the latest  module () before running any builds or tests. This ensures that PR and regression checks always validate against the most recent ADK release, preventing outdated dependency issues.

Address breaking changes in  by removing the  initialization from , which is no longer available.

Cleaned up extraneous  and  files from subdirectories within , as well as the unused  file.

* feat(go-snippets): Reinforce strict `files_to_test.txt` adherence

Reverts previous attempts to infer Go snippet dependencies and clarifies the strict testing model.

- **`runner.sh`**: Restores `find_snippet_line` to rely on exact substring matching of changed files within `files_to_test.txt` lines. Adds `go get` exit code check.
- **`tools/go-snippets/README.md`**: Adds "Understanding the Test Runner" section detailing `files_to_test.txt` adherence, multi-file `package main` requirements, and `_test.go` file handling.
- **`runner_test.sh`**: Adds `test_find_snippet_line_multi_file_match` to verify correct behavior for multi-file snippets listed on a single line.

---------

Co-authored-by: ivanmkc <ivanmkc@google.com>
2025-12-03 14:32:21 -05:00
Dmitry Pasiukevich d506137bf2 Update adk-go docs with launcher changes (#967) 2025-11-21 21:05:04 +00:00
Andrew Kondratev 50397988fc Update Dockerfile with entrypoint which actually works (#974)
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-11-17 11:05:07 -08:00
Jaana Dogan 93aff1731f Fix the broken Go builds (#948) 2025-11-13 20:23:58 -08:00
uedayo 75e3412b86 Update express-mode-weather-agent.ipynb (#941)
Add missing code section for "Create Vertex AI Memory through ADK to use locally

Co-authored-by: Kristopher Overholt <koverholt@google.com>
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-11-12 10:15:36 -08:00
Adrian Altermatt bf12de8ea2 Fix import statement for deepcopy (#944)
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-11-12 09:10:50 -08:00