Xiang (Sean) Zhou
791ac9eb68
refactor: refactor cli to use agent loader
...
PiperOrigin-RevId: 764546019
2025-05-28 21:09:40 -07:00
Xiang (Sean) Zhou
623957c0a8
refactor: refine agent_loader to load the most common folder structure first and don't including unnecessary case
...
PiperOrigin-RevId: 764545194
2025-05-28 21:06:07 -07:00
Google Team Member
fc3e374c86
Add export to json button in the chat window.
...
PiperOrigin-RevId: 764504072
2025-05-28 18:37:12 -07:00
Google Team Member
958c18db2b
Add download object as json function in the download service.
...
PiperOrigin-RevId: 764421398
2025-05-28 14:37:47 -07:00
Wei Sun (Jack)
97bf28bad6
chore: Adds --version
to adk
cli.
...
Sample:
```
-> % adk --version
adk, version 1.0.0
```
Help with https://github.com/google/adk-python/issues/832
PiperOrigin-RevId: 764297949
2025-05-28 09:37:23 -07:00
Wei Sun (Jack)
f4c7d788b0
fix: build_graph is not awaited.
...
Fixes https://github.com/google/adk-python/issues/927
PiperOrigin-RevId: 764113488
2025-05-27 23:32:21 -07:00
Yifan Wang
15109c6879
fix: oauth fix for adk web
...
PiperOrigin-RevId: 764111115
2025-05-27 23:22:45 -07:00
Yifan Wang
5d2a876ca8
feat:update minified adk web files
...
PiperOrigin-RevId: 763970627
2025-05-27 15:26:19 -07:00
Yifan Wang
0c4f52699b
fix: serve web app at /dev-ui/
...
PiperOrigin-RevId: 763965859
2025-05-27 15:14:23 -07:00
Xiang (Sean) Zhou
618c824994
feat: extract agent loading logic from fast_api.py to a separate AgentLoader class and support more agent definition folder/file structure.
...
Structures supported:
a) agents_dir/agent_name.py (with root_agent or agent.root_agent in it)
b) agents_dir/agent_name_folder/__init__.py (with root_agent or agent.root_agent in the package)
c) agents_dir/agent_name_folder/agent.py (where agent.py has root_agent)
PiperOrigin-RevId: 763943716
2025-05-27 14:14:51 -07:00
Wei Sun (Jack)
16d9696012
fix: avoid duplicating log in stderr.
...
This was introduced to work around google-auth kills all logs via `google` root logging namespace. Given we're now using `google_adk` as root logging namesapce, we don't need additional Stream log handler now.
PiperOrigin-RevId: 763924531
2025-05-27 13:28:00 -07:00
Google Team Member
b79400162d
Use audio player component in the artifact tab
...
PiperOrigin-RevId: 763875097
2025-05-27 11:23:04 -07:00
Xiang (Sean) Zhou
7c2df7e4f6
refactor: refactor evaluation to make cli module depends on evaluation module. Modules outside of cli module should not reference cli module
...
PiperOrigin-RevId: 763577749
2025-05-26 19:18:55 -07:00
Xiang (Sean) Zhou
be0786ea88
refactor: rename agent_dir to agents_dir and rename app_id to app_name in fast_api.py to make it consistent among every endpoints
...
PiperOrigin-RevId: 763483339
2025-05-26 11:51:19 -07:00
Xiang (Sean) Zhou
b0fb3536e5
chore: cleanup unused import in cli module
...
PiperOrigin-RevId: 763233551
2025-05-25 18:50:31 -07:00
Xiang (Sean) Zhou
a134ba6f7a
feat: add toolset cleanup logic to run_cli
...
PiperOrigin-RevId: 762638389
2025-05-23 18:06:30 -07:00
Yifan Wang
7067c0319d
fix: adk web now can be served under custom route
...
PiperOrigin-RevId: 762629432
2025-05-23 17:35:44 -07:00
Google Team Member
717993b14f
Fix eval history cases can't be toggled
...
PiperOrigin-RevId: 762561171
2025-05-23 14:06:35 -07:00
Google Team Member
79681e3513
Write eval results locally from adk eval cli.
...
PiperOrigin-RevId: 762499588
2025-05-23 11:16:00 -07:00
Google Team Member
33921d524f
Add click event to the image in chat window.
...
PiperOrigin-RevId: 762473152
2025-05-23 10:12:15 -07:00
Xiang (Sean) Zhou
92c37496d3
refactor: simplify toolset cleanup codes and extract common cleanup codes to utils which could be utilized by cli or client codes that directly call runners
...
PiperOrigin-RevId: 762463028
2025-05-23 09:49:19 -07:00
Google Team Member
30e10c87c5
feat:Integrate audio player component in the chat window.
...
PiperOrigin-RevId: 762105827
2025-05-22 13:37:37 -07:00
Wei Sun (Jack)
1773cdab96
chore: Batch organize imports with isort.
...
Command: `isort /src`
PiperOrigin-RevId: 761644934
2025-05-21 13:23:32 -07:00
Google Team Member
1807e73472
ADK changes
...
PiperOrigin-RevId: 761640805
2025-05-21 13:13:50 -07:00
Google Team Member
9928cafe32
Refactor eval results reporting with Eval Set Results manager.
...
PiperOrigin-RevId: 761601525
2025-05-21 11:30:40 -07:00
Google Team Member
e060344e39
ADK changes
...
PiperOrigin-RevId: 761572168
2025-05-21 10:18:55 -07:00
Xiang (Sean) Zhou
cbdb5fc507
chore: fix ut for fast api server
...
PiperOrigin-RevId: 761350248
2025-05-20 21:17:39 -07:00
Google Team Member
fe01103b74
ADK changes
...
PiperOrigin-RevId: 761251203
2025-05-20 15:23:12 -07:00
Google Team Member
b299241b56
ADK changes
...
PiperOrigin-RevId: 761197136
2025-05-20 13:01:05 -07:00
Google Team Member
68f0fca832
ADK changes
...
PiperOrigin-RevId: 761190844
2025-05-20 12:44:05 -07:00
Yifan Wang
1bfc7590b4
update minified files to include the latest eval detail changes (only UI)
...
PiperOrigin-RevId: 760770101
2025-05-19 14:26:28 -07:00
Wei Sun (Jack)
9932015f3b
chore: Makes --host
backward compatible for cloud_run deploy. --host only available after 0.5.0.
...
PiperOrigin-RevId: 760681697
2025-05-19 10:35:05 -07:00
Xiang (Sean) Zhou
2ad1f79422
refactor: replace logger.warn which is deprecated with logger.warning
...
PiperOrigin-RevId: 760311574
2025-05-18 10:25:29 -07:00
Wei Sun (Jack)
729001fc0b
chore: logger = logging.getLogger(__name__) --> logger = logging.getLogger('google_adk.' + __name__)
...
PiperOrigin-RevId: 760019467
2025-05-17 09:47:55 -07:00
Wei Sun (Jack)
482099c925
chore!: Sets up google_adk
for top level logger namespace. Removes --log_to_tmp
option in adk web
and adk api_server
for the same reason.
...
Context: google-auth commit [1] broke adk log, because it disables the top level logger named "google", which is also adk's top level logger. We establish a separate top level logger with a different name `google_adk` to prevent this in the future.
This commit only changes google_llm.py. All other files will be changed in later commits.
[1] 77ad53eb00 (diff-e386c2b2c39b4d746c1e257f503acecbde49b1746b1a34f53b57083ed6094161)
PiperOrigin-RevId: 759872317
2025-05-16 21:28:33 -07:00
Google Team Member
74b8841e62
ADK changes
...
PiperOrigin-RevId: 759809705
2025-05-16 17:11:03 -07:00
Google Team Member
93e8f020ed
ADK changes
...
PiperOrigin-RevId: 759775958
2025-05-16 15:24:40 -07:00
Liang Wu
a1ddf0b6cc
feat!: add --adk_version
arg to adk deploy cloud_run
.
...
The default version for Cloud Run deployment is changed to the version in the dev environment instead of the latest version.
PiperOrigin-RevId: 759767654
2025-05-16 15:01:23 -07:00
Google Team Member
801549f734
ADK changes
...
PiperOrigin-RevId: 759758769
2025-05-16 14:35:37 -07:00
Xiang (Sean) Zhou
05a853bc91
fix:fix mcp toolset close issue
...
PiperOrigin-RevId: 759636772
2025-05-16 09:05:56 -07:00
Xiang (Sean) Zhou
755ce74550
fix: stage correct ui files to adk
...
PiperOrigin-RevId: 759632290
2025-05-16 08:52:22 -07:00
Xiang (Sean) Zhou
fe5a5494e9
fix: fix oauth for dev UI
...
PiperOrigin-RevId: 759433563
2025-05-15 21:24:28 -07:00
Wei Sun (Jack)
a786f75968
Uses logs method parameter to set log level.
...
PiperOrigin-RevId: 759378777
2025-05-15 18:00:40 -07:00
Yifan Wang
01a21e40d0
ADK changes
...
PiperOrigin-RevId: 759377414
2025-05-15 17:55:53 -07:00
Google Team Member
ebfe8fe51c
Resolve issue where --with_ui flag boolean was not being passed correctly, preventing CMD adk web [...]
from being deployed to Cloud Run.
...
PiperOrigin-RevId: 759364440
2025-05-15 17:13:47 -07:00
Xiang (Sean) Zhou
cb000e5a94
refactor: remove async root_agent handling as it no longer needed for MCP toolset
...
PiperOrigin-RevId: 759364382
2025-05-15 17:12:57 -07:00
Google Team Member
4d5760917d
chore: Add alias_generators to new Eval pydantic models
...
PiperOrigin-RevId: 759346603
2025-05-15 16:21:20 -07:00
Ankur Sharma
4c6820e78c
Update AgentEvaluator to new new EvalSchema
...
PiperOrigin-RevId: 759293759
2025-05-15 14:09:23 -07:00
Yifan Wang
f298d07579
ADK changes
...
PiperOrigin-RevId: 759276411
2025-05-15 13:28:50 -07:00
Liang Wu
c399c50be5
Add --host
argument to adk web
and adk api_server
commands and change the default binding host to localhost.
...
PiperOrigin-RevId: 759276079
2025-05-15 13:27:49 -07:00