Commit Graph

226 Commits

Author SHA1 Message Date
Kaz Sato 0bfb2c3cc9 fix: Fixed the google search tool name and model name (#226)
* fix: Fixed the google search tool name and model name

- With 0.4.0, the tool name has changed to google_search
- As of today, gemini-2.0-flash-exp is the workable model with Streaming for ADK that is soon to be replaced with gemini-2.0-flash-live-001.

* Formatting

---------

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
Co-authored-by: Kristopher Overholt <koverholt@google.com>
2025-05-07 08:22:08 -05:00
Kavin Kumar B 5e6fc82b76 fix: google_search import issue (#219) 2025-05-07 08:16:57 -05:00
Keith Rozario 56a6b79443 fix: eval_name argument name (#224)
* fixed eval variable name

* fix: eval_name argument name

---------

Co-authored-by: Keith Rozario <krozario@google.com>
Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-05-06 09:22:25 -05:00
Jack Wotherspoon 6cc5de0099 chore: update google-cloud-tools.md (#218)
Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-05-06 09:17:29 -05:00
rdaros b940d4b4a9 docs: update built-in-tools.md to clarify tool limitations (#217)
* Update built-in-tools.md

Improvement to the Limitation section of the built-in tools documentation to make it more clear.

Discussed with @hangfei in the thread below:

https://github.com/google/adk-python/issues/514#issuecomment-2848385620

* docs: update built-in-tools.md to clarify tool limitations

Improvement to the Limitation section of the built-in tools documentation to make it more clear.

Discussed with @hangfei in the thread below:

https://github.com/google/adk-python/issues/514#issuecomment-2848300424

---------

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-05-06 09:15:08 -05:00
Hangfei Lin 64daaf89b1 doc: add streaming tools guide. (#215)
* doc: Update index.md

add streaming tool guide

* docs: Create streaming-tools.md

* doc: Update streaming-tools.md

---------

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-05-06 09:13:16 -05:00
Jinyong Shin 8ebdcf4876 feat: Docs improvement: FunctionTool (#212)
* fix: improvement docs according to issue #210

* fix: remove duplicated(?) comments

---------

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-05-06 09:10:42 -05:00
Mofi Rahman 532d49f4d2 docs: clean up gke docs (#207)
Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-05-06 09:07:17 -05:00
Casey West 3563e0523a chore(config): ignore personal VS Code settings (#222) 2025-05-06 14:05:43 +00:00
Casey West 73722b5cf3 docs(agents): fix small wording issue on parallel agents (#221) 2025-05-06 09:04:19 -05:00
Mark fc537e38b1 Update quickstart-streaming.md (#209)
Fix error Error in event_generator: cannot import name 'google_search' from 'google.adk.tools'
2025-05-02 17:40:41 -05:00
Kaz Sato 559ef00f49 Add Romani's MCP Toolbox blogs and codelab (#205)
Add Romani's MCP Toolbox blogs and codelab
2025-04-30 23:32:31 -05:00
Andrey Shakirov 63ede24a05 docs: Added FastMCP example (#202)
* Added FastMCP example

* FastMCP example

* updated GCP project id
2025-05-01 05:15:32 +09:00
Sita Lakshmi Sangameswaran a5cf0b8568 fix(events): lint fix in heading (#201) 2025-04-30 14:59:57 -05:00
Kristopher Overholt b6298ed801 fix: Update links to screenshots on MCP tools page (#199) 2025-04-30 08:46:15 -05:00
Kaz Sato ef4d230e17 feat: Add MCP Toolbox for Databases to the MCP section (#198)
* Add MCP Toolbox for Databases to the MCP section

* Formatting

---------

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-30 07:34:05 -05:00
Kavin Kumar B beec37aefc fix: missing tool context import (#196)
* fixed the missing import

* fix: missing tool context import

---------

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-30 02:00:43 -05:00
Kaz Sato 875df6d9ee feat: Add Streaming section (#197)
* Add Streaming sectiion

* Updates

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2025-04-30 01:49:09 -05:00
Kaz Sato 374c02d004 feat: add MCP section (#195)
* Adding new MCP section

* fixed file path

---------

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-30 00:48:17 -05:00
Matt Landers 3794147f77 fix: Instruction Templating Documentation (#178)
* Add State to LLM Instructions

* Update llm-agents.md

* fix: Added documentation for instruction templating

* Formatting fixes

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-30 00:32:13 -05:00
hsuyuming 158013b64b fix: the ParallelAgent execute run_async instead of run() base on this line [1]. (#190)
[1]https://github.com/google/adk-python/blob/main/src/google/adk/agents/parallel_agent.py#L94

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-30 00:13:26 -05:00
hsuyuming d3bd474488 docs: ancestor agent have to associate with a model. (#194)
Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-30 00:10:33 -05:00
Kavin Kumar B 96f42d2432 docs: Runconfig documentation (#186)
* docs: Runconfig documentation

* Updates

* Updates

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2025-04-30 00:03:14 -05:00
Yeesian Ng 4a388b81b2 docs: Add details on deploying and managing agents in agent engine (#193) 2025-04-29 15:50:58 -05:00
alan blount a28eb81f05 Update google-cloud-tools.md (#188)
Change formatting to correctly style the shell command, and added variable placeholder.
2025-04-28 15:22:58 -05:00
seanzhou1023 dabaf948d4 fix: update authentication doc to correct some error and keep it consistent with latest codes (#184)
* fix: update authentication doc to correct some error and keep it consistent with latest codes

* Update docs/tools/authentication.md

---------

Co-authored-by: Sean Zhou <seanzhougoogle@google.com>
Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>
2025-04-28 12:11:33 -04:00
Che af2fe64ebd Feat: Update docs for using MCP Tools with "adk-web" (#141)
* Update docs for using MCP Tools with "adk-web"

* Feat: Add examples with multiple MCP Servers in the same agent
2025-04-28 12:05:56 -04:00
nikkie 46b774fd36 fix: typo in youtube-shorts-assistant scriptwriter instruction (#175)
Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>
2025-04-25 16:00:04 -04:00
Jainish-S 31754f8ade Fix: Added pos args where required (#124)
Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>
2025-04-25 15:58:27 -04:00
Lavi Nigam 79546252bf feat: Improve workflow agent examples (Loop, Parallel, Sequence) (#157)
* feat: Improve workflow agent examples (Loop, Parallel, Sequence)

This commit enhances the examples for LoopAgent, ParallelAgent, and SequenceAgent to provide clearer usage patterns, demonstrate key features, and improve developer experience.

Agent-Specific Fixes & Enhancements:

LoopAgent:

Adds an example demonstrating CheckCondition usage, showing both max_iterations and custom condition-based termination.
Fixes google/adk-docs#67, google/adk-docs#148, google/adk-python#315

ParallelAgent:

Adds an example showing how to merge outputs from parallel branches using a subsequent SequentialAgent and agent states.
Demonstrates state/output control after parallel execution.
Fixes google/adk-docs#142

SequenceAgent:

Clarifies the example to show explicit use of agent states within instructions for passing outputs between sequential steps.
Fixes google/adk-docs#150

General Example Improvements (Applied across all three):

Updated examples to use InMemoryRunner.
Adopted new, clearer instruction prompt templates.
Included runner.run_async calls in standalone .py files to demonstrate programmatic execution outside adk web.
Enhanced InMemoryRunner print output for better visibility of individual agent outputs during execution.
Added commented-out asyncio.run() calls in .py files for environments requiring explicit async loop management.
Included multiple example queries in .py files for testing.
Added "Part of agent.py -->" comment for easy copy-pasting into agent.py for use with adk web.
Added copyright and license headers for each file.

* fix: instructions for LoopAgent is cleaned up and removed backticks. Changed the init to include initial state in the ---8<

* feat(LoopAgent): add exit_loop tool for controlled exit

Introduces the `exit_loop` tool, enabling the agent to programmatically trigger an exit from its processing loop based on internal logic or tool usage.

fix(LoopAgent): correct state f-string formatting

Resolves runtime errors caused by incorrect f-string formatting when state variables were used within the agent's execution flow.

chore: Temporarily comment out session/runner setup

Comments out initialization code related to session, runner, and agent interaction for debugging/refactoring purposes. This section should be revisited.
2025-04-25 17:46:02 +05:30
Wietse Venema 77059a60d4 docs: Clarify ToolContext injection in docstrings (#161)
Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-24 20:11:14 -05:00
Kurtis Van Gent 962df91e5f chore: Update diagram for MCP Toolbox (#164)
* Update diagram for Toolbox

* chore: contextual commit

---------

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-24 20:09:39 -05:00
hsuyuming 574668c452 fix: add missing .txt within "Install dependencies" step (#168)
Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-24 20:08:16 -05:00
Yeesian Ng c51c5b38e8 chore: Update deployment instructions for agent engine (#165)
* Update deployment instructions for agent engine

* docs: Update deployment instructions for agent engine
2025-04-24 20:07:20 -05:00
Alok Pattani d4452bf1ef Update small temp error in sample agent.py (#162) 2025-04-24 15:42:13 -05:00
Kristopher Overholt 3ce9085699 Update README 2025-04-23 19:01:23 -05:00
Kristopher Overholt 109e556bf9 fix: Update explanatory text in docs 2025-04-23 18:59:43 -05:00
Kristopher Overholt a1b4ef85bf Fix redirects and links for Safety and Security page (#153) 2025-04-23 14:11:00 -05:00
Mirko Montanari 0f773b6c53 fix: Rename responsible agents guide into a safety and security page. (#151)
The title of the section of "responsible agent" isn't appropriate for the content: this is a page about safey and security.
2025-04-23 13:23:38 -05:00
Kristopher Overholt af9d0a8a15 Fix redirect for old tutorial page (#147) 2025-04-22 23:34:46 -05:00
Lavi Nigam a4057576ea fix: tutorial section overhaul and bug fixes (#143)
* fix: tutorial section overhaul and bug fixes
- Tutorial section is moved out of getting started and is a seperate section
- Fixed a sentence in getting-started page that still showed “google search”
- Given we will have more tutorials as part of docs, now we have sub-sections with the tutorial name
- For weather agent team - fixed issues pointed out in #118 #135
    - It now includes code for asynio in the notebook
    - It also now has .py file to run it through adk web
    - Step 2 is now optional and not connected to other steps. So user can follow other steps if they choose to
    - There is disclaimer at the top - for different method to run the code
    - The text on the page is now synced with notebook
    - Collab and social link are updated with new changes in folder.

* added a redirect in the redirect_maps

* adding license headers in the code for tutorial for .py files
2025-04-23 09:43:32 +05:30
Wietse Venema 8b7c333f05 fix: remove reference to database package (#146)
Remove `pip install google-adk[database]`

sqlalchemy is already installed and this package does not exist.
2025-04-22 21:08:18 -05:00
Bhuvan Sawant 65b8cad3b3 fix: CSS Button issue on resizing window (google#96) (#130)
Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-22 13:24:24 -05:00
Polong Lin 42af56bd1f feat: Add note on policy when using the built-in Google Search tool (#144)
* add link to A2A

* add A2A link w/o hyphens

* fixes: google/adk-python#221

* fix: add note to emphasize that only Gemini 2 is compatible w google_search tool
2025-04-22 13:03:46 -05:00
Sita Lakshmi Sangameswaran 5ce661de6c samples: add a sample getting started agent (#108)
* samples: add a sample getting started agent

* format acc to review comments

* add copyright headers

---------

Co-authored-by: Sampath Kumar <sam1990kumar@gmail.com>
2025-04-22 10:40:52 -04:00
Polong Lin ca0c6e56a4 feat: add A2A link on main page (#140)
* add link to A2A

* add A2A link w/o hyphens
2025-04-21 11:34:40 -05:00
Lavi Nigam 7e0f29a9e8 parallel-agent-code-fix (#138) 2025-04-21 10:45:57 +05:30
Harsh Modi c8145cd845 fix: Quickstart (streaming): Correct the agent name in drop-down menu (#136) 2025-04-21 10:58:35 +09:00
Lavi Nigam d213440d30 callback-docs-fix (#132) 2025-04-20 08:40:21 +05:30
Priyanshu Vishwakarma a33e8d6287 fix: variable name in custom agents documentation (#125)
Update the variable name in `docs/agents/custom-agents.md`.

* Change the variable name to `GEMINI_2_FLASH` on line 114 to maintain consistency with example's code

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-18 23:25:39 -05:00