Commit Graph
34 Commits
Author SHA1 Message Date
Hangfei LinandCopybara-Service 4188673b0f feat(live): Support live mode of sequential agent
Add a `task_completed` function to the agent so when a model finished the task, it can send a signal and the program knows it can go to next agent.

This cl include:
* Implements the `_run_live_impl` in `sequential_agent` so it can handle live case.
* Add an example for sequential agent.
* Improve error message for unimplemented _run_live_impl in other agents.

Note:
1. Compared to non-live case, live agents process a continuous streams of audio
or video, so it doesn't have a native way to tell if it's finished and should pass
to next agent or not. So we introduce a task_compelted() function so the
model can call this function to signal that it's finished the task and we
can move on to next agent.

2. live agents doesn't seems to be very useful or natural in parallel or loop agents so we don't implement it for now. If there is user demand, we can implement it easily using similar approach.

PiperOrigin-RevId: 758315430
2025-05-13 11:56:16 -07:00
Hangfei LinandCopybara-Service 39f78dc28f feat(live): Support native(model-side) audio transcription for agent transferring in live mode.
The old implementation:
1. We only started transcription at the beginning of agent transferring.
2. The transcription service we used is not as good / fast as the model/native transcription.

In the current implementation, the live agent will rely on the llm's transcription, instead of our transcription when llm support audio transcription in the input. And in that case, the live agent won't use our own audio transcriber. This reduces the latency from 5secs to 2 secs during agent transferring. It also improves the transcription quality.

When the llm doesn't support audio transcription, we still use our audio transcriber to transcribe audio input.

PiperOrigin-RevId: 758296647
2025-05-13 11:13:08 -07:00
Hangfei LinandCopybara-Service c4d5e3b298 feat: Align run_live interface with run_async etc
PiperOrigin-RevId: 758289318
2025-05-13 10:57:26 -07:00
Hangfei LinandCopybara-Service a4adb739c0 Create a developer folder and add samples.
PiperOrigin-RevId: 755885332
2025-05-07 09:26:19 -07:00
Hangfei LinandCopybara-Service 97d29a1d9f Copybara import of the project:
--
41329f091a31b3d32af3025000951295477c717b by Hangfei Lin <hangfei@google.com>:

doc: Update CONTRIBUTING.md to include testing requirements
--
380b82e00fa8f16cbfd9e113ef45e1fc8e8c0932 by Hangfei Lin <hangfei@google.com>:

doc: Update CONTRIBUTING.md
--
61e81d848c275d4be3da2cb60a93e84bc68b3b4b by Hangfei Lin <hangfei@google.com>:

doc: Update CONTRIBUTING.md
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/541 from google:hangfei-patch-1 63d5c56e663cdfe6f6e78be85d9686873aeb2a5a
PiperOrigin-RevId: 754541490
2025-05-04 00:18:08 -07:00
Hangfei LinandCopybara-Service a7b4c98253 fix: Handle the case when parameter.required is None and fix tests
PiperOrigin-RevId: 754519323
2025-05-03 22:39:28 -07:00
Hangfei LinandCopybara-Service 60d23c028f ADK changes
PiperOrigin-RevId: 754193272
2025-05-02 17:53:31 -07:00
Hangfei LinandCopybara-Service 8f94a0c7b3 ADK v0.4.0 release.
PiperOrigin-RevId: 754103716
2025-05-02 12:56:42 -07:00
Hangfei LinandCopybara-Service aa7a98ad9d update readme
PiperOrigin-RevId: 751168005
2025-04-24 15:50:09 -07:00
Hangfei LinandGitHub 5c069cca8f chore: Update README.md (#353)
add instruction about our releases.
2025-04-22 18:18:44 -07:00
Hangfei LinandGitHub 22cab9e9a4 chore: Update README.md (#328)
* chore: Update README.md

chore: update readme for contributing guideline

* chore: Update CONTRIBUTING.md

chore: Update CONTRIBUTING.md

* Update CONTRIBUTING.md
2025-04-22 17:20:24 -07:00
Hangfei LinandGitHub 5ab43e804a chore: update the readme for a2a integration (#319)
chore: update the readme for a2a integration
2025-04-21 09:55:30 -07:00
Hangfei LinandGitHub 23f0383284 fix: The previous commit has a merge conflict. Fix it by adding this back.
The previous commit has a merge conflict. Fix it by adding this back.
2025-04-20 17:08:25 -07:00
Hangfei LinandGitHub 6e317d69de Merge branch 'main' into fix_typos 2025-04-18 10:25:42 -07:00
Hangfei LinandGitHub 732059cf59 Update CHANGELOG.md (#260) 2025-04-18 09:22:30 -07:00
Hangfei LinandCopybara-Service 45a465e9b0 No public description
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/260 from google:hangfei-patch-1 f514134c4fc3ad340dd274a38d01cc6f77056339
PiperOrigin-RevId: 748934896
2025-04-17 22:50:57 -07:00
Hangfei LinandGitHub b8514f26fe Update python-unit-tests.yml (#257)
fix test dependency
2025-04-17 19:07:14 -07:00
Hangfei LinandCopybara-Service 443bc08d2b No public description
PiperOrigin-RevId: 748877073
2025-04-17 18:24:35 -07:00
Hangfei LinandGitHub 290058eb05 Update README.md (#193)
* Update README.md
2025-04-14 21:14:38 -07:00
Hangfei LinandGitHub 577222509c Update README.md (#126) 2025-04-12 21:00:57 -07:00
Hangfei LinandGitHub eecb9e65be Update README.md (#107)
update read me and add feature highlights
2025-04-11 22:49:13 -07:00
Hangfei LinandGitHub b68f3aa11f Update README.md (#104) 2025-04-11 20:03:44 -07:00
Hangfei LinandGitHub a39977876b Update issue templates (#64)
Update issue template to help users to file the issues at the right place.
2025-04-11 15:48:21 -07:00
Hangfei LinandGitHub 59117b9b96 Merge pull request #7 from jackwotherspoon/main
docs: update ToolboxTool port in docstring
2025-04-10 18:04:52 -07:00
Hangfei LinandGitHub e80d0e4993 Merge branch 'main' into main 2025-04-10 18:04:20 -07:00
Hangfei LinandGitHub 278b513493 Merge pull request #22 from Howe829/fix/typos
Fix: typos reponse -> response
2025-04-10 18:03:39 -07:00
Hangfei LinandGitHub 924549e346 Merge pull request #24 from eltociear/patch-1
fix typo in update evals.py
2025-04-10 10:19:50 -07:00
Hangfei LinandGitHub 9002ace7e5 Merge pull request #4 from kweinmeister/main
fix: Update README evaluate link
2025-04-09 11:26:30 -07:00
Hangfei LinandGitHub f63ec37153 Update CHANGELOG.md 2025-04-09 09:10:01 -07:00
Hangfei LinandGitHub 553bede77e Create CHANGELOG.md 2025-04-09 08:53:35 -07:00
Hangfei LinandGitHub e95bfd2598 Update README.md 2025-04-09 05:41:54 -07:00
hangfei 363e10619a Changes for 0.1.0 release 2025-04-09 04:24:34 +00:00
hangfei 9827820143 Agent Development Kit(ADK)
An easy-to-use and powerful framework to build AI agents.
2025-04-08 17:25:47 +00:00
hangfei f92478bd5c first commit 2025-04-02 20:18:19 +00:00