Liang Wu and Copybara-Service
48971d43d0
feat(config): support output_key and include_contents in LlmAgentConfig
...
PiperOrigin-RevId: 782170665
2025-07-11 17:47:42 -07:00
Liang Wu and Copybara-Service
b2ef9a069e
feat(config): support sub_agents in BaseAgentConfig
...
Currently only support path to YAML or code reference to agent instance.
PiperOrigin-RevId: 782157110
2025-07-11 16:57:53 -07:00
Liang Wu and Copybara-Service
68f34135fe
feat(config): add ParallelAgent and SequentialAgent to the loader
...
PiperOrigin-RevId: 781712004
2025-07-10 15:42:51 -07:00
Liang Wu and Copybara-Service
a313c2c1af
feat(config): add configs for ParallelAgent and SequentialAgent
...
PiperOrigin-RevId: 781704814
2025-07-10 15:24:22 -07:00
Liang Wu and Copybara-Service
d83362725d
feat(config): add disallow_transfer_to_parent and disallow_transfer_to_peers to LlmAgentConfig
...
PiperOrigin-RevId: 781690247
2025-07-10 14:45:01 -07:00
Liang Wu and Copybara-Service
aef54f8eb7
feat(config): support loading from YAML config in CLI
...
The supported CLIs are: `adk web`, `adk run` and `adk api_server`.
PiperOrigin-RevId: 781666724
2025-07-10 13:47:58 -07:00
Liang Wu and Copybara-Service
ca396a3ab1
feat(config): add APIs for building config agents
...
Including basic fields in configs, the from_config() methods and the JSON schema. Other fields will be added in following PRs.
PiperOrigin-RevId: 781660569
2025-07-10 13:32:28 -07:00
Liang Wu and Copybara-Service
2034fbb8f1
chore: remove unused line for Client()
...
PiperOrigin-RevId: 781617898
2025-07-10 11:41:27 -07:00
Liang Wu and Copybara-Service
d263afd91b
feat: add agent.clone() method
...
This would allow users to easily make a copy of the agents they built without having to add too much boilerplates. This promotes code reuse, modularity and testability of agents.
PiperOrigin-RevId: 781214379
2025-07-09 14:34:58 -07:00
Liang Wu and Copybara-Service
9af2394e0a
fix: continue the action when grep -L returns exit status 1
...
`grep -L` returns status 1 when there are modified files that don't have the `from __future__ import annotations` pattern. Previously if this happens, the entire GitHub action by default will stop and exit with status 1. Adding `|| true` will prevent this from happening and continue the workflow.
PiperOrigin-RevId: 778246018
2025-07-01 16:57:56 -07:00
Liang Wu and Copybara-Service
e384fa4ad7
chore: fix previously skipped isort issue
...
PiperOrigin-RevId: 772224853
2025-06-16 16:57:46 -07:00
Liang Wu and Copybara-Service
b2f319f440
chore: move README to parent folder contributing/
...
Based on the content, seems like it belongs to contributing/.
PiperOrigin-RevId: 770322600
2025-06-11 14:32:03 -07:00
Liang Wu and Copybara-Service
c9e265551a
test: add assert statements in hello_world agent main.py
...
They will check the states of the agent after each die roll.
PiperOrigin-RevId: 769949096
2025-06-10 21:35:36 -07:00
Liang Wu and Copybara-Service
7dbd8c6a5b
chore: add file contents check in a GitHub action
...
PiperOrigin-RevId: 767710673
2025-06-05 12:12:56 -07:00
Liang Wu and Copybara-Service
433c423d35
chore: include contributing/ folder in autoformat.sh
...
Also formatted the files in that folder in this same commit.
PiperOrigin-RevId: 766885306
2025-06-03 17:20:52 -07:00
Liang Wu and Copybara-Service
bf12a4ab48
chore: add GitHub Action to check imports' order
...
PiperOrigin-RevId: 766804783
2025-06-03 16:56:20 -07:00
Liang Wu and Copybara-Service
ed2aef9120
chore: fix Pyink GitHub Action to check on all changed .py files
...
Three fixes:
1. used "fetch-depth: 2" to ensure that files in all commits in the PR are checked
2. triggered by all changed ".py" files in the repo
3. merged the "check modified files" and "run Pyink" steps because $GITHUB_ENV cannot handle multi-line env vars without special treatment
PiperOrigin-RevId: 766793736
2025-06-03 16:56:11 -07:00
Liang Wu and Copybara-Service
41ba2d1c8a
chore: reformat the code using autoformat.sh.
...
PiperOrigin-RevId: 764918729
2025-05-29 15:56:29 -07:00
Liang Wu and Copybara-Service
a8a20743f9
fix: handles function tool parsing corner case where type hints are stored as strings.
...
Previously if you add `from __future__ import annotations` in your code, the parsing code would fail because the type hints will be a string instead of the class itself (e.g. input: 'str' instead of input: str).
Also added "_" to the util file name.
PiperOrigin-RevId: 764817339
2025-05-29 11:48:35 -07:00
Liang Wu and Copybara-Service
2a8ca06c3e
chore: remove reference to genai SDK folder.
...
Added `from __future__ import annotations` to follow the best practice.
PiperOrigin-RevId: 764473253
2025-05-28 16:54:19 -07:00
Liang Wu and Copybara-Service
ed63cd86eb
chore: re-format import statements in mcp_session_manager.py.
...
They are causing Kokoro failures.
PiperOrigin-RevId: 764467630
2025-05-28 16:37:56 -07:00
Liang Wu and Copybara-Service
09f30afe10
fix: failed unit test for Gemini model headers.
...
Root cause is that GenAI SDK updated their logic of adding headers in the latest version.
PiperOrigin-RevId: 761751413
2025-05-21 18:40:16 -07:00
Liang Wu and Copybara-Service
98f504cebe
feat!: use BuiltInCodeExecutor in Runner for CFC.
...
The BuiltInCodeExecutionTool is deleted.
PiperOrigin-RevId: 761608273
2025-05-21 11:45:35 -07:00
Liang Wu and Copybara-Service
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
Liang Wu and Copybara-Service
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
Liang Wu and Copybara-Service
9c2358e2a5
Update the usage of built-in code execution in documentation and sample agent.
...
PiperOrigin-RevId: 758997215
2025-05-14 23:17:13 -07:00
Liang Wu and Copybara-Service
22e4210b47
Deprecate BuiltInCodeExecutionTool in favor of BuiltInCodeExecutor.
...
PiperOrigin-RevId: 758713057
2025-05-14 09:22:49 -07:00
Liang Wu and Copybara-Service
933f01b89f
fix: Concatenate all text Parts from an AgentTool agent's response.
...
PiperOrigin-RevId: 758424011
2025-05-13 16:38:54 -07:00