Commit Graph

85 Commits

Author SHA1 Message Date
Toni Klopfenstein 289d1aa560 Merge branch 'tk-mcp-tools' of github.com:google/adk-docs into tk-mcp-tools 2025-11-07 20:18:47 +00:00
Toni Klopfenstein e0b5518886 moving go mcp_tool snippets to separate examples 2025-11-07 20:18:11 +00:00
Ivan Cheung d546f4a336 Changed prompt to roll and prime (#915)
* Changed prompt to roll and prime

* Fixed README url

---------

Co-authored-by: ivanmkc <ivanmkc@google.com>
2025-11-07 16:55:09 +00:00
Polong Lin 67b7c1579d fix(docs): update wording from agent-to-agent to Agent2Agent (#916) 2025-11-07 08:46:43 -08:00
Anthony Z 411b057cc8 feat(docs): Add vertex express mode documentation for Agent Engine deploy (#883)
* Update express-mode.md

* Update express-mode.md

* Update agent-engine.md

* Update agent-engine.md

* Update agent-engine.md

* Delete examples/python/notebooks/express-mode-weather-agent.ipynb

* Add files via upload

* Rename express_mode_weather_agent_(1).ipynb to express_mode_weather_agent.ipynb

* Rename express_mode_weather_agent.ipynb to express-mode-weather-agent.ipynb

* Update express-mode-weather-agent.ipynb

* Update agent-engine.md

---------

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-11-07 08:28:00 -08:00
Ivan Cheung 74ac303a69 Added nil check for loop agent (#908)
Co-authored-by: ivanmkc <ivanmkc@google.com>
2025-11-07 15:49:12 +00:00
Ivan Cheung 555deedd46 Add missing licenses (#887)
Co-authored-by: ivanmkc <ivanmkc@google.com>
2025-11-06 14:42:20 -05:00
Ivan Cheung 8834593806 [ADK Go] Merging all Go docs from the private repo (#885)
* docs: Add Go language quickstart

* updates based on review comments

* fix tab stops

* update based on review comments

* sync with main

* update to tested version

* Added google_search snippet

* Fix: Address Go style guide issues in google_search.go

* Migrated to new API

* Fixed tool info in md file

* Added partial check

* Added function-tools sample

* Migrated to new API

* Added partial check

* Ran linter

* feat: add go fmt check

* Run go fmt only on changed files

* Added google_search snippet

* Fix: Address Go style guide issues in google_search.go

* Migrated to new API

* Added partial check

* Added function-tools sample

* Migrated to new API

* Added partial check

* Ran linter

* feat: add go fmt check

* Run go fmt only on changed files

* Feat: Add Golang example for LLM agents

* Added schema agent

* Added session support

* Migrated to new API

* Added back OutputKey

* Added missing snippets

* Moved snipped to its own package

* Minor cleanup

* Reverted llm-agents.md

* Added back correct changes to llm-agents.md

* Updated to newest API

* Ran linter

* WIP

* WIP: Added the rest of the agents

* Added sequential agent

* Migrated agents to new API

* Fixed snippet tags

* Updated parallel and sequential with OutputKey

* Updated loop agent

* Cleanup

* Fixed and ran linter

* Removed comment

* Ran linter

* Added custom agent snippets

* Migrated to new API

* Fixed incorrect info about channels since run returns an Iterator, not Channel

* Cleanup and renaming

* Ran linter

* Fixed md

* Added multi-agent docs

* Updated to use AgentTool

* Split snippets

* Added missing file

* Ran linter and fixed API

* Added Models snippets

* Migrated to new API

* Embedded imports

* Ran linter

* Added long running tool

* Ran linter and fixed API

* Switched to two-turn style

* Ran linter

* Added callback snippets

* Added back imports

* Added types of callbacks snippets

* feat(go): align callback snippets with other languages

* Ran linter and updated API

* Added tool callbacks

* Added artifact snippets

* Use story.pdf instead of random bytes

* Fixed issue with artifact loading

* Cleanup unneeded fixes

* Added back inadvertently removed GCS section

* Addressed PR comments

* Ran linter

* feat: Added context snippets

* Fixed callback signature

* Fixed additional callbacks

* Added remaining snippets

* Added conceptual runner example

* Removed duplicate code

* Clean up tags and imports

* Updated API

* Twaked text

* Ran linter

* Fixed broken API issues

* Updated to latest Go ADK API

* Added func param info

* Interleaved Py and Go

* Revert mistakes

* Removed extra newline

* Added example cloud run code and update md with Go (#41)

* Added example cloud run code and update md with Go

* Added a2a_agent_url and fixed future tense

* Moved Go before Java

---------

Co-authored-by: ivanmkc <ivanmkc@google.com>

* adding go snippets to runconfig docs

* realigning runconfig go examples with current state of adk-go.

* adding language support tags to individual runtime config fields

* removing unsupported supportcfc go examples

* removing unsupported streamingmode.bidi go snippets

* Added AgentTool examples (#31)

* Added AgentTool example

* Ran formatter

---------

Co-authored-by: ivanmkc <ivanmkc@google.com>

* adding initial go sessions.sessions snippets

* updating go session docs + session examples

* update go session snippets

* updating DatabaseSessionService language support tag

* cleaning up go vertex ai comments

* removing go.mod for session_management_example

* docs: add language support tags for Go

* initial go runtime sample updates

* fixing runtime go snippet formatting

* formatting updates to runtime go snippets

* updating runtime go examples to streamline to newer go features

* adding go snippets for events

* updating go snippets for events

* adding artifactdelta snippet for go

* minor java fixes, cleaning up go event.content

* Custom tools: Merging again  (#44)

* Added missing custom-tools snippets

* Split user_preference runner code

* Split more files

* Tweaks

* Split session into 1 and 2 and added artifact saving

* Fixed conflict

---------

Co-authored-by: ivanmkc <ivanmkc@google.com>

* Fixed tab issue with cloud-run md (#45)

Co-authored-by: ivanmkc <ivanmkc@google.com>

* adding initial go snippets for memory services

* updating go memory sample, adding python formatting in docs to clarify current support.

* removing go replace for memory example

* removing go.sum from memory_example

* fixing go formatting for memory example

* fixing go memory snippets to streamline examples in docs

* removing unnecessary go.mod for memory_example.go and snippet cleanup

* adding go session state snippets."

* adding additional go state examples for state injection

* fixing go formatting

* fixing language ordering on session/state.md; removing unnecessary go.mod files

* reworking error functions in go session state samples

* fixing go formatting on session state samples

* initial go snippets for safety tools

* fixing go snippet formatting in safety/index.md

* temp storing safety example

* cleaning up go snippets in safety docs; deferring safety go full example

* cleaning up go safety snippets

* Added link to Go API docs (#47)

Co-authored-by: ivanmkc <ivanmkc@google.com>

* Added a2a_basic sample (#46)

* Added a2a_basic sample

* Removed dummy LLMs

* Added md

Fix inaccuracies in md

Ran formatter

* Cleaned up index

---------

Co-authored-by: ivanmkc <ivanmkc@google.com>

* Reverted to proper ToC and added missing links (#48)

Co-authored-by: ivanmkc <ivanmkc@google.com>

* Added missing get-started/go.md (#50)

Co-authored-by: ivanmkc <ivanmkc@google.com>

* Added missing JSON tags for Go structs (#51)

* Added json tags

* Added jsonschema and json tags

---------

Co-authored-by: ivanmkc <ivanmkc@google.com>

* Renamed Golang to Go (#52)

Co-authored-by: ivanmkc <ivanmkc@google.com>

---------

Co-authored-by: Joe Fernandez <joefernandez@google.com>
Co-authored-by: ivanmkc <ivanmkc@google.com>
Co-authored-by: Toni Klopfenstein <tklopfenstein@google.com>
2025-11-06 14:13:13 -05:00
Kristopher Overholt 4cb3a891a1 feat: Add sections and groupings to sidebar navigation menu (#791)
* Add navigation sections to docs

* Move two pages

* Move more sections

* Update nav

* Fix whitespace, newlines

* Fix section headings

* Fix top level headings

* Move Technical Overview in nav

* Change Testing page to API Server page

* Reorder sub-pages in Components section

* Add Home as top level nav; remove redundant site title

* Update links to API server docs page

* Formatting

* Formatting
2025-11-03 12:48:32 -06:00
Sergei Lilichenko b06d473f5e Fix the code sample of using BigQuery with the application default credentails (#825)
* Fix the code sample of using BigQuery with the application default credentails

* Update bigquery.py

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-10-31 09:32:04 -07:00
Kaz Sato 278bd2fbed fix: updated the article and code to adk 1.17.0 (#834)
* fix: updated the article and code to adk 1.17.0

fix: updated the article and code to adk 1.17.0

* fix: removing the outdated code from the index

fix: removing the outdated code from the index

* fix: removing 404 link

fix: removing 404 link
2025-10-31 12:44:51 +09:00
An Nguyen 8b4609cace Add Bigtable documentation (#725) 2025-09-29 09:04:08 -07:00
tianbowen-google 935b95e4b8 fix: update spanner sample comments (#711) 2025-09-23 17:58:07 -07:00
tianbowen-google c5db8cd97c docs: document spanner built-in toolset (#710) 2025-09-23 15:13:22 -07:00
Huan Chen 858ab0b79b docs: add ask_data_insights tool to bigquery document (#674)
* docs: add ask_data_insights tool to bigquery document.

* remove extra line

* add example question for ask_data_insights
2025-09-09 15:49:25 -07:00
tenghuil 7322cf06f5 fix(docs): Add rag engne to adk built in tool doc (#423)
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-09-04 12:54:15 -07:00
Fran e45c8ffeba Fix capital_agent.py example (#528)
* Fix capital_agent.py

* moved comment

* fix: moved comment capital_agent.py

---------

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-08-27 16:59:01 -07:00
anifort 315ee79307 Update human_in_the_loop.py (#642)
the removed line is not needed -events is never used and the 2 lines below is creating events_async

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-08-27 13:15:35 -07:00
sfkrieger da6d18fa8c chore: Updated code sample to genericize region in datastore ID (#622)
* Updated code sample to genericize region in datastore ID

* Added licensing information.
2025-08-19 13:56:32 -07:00
Michael Vorburger c7bb5f1405 fix: https://github.com/google/adk-java/issues/152 (#381)
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-08-19 10:00:32 -07:00
nikkie ebbf121fcd fix: Remove redundant trailing quote (#623)
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-08-19 09:40:46 -07:00
Jasmeet Bhatia 4b3ea82bdd fix: correct syntax error and typo in Python examples (#625) 2025-08-19 09:39:30 -07:00
Matt Landers da5ce68cbe fix: code executor examples for python (#377)
* fix: code executor examples for python

* fix: updated snippet for code executor

---------

Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-08-15 11:28:52 -07:00
Mandy Chan 6afd0d37ba fix: Update agent.py (#611)
Fixes #176 

Use AgentTool for subagents
2025-08-14 18:49:53 -07:00
Michael Vorburger 7f51ec6f7e fix: Use final static BaseAgent ROOT_AGENT field. (#350)
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-08-14 11:38:12 -07:00
Terrence Ryan 43a58a2a05 fix: Prevent overwriting of function response (#607)
In the human-in-the-loop example, the long_running_function_response
variable could be overwritten with `None` by a subsequent event that
did not contain a function response. This would cause the logic that
depends on the response to fail.

Fixes #375

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
2025-08-14 11:01:19 -07:00
Mandy Chan 9bd2d1bd29 fix: add code example for skip_summarization (#595)
fix issue https://github.com/google/adk-docs/issues/531
2025-08-13 16:04:04 -04:00
Kaz Sato 98d2a5828b fix: updated adk version to 1.10.0 (#589)
* fix: updated adk version to 1.10.0

fix: updated adk version to 1.10.0, and confirmed the demos work properly.

* fix: add session resumption

fix: add session resumption

* fix: adding session resumption to the docs.

fix: adding session resumption to the docs.
2025-08-12 10:23:42 -07:00
ASHISH JOHNSON df4874441a fix: await not correctly applied to example code (#437)
* fix: applied `await` on the `session_service.create_session()` call

* added license to the code

---------

Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>
2025-08-09 14:35:28 -07:00
Sampath Kumar eb4405365e feat: add Google Analytics config. (#556)
* feat: add Google Analytics config.

Secret Key is added to Github Repo > Settings > Actions

* feat: fix broken link
2025-08-06 22:47:31 +02:00
Kaz Sato 7bafd1eb2e fix: upgraded to adk 1.9.0 and removed unnecessary infinite loop (#554)
fix: upgraded to adk 1.9.0 and removed unnecessary infinite loop
2025-08-04 15:26:14 +09:00
shruti-mantri 66e6c937d3 fix: llm-agents capital_agent.py example failing due to missing awaits (#550)
* fix: llm-agents capital_agent.py example failing due to missing awaits

* add license header to the code
2025-08-01 11:47:25 +05:30
tucosh 32b0be688b Fix error message in MultiToolAgent.java example (#441)
The @Schema parameter annotation is missing the parameter name, leading to the following error message:

[agents.multitool.MultiToolAgent.main()] ERROR com.google.adk.tools.FunctionTool -- Functions used in tools must have their parameters annotated with @Schema or at least the code must be compiled with the -parameters flag as a fallback. Your function tool will likely not work as expected and exit at runtime.

Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>
2025-07-15 12:06:08 -04:00
Sita Lakshmi Sangameswaran b40accd5cb fix(state): update state key references in instructions (#493)
* fix: update state key references

* update docs to include info on state injection in instructions

* update java snippet

* add docs on InstructionProvider

* add tooltip on direct state modification

---------

Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
2025-07-11 09:42:18 -04:00
Shobhit Singh ae18ef6d13 docs: fix the usage of BuiltInCodeExecutor in code snippets (#503)
* docs: fix the usage of `BuiltInCodeExecutor` in code snippets

* revert stray spaces

---------

Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
2025-07-11 18:07:07 +05:30
Anthony Z 8400336372 feat: Update express mode code sample (#494)
* Update quickstart.md

* Create express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update mkdocs.yml

* Update mkdocs.yml

* Update session.md

* Update mkdocs.yml

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update quickstart.md

* Update express-mode.md

* Add files via upload

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Delete examples/python/notebooks/express-mode-weather-agent.ipynb

* Add files via upload

* Delete examples/python/notebooks/express-mode-weather-agent.ipynb

* Add files via upload

* Update express-mode-weather-agent.ipynb

* Update quickstart.md

* Update express-mode.md

* Update express-mode.md

* Update mkdocs.yml

* Delete examples/python/notebooks/express-mode-weather-agent.ipynb

* Add files via upload

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update mkdocs.yml

* Update express-mode.md

---------

Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
2025-07-11 14:51:52 +05:30
Anthony Z 19a026393e feat(docs): Add vertex express mode documentation for Agent Engine (#439)
* Update quickstart.md

* Create express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update mkdocs.yml

* Update mkdocs.yml

* Update session.md

* Update mkdocs.yml

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Update quickstart.md

* Update express-mode.md

* Add files via upload

* Update express-mode.md

* Update express-mode.md

* Update express-mode.md

* Delete examples/python/notebooks/express-mode-weather-agent.ipynb

* Add files via upload

* Delete examples/python/notebooks/express-mode-weather-agent.ipynb

* Add files via upload

* Update express-mode-weather-agent.ipynb

* Update quickstart.md

* Update express-mode.md

* Update express-mode.md

* Update mkdocs.yml

---------

Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
2025-07-08 17:58:29 +05:30
Gururaj Deshpande ff454ac1c9 fix: change call_agent to call_agent_async (#450)
* fix: change call_agent to call_agent_async

* added await in storyflow where missing

* updated callbacks and storyflow with await and user comment

* fixed more

* added licencse header

---------

Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
Co-authored-by: Lavi Nigam <lavinigam@google.com>
2025-06-28 00:10:12 +05:30
Kaz Sato ac0a572630 fix: add support for non-Vertex AI environment (#453)
- fix: add support for non-Vertex AI environment
- updated the model to gemini 2.5 flash
2025-06-27 20:24:22 +05:30
Shobhit Singh 36911713e9 docs: document built-in BigQuery tools (#449)
* Mention BigQuery tools among built-in tools

* Create bigquery.py

* Update bigquery snippet with working code
2025-06-25 13:06:51 -07:00
Kaz Sato a687c301b6 fix: update the notebook for 1.4.2 (#435)
fix: update the notebook for 1.4.2

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-06-23 11:18:18 -05:00
Kristopher Overholt a167be5e97 feat: Testing the newly added link checker (#426)
* Testing the newly added link checker

* Switch actions

* Add detailed config file and URL pattern to ignore

* Additional patterns

* Set projectBaseUrl

* Try default

* More CI tweaks

* Tweak config again

* Edit

* Minimal

* Add status codes

* Fix some links

* Simple config

* Fix more links

* Ignore 403 errors

* Fix Markdown links
2025-06-17 23:23:25 -05:00
George Li e6ce373edc docs: adk tutorial readme link fix (#387)
Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-06-10 05:50:03 -05:00
Kaz Sato 290238b0bb fix: upgraded to 1.2.1, and added a troubleshooting tip (#392)
fix: upgraded to 1.2.1, and added a troubleshooting tip
2025-06-10 15:37:30 +09:00
Lavi Nigam 33b60275d3 fix(tools): Correct async handling in LRO and HTIL sessions (#374)
The LRO (Long-Running Operation) and HTIL (Human-in-the-Loop) tools were failing to execute properly due to an unhandled promise.

The `session_service.create_session` method is asynchronous but was not being awaited, causing race conditions. This change adds the required `await` to ensure proper execution flow.

Additionally, the related documentation has been updated to reflect the corrected code.
2025-06-06 18:21:10 +09:00
Kaz Sato 31d79515f9 fix: added audio output buffering (#371)
fix: added audio output buffering. This reduces CPU usage at the browser significantly.

Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
2025-06-06 11:27:44 +05:30
Yunus Durmus 5f1461834e fix: stop the audio play whenever an interrupt message arrives (#362) 2025-06-02 18:12:39 +09:00
hsuyuming baaa3394c4 fix: add missing asyncio package (#191)
* fix: add missing asyncio package

* move import statement to line 222

---------

Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
2025-05-30 14:10:21 +05:30
Yagnesh M. Bhadiyadra 66e92420c9 fix (docs): Add import statements for loop agents example. (#264)
The loop agents example snippet did not have imports, which could break the code when copied directly and executed.

Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
2025-05-30 12:25:29 +05:30
dependabot[bot] e7e3f347d6 chore(deps): bump org.postgresql:postgresql (#278)
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.0 to 42.6.1
- [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.0...REL42.6.1)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-version: 42.6.1
  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>
Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
2025-05-30 12:21:41 +05:30