79 Commits

Author SHA1 Message Date
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
Kaz Sato 3491df6790 fix: suppress pydantic warnings (#338)
fix: suppress pydantic warnings

Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
2025-05-30 11:57:58 +05:30
Lavi Nigam 5a690cf74a Pjchender/main - added license header (#339)
* doc: update openapi tool for v1.0.0

* added license header

---------

Co-authored-by: pjchender <pjchender@gmail.com>
2025-05-30 11:55:13 +05:30
Aaron Chen 79c0f65f5f doc: update openapi tool for v1.0.0 (#311)
Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
2025-05-30 11:54:27 +05:30
Keith Rozario 4ff725f845 fix: after tool callback example (#289)
* fix: after tool callback example

* added license header and update code with async functions

---------

Co-authored-by: Keith Rozario <krozario@google.com>
Co-authored-by: Lavi Nigam <98014943+lavinigam-gcp@users.noreply.github.com>
Co-authored-by: Lavi Nigam <lavinigam@google.com>
2025-05-30 11:33:18 +05:30
Kaz Sato 1131778ade fix: Added SSL CERT setting and code snippets (#336)
* fix: Added SSL CERT setting and code snippets

fix: Added SSL CERT setting and code snippets

* fix: update the model name to -exp

fix: update the model name to -exp

* fix: changed model names on the troubleshooting tips

fix: changed model names on the troubleshooting tips
2025-05-30 08:13:12 +05:30
Kaz Sato c638834aeb fix: add SSE Streaming sample (#332)
add SSE Streaming sample
2025-05-29 17:44:46 +09:00
Kaz Sato b721bceef3 fix: to support adk 1.0.0 (#324)
to support adk 1.0.0
2025-05-28 18:07:30 +09:00
Megan O'Keefe 0887973bed feat: Initializes Java documentation (#277) 2025-05-20 12:10:27 -04:00
Zike Yang 51dfbb6f57 fix: fix hunman_in_the_loop example (#240)
Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-05-12 10:21:11 -05:00
Kaz Sato 6d8d499479 feat: add audio Streaming sample (#244)
* feat: add audio Streaming sample

add audio Streaming sample

* fix: added license headers

added license headers
2025-05-12 10:09:30 -05:00
seanzhou1023 e62f7565d2 fix: fix long running tool docs (#229)
Co-authored-by: Sean Zhou <seanzhougoogle@google.com>
2025-05-07 13:37:03 -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
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
Alok Pattani d4452bf1ef Update small temp error in sample agent.py (#162) 2025-04-24 15:42:13 -05:00
Lavi Nigam 7e0f29a9e8 parallel-agent-code-fix (#138) 2025-04-21 10:45:57 +05:30
Lavi Nigam d213440d30 callback-docs-fix (#132) 2025-04-20 08:40:21 +05:30
Sita Lakshmi Sangameswaran 89f02777ff fix(loop-agent): update max_iterations param (#106) 2025-04-16 20:01:05 -05:00
Rebenkov Aleksey 496fcf3dec Fixed instruction for root agent to avoid summarization before passing text to summary agent (#98)
Co-authored-by: Rebenkov Aleksey <aleksey.rebenkov@hindsiteinc.com>
2025-04-16 03:04:26 -05:00
adars124 0a66987547 docs: fix agent tool example doc (#93)
Add  instead of  in the Runner
2025-04-15 22:02:27 -05:00
Daniel Dekhtyar bcf6077d68 Use third-person (this agent) instead of second-person (you) in the agent description (#61)
Changed the agent's description from second-person (you) to third-person (this agent).

I also fixed a couple of grammatical errors in the agent's instructions.
2025-04-13 12:15:19 +01:00
Polong Lin 2ccd53a3d9 fix: update gemini 2.0 flash to latest model id for Live API (#47)
* fix: update gemini 2.0 flash to latest model id for Live API

* fix: use -flash for most pages instead of the live api model

* fix: wording andformatting

* fix: resolve merge conflict
2025-04-13 11:50:57 +01:00
Dagang Wei d9be653122 Update agent.py (#57)
Use second-person (you) instead of first-person (I) in the agent instruction.

Co-authored-by: Kristopher Overholt <koverholt@gmail.com>
2025-04-13 00:46:03 -05:00
Kristopher Overholt d3cec829c9 Initial commit of Agent Development Kit 2025-04-09 08:49:23 -07:00