Liang Wu and Copybara-Service
c6cf11cb74
chore:Rename conformance create command to record
...
PiperOrigin-RevId: 822708044
2025-10-22 13:03:37 -07:00
Liang Wu and Copybara-Service
8f3ca0359e
fix: fix the instruction in workflow_triage example agent
...
PiperOrigin-RevId: 813305068
2025-09-30 09:37:54 -07:00
Liang Wu and Copybara-Service
43f302ce1a
chore(config): Add _config suffix to all yaml-based agent examples
...
Also expand agent folder name to full spelling, e.g. ma --> multi_agent
PiperOrigin-RevId: 795926902
2025-08-16 16:10:43 -07:00
Liang Wu and Copybara-Service
b3b70035c4
feat: support deploying config agent to Agent Engine in CLI
...
Both pure config and config with code are successfully deployed.
PiperOrigin-RevId: 795645102
2025-08-15 16:01:50 -07:00
Liang Wu and Copybara-Service
ba6e85eb3f
docs(config): fix core_callback example
...
PiperOrigin-RevId: 795619488
2025-08-15 14:44:53 -07:00
Liang Wu and Copybara-Service
6c217bad82
chore: update models in samples/ folder to be gemini 2.0+
...
Gemini 1.5 is obsolete and not accessible to new projects.
PiperOrigin-RevId: 795330977
2025-08-14 21:36:23 -07:00
Liang Wu and Copybara-Service
d87feb8ddb
docs(config): add examples for config agents
...
PiperOrigin-RevId: 793871778
2025-08-11 18:09:55 -07:00
Liang Wu and Copybara-Service
b4f1ebea31
chore(config): replace @working_in_progress with @experimental for config agent feature
...
PiperOrigin-RevId: 792803076
2025-08-08 16:32:50 -07:00
Liang Wu and Copybara-Service
e0a8355219
chore(config): add the public URL of JSON schema file to template
...
PiperOrigin-RevId: 791983175
2025-08-06 21:50:20 -07:00
Liang Wu and Copybara-Service
d9ce2e691c
feat(config): implement config and from_config for MCPToolset
...
The connection_params argument in the constructor is split into four arguments in the config class because some of them have identical fields. In order to identify which is which, a separate name is more convenient.
PiperOrigin-RevId: 791965995
2025-08-06 20:45:58 -07:00
Liang Wu and Copybara-Service
dc193f7969
fix(config): fix adk create --type=config
...
Previously click didn't convert the input into the enum type.
PiperOrigin-RevId: 791922529
2025-08-06 18:10:21 -07:00
Liang Wu and Copybara-Service
ef837015f3
refactor(config): move BaseToolConfig to a separate file
...
PiperOrigin-RevId: 791841562
2025-08-06 14:18:20 -07:00
Liang Wu and Copybara-Service
e73d71d324
feat(config): implement config and from_config for ExampleTool
...
Only list[Example] is supported in config. BaseExampleProvider will need to be used in code.
PiperOrigin-RevId: 791763913
2025-08-06 11:05:54 -07:00
Liang Wu and Copybara-Service
1686cc57c2
feat(config): implement configs and from_config() for CrewaiTool and LangchainTool
...
PiperOrigin-RevId: 791742964
2025-08-06 10:19:12 -07:00
Liang Wu and Copybara-Service
e3c2bf3062
chore: remove unused Example-related classes
...
PiperOrigin-RevId: 791538058
2025-08-05 23:26:06 -07:00
Liang Wu and Copybara-Service
2fff882fb0
feat(config): implement from_config() for BaseTool
...
PiperOrigin-RevId: 791520708
2025-08-05 22:26:23 -07:00
Liang Wu and Copybara-Service
0e28d64712
feat(tools): create enterprise_web_search_tool as a tool instance
...
There is no argument for the tool, so just like google_search, we should make it an easy-to-use tool instance.
PiperOrigin-RevId: 791266806
2025-08-05 10:11:37 -07:00
Liang Wu and Copybara-Service
9656ccc407
feat(config): add GenerateContentConfig to LlmAgentConfig
...
PiperOrigin-RevId: 789631181
2025-07-31 23:33:36 -07:00
Liang Wu and Copybara-Service
db975dfe2a
chore: prevent triggering of _load_from_yaml_config in AgentLoader
...
PiperOrigin-RevId: 789502695
2025-07-31 15:59:41 -07:00
Liang Wu and Copybara-Service
d5dcef2cf0
fix(config): forbid extra fields in AgentToolConfig
...
PiperOrigin-RevId: 789038376
2025-07-30 14:13:48 -07:00
Liang Wu and Copybara-Service
0c6086cb15
chore: remove redundant definition for adk deploy gke command
...
PiperOrigin-RevId: 788758843
2025-07-29 22:47:56 -07:00
Liang Wu and Copybara-Service
bcac9ba44c
feat(config): add --type flag to adk create to allow starting with config
...
Updated the `adk create` default model version to gemini-2.5-flash.
PiperOrigin-RevId: 788589859
2025-07-29 13:45:11 -07:00
Liang Wu and Copybara-Service
f1889ae440
feat(config): support ADK built-in and custom tools in config
...
PiperOrigin-RevId: 787735915
2025-07-27 11:14:04 -07:00
Liang Wu and Copybara-Service
dfee06ac06
feat(config): support input/output schema by fully-qualified code reference
...
PiperOrigin-RevId: 785541326
2025-07-21 12:53:13 -07:00
Liang Wu and Copybara-Service
5edc493da9
chore: allow "from google.adk.tools import AgentTool"
...
PiperOrigin-RevId: 784606041
2025-07-18 09:30:40 -07:00
Liang Wu and Copybara-Service
41f1888116
feat(config): support callbacks in BaseAgent and LlmAgent
...
PiperOrigin-RevId: 783422160
2025-07-15 12:05:10 -07:00
Liang Wu and Copybara-Service
ce037ec888
feat(config): support built-in tools and referencing tools in code
...
PiperOrigin-RevId: 783415273
2025-07-15 11:46:04 -07:00
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