Xiang (Sean) Zhou
5a67a946d2
fix: fix parameter schema generation for gemini
...
this fixes https://github.com/google/adk-python/issues/1055
and https://github.com/google/adk-python/issues/881
PiperOrigin-RevId: 766288394
2025-06-02 12:03:02 -07:00
Google Team Member
f7cb66620b
fix: Use inspect.cleandoc on function docstrings in generate_function_declaration.
...
This creates proper indent of the doc.
PiperOrigin-RevId: 766285907
2025-06-02 11:57:25 -07:00
Xiang (Sean) Zhou
036f954a2a
refactor: uniform Google LLM variant and parsing logic and make contant value consistent with Google GenAI SDK : 903e0729ce/google/genai/_automatic_function_calling_util.py (L96)
...
PiperOrigin-RevId: 765639681
2025-05-31 13:12:25 -07:00
Edward Funnekotter
7fdc6b4417
fix: ensure function description is copied when ignoring parameters
...
Copybara import of the project:
--
8540f266ebc0210749834d73ee61f01783ae3526 by Edward Funnekotter (aider) <efunneko@gmail.com >:
fix: ensure function description is copied when ignoring parameters
--
b9fb5916593fe552a7b02bff379ebf2f3b3cf69f by Edward Funnekotter <efunneko@gmail.com >:
Fix annoying comments
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/552 from efunneko:efunneko/122/copy_doc_string_for_tool d9bc24343d9f32376b5647c4309d6cb172833534
PiperOrigin-RevId: 765470363
2025-05-30 22:35:14 -07:00
Xiang (Sean) Zhou
af2180c6d0
chore: add more comments to MCPTooset and MCPSessionManager
...
PiperOrigin-RevId: 765448413
2025-05-30 21:01:16 -07:00
Xiang (Sean) Zhou
3616bb5fc4
feat:support Langchain tools that has run_manager in _run args and don't have args_schema populated
...
PiperOrigin-RevId: 765405793
2025-05-30 18:05:42 -07:00
Calvin Giles
4075290a1d
chore: Fix reqeust -> request typo
...
Copybara import of the project:
--
6beac4451fef1774365e75ab67779253c5ac79be by Calvin Giles <calvin.giles@trademe.co.nz >:
chore: Fix reqeust -> request typo
#non-breaking
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/883 from calvingiles:fix-reqeust-typo cfe592e6ad4ebc79bd2b3ebcd0370f868b57ff10
PiperOrigin-RevId: 765354040
2025-05-30 15:13:42 -07:00
Google Team Member
ba5b80d5d7
feat: use bigquery scope by default in bigquery credentials.
...
Right now the agent builder has to specify the bigquery scope explicitly for bigquery tools, which is somewhat unnecessary. With this change the user does not have to specify scopes, although they would still have the ability to overrides scopes if necessary.
PiperOrigin-RevId: 765354010
2025-05-30 15:12:49 -07:00
Google Team Member
45ef668435
fix: timeout issues for mcpstdio server when mcp tools are incorrect.
...
Fixes https://github.com/google/adk-python/issues/643
PiperOrigin-RevId: 765342572
2025-05-30 14:39:07 -07:00
iamb4uc.xyz
ccd05e0b00
BugFix: Unused import for deprecated.
...
--
512e810b6dbb88248bfbfc1dbff598a247a099be by swapnil <swapnilbhmk.intrn@gmail.com >:
BugFix: Unused import for deprecated.
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/726 from swapxs:patch-2 44590f0085c06410aac58a6519aaa080dc277a40
PiperOrigin-RevId: 765285320
2025-05-30 12:09:33 -07:00
Wei Sun (Jack)
4214c7eddd
chore: auto-format files.
...
PiperOrigin-RevId: 764980009
2025-05-29 19:24:16 -07:00
Alankrit Verma
854a544061
fix(transfer_to_agent): update docstring for clarity and accuracy
...
Copybara import of the project:
--
e246af5965dfd4d032e0a3ce29513f3e2e874f73 by Alankrit Verma <alankrit386@gmail.com >:
tools: allow transfer_to_agent to accept extra kwargs
transfer_to_agent now takes **kwargs to swallow unexpected keyword args
Added integration tests covering single and multiple extra kwargs.
Fixes #458 .
--
55fea786a9b7eb19b830dc67d7a2e37fe7937608 by Alankrit Verma <alankrit386@gmail.com >:
fix(tests): correct indentation in test_transfer.py for better readability
--
0c04f2d777bd4f3d8951dadd5e4e105530bd6281 by Alankrit Verma <alankrit386@gmail.com >:
fix(transfer_to_agent): restore strict two-arg signature and clarify usage
Revert the earlier **kwargs change so transfer_to_agent again only accepts
(agent_name, tool_context). Improve the doc-string to make clear that no
other parameters should be passed to this tool.
Fixes #458
--
d37448dd0ef9fc6199ca0e42b211b3cd9c886eb0 by Alankrit Verma <alankrit386@gmail.com >:
fix(transfer_to_agent): update docstring for clarity and accuracy
--
ea827af78fc2c9abdf030ad50e24bba8c996df75 by Wei Sun (Jack) <Jacksunwei@gmail.com >:
Update transfer_to_agent_tool docstring for better prompt
--
a144069a67b2e5652ffd50224b1ce68ddea14783 by Wei Sun (Jack) <Jacksunwei@gmail.com >:
Update transfer_to_agent_tool.py
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/466 from AlankritVerma01:tools/transfer-accept-kwargs 686d436457e3141d128c6e81452fddc546a14a7e
PiperOrigin-RevId: 764940463
2025-05-29 16:57:27 -07:00
Liang Wu
41ba2d1c8a
chore: reformat the code using autoformat.sh.
...
PiperOrigin-RevId: 764918729
2025-05-29 15:56:29 -07:00
Liang Wu
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
Xiang (Sean) Zhou
7e637d3fa0
feat: support Langchain StructuredTool for Langchain tool
...
for fixing: https://github.com/google/adk-python/issues/707
PiperOrigin-RevId: 764781197
2025-05-29 11:48:15 -07:00
Google Team Member
2a65c4118b
fix: Assign empty inputSchema to MCP tool when converting an ADK tool that wraps a function which takes no parameters.
...
Fixes https://github.com/google/adk-python/issues/948
PiperOrigin-RevId: 764780248
2025-05-29 11:48:08 -07:00
Xiang (Sean) Zhou
2b5c89b3a9
feat: expose more config of VertexAiSearchTool from latest Google GenAI SDK
...
for fixing: https://github.com/google/adk-python/issues/955
PiperOrigin-RevId: 764568728
2025-05-28 22:32:44 -07:00
Google Team Member
60ceea72bd
fix: do not convert "false" value to dict
...
This causes information loss, and is unexpected from user.
PiperOrigin-RevId: 764558190
2025-05-28 21:56:52 -07:00
Xiang (Sean) Zhou
b70e74c450
chore: auto format mcp tools
...
PiperOrigin-RevId: 764547299
2025-05-28 21:14:42 -07:00
Liang Wu
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
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
Google Team Member
83ba6419cd
Allow GOOGLE_AI to support optional args.
...
PiperOrigin-RevId: 764419789
2025-05-28 14:34:11 -07:00
Omar BENHAMID
d232e6216d
feat: google/adk-python#479 support for streamable http MCP servers for MCPToolset
...
Copybara import of the project:
--
c5b9d49d7b6d858ff0a93bd690e6d653b7c32221 by Omar BENHAMID <omar.benhamid@smart-gts.com >:
feat: google/adk-python#479 support for streamable http MCP servers for MCPToolset
--
9431bc19e6538c1b814aba0b24ff564acf046075 by Omar BENHAMID <omar.benhamid@smart-gts.com >:
feat: google/adk-python#479 streamable http added to right package
--
8b4aabed45a6f0dc828beb61f12985dc7b14f3d0 by Omar BENHAMID <omar.benhamid@smart-gts.com >:
feat: google/adk-python#479 streamable http : review feedbacks + sample agent
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/650 from omarbenhamid:feature/mcp-streamable-http 625f028784c216401d45cb1b5d4d998535ebcb00
PiperOrigin-RevId: 764419586
2025-05-28 14:33:19 -07:00
Xiang (Sean) Zhou
c7ce987676
chore: reformat load_memory_tool
...
PiperOrigin-RevId: 764402270
2025-05-28 13:52:40 -07:00
shubham rajput
3611e9fe09
Copybara import of the project:
...
--
19b6701800bc3a26321ff3633b356106aba5a800 by shubham rajput <42935066+shu8hamrajput@users.noreply.github.com >:
fix: Update load_memory_tool.py
make `query` args required.
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/389 from shu8hamrajput:fix/make-query-required-arg 92eb6472a380aa02b287a6ca94d2bfabdaa1c38b
PiperOrigin-RevId: 764303198
2025-05-28 09:49:36 -07:00
Google Team Member
d6c6bb4b24
feat: add BigQuery first-party tools.
...
These tools support getting BigQuery dataset/table metadata and query results.
PiperOrigin-RevId: 764139132
2025-05-28 00:59:19 -07:00
Wei Sun (Jack)
6b89ceb49a
fix: mutable object cannot be default value in parameter.
...
PiperOrigin-RevId: 763479612
2025-05-26 11:32:07 -07:00
Xiang (Sean) Zhou
694eca08e5
fix: fix bigquery credentials and bigquery tool to make it compatible with python 3.9 and make the credential serializable in session
...
PiperOrigin-RevId: 763332829
2025-05-26 01:58:52 -07:00
Google Team Member
55cb36edfe
Add handling for None param.annotation.
...
This is the case for function tools that have no return value.
PiperOrigin-RevId: 763306054
2025-05-26 00:21:15 -07:00
Xiang (Sean) Zhou
74a331f1fb
chore: reformat the code with autoformat.sh
...
PiperOrigin-RevId: 763256626
2025-05-25 20:33:45 -07:00
Xiang (Sean) Zhou
756a326033
feat: add customized bigquer tool wrapper class to facilitate developer to handcraft bigquery api tool
...
PiperOrigin-RevId: 762626700
2025-05-23 17:23:41 -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
Sasha Sobran
0026edc1c9
chore: update filtered schema parameters for Gemini API.
...
PiperOrigin-RevId: 762209590
2025-05-22 18:39:58 -07:00
Wei Sun (Jack)
fe618c3d93
chore: use relative import in google_api_toolsets.py. Adds open source header for base_toolset.py
...
PiperOrigin-RevId: 762042799
2025-05-22 11:13:57 -07:00
Xiang (Sean) Zhou
a2263b1808
refactor: refactor toolset to extract tool_filter logic to base class
...
PiperOrigin-RevId: 761828251
2025-05-21 23:54:33 -07:00
Wei Sun (Jack)
e0851a1e57
chore: batch organize imports.
...
PiperOrigin-RevId: 761824628
2025-05-21 23:40:47 -07:00
Xiang (Sean) Zhou
09cb128cf9
fix: fix function tool name parsing
...
to fix https://github.com/google/adk-python/issues/824
PiperOrigin-RevId: 761703269
2025-05-21 16:00:09 -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
Liang Wu
98f504cebe
feat!: use BuiltInCodeExecutor in Runner for CFC.
...
The BuiltInCodeExecutionTool is deleted.
PiperOrigin-RevId: 761608273
2025-05-21 11:45:35 -07:00
Google Team Member
1561b0f15c
Support fine-tuned gemini model path to use google_search_tool
...
PiperOrigin-RevId: 761543344
2025-05-21 08:59:19 -07:00
Google Team Member
62a543bd58
Add dynamicAuthConfig to ExecuteCustomQuery. Add sample agent for ApplicationIntegrationToolset which uses Integration Connectors with end user credentials.
...
PiperOrigin-RevId: 761356343
2025-05-20 21:45:27 -07:00
Xiang (Sean) Zhou
76700d790b
chore: add doc string for auto generated google api toolset
...
PiperOrigin-RevId: 761266870
2025-05-20 16:08:27 -07:00
Xiang (Sean) Zhou
f67ccf32c3
fix: support Callable that has __call__ as coroutine function in FunctionTool
...
PiperOrigin-RevId: 760913537
2025-05-19 22:09:44 -07:00
Wei Sun (Jack)
5115474f2b
chore!: bump version to 1.0.0, updated changelog.md and removed src/google/adk/tools/built_in_code_execution_tool.py
...
Mark src/google/adk/tools/_built_in_code_execution_tool.py as private and will be fully removed soon.
PiperOrigin-RevId: 760889060
2025-05-19 20:31:27 -07:00
Xiang (Sean) Zhou
de7c9c6509
enhance toolbox toolset:
...
1. use async client
2. expose add headers and bind parameters functionality of toolbox tool
PiperOrigin-RevId: 760845486
2025-05-19 18:08:02 -07:00
Xiang (Sean) Zhou
74454170a3
refactor: refactor and refine LangChainTool
...
PiperOrigin-RevId: 760726719
2025-05-19 12:29:44 -07:00
Wei Sun (Jack)
ae7d19a4c6
chore: Moves toolbox-core to extensions extra dependency.
...
PiperOrigin-RevId: 760722343
2025-05-19 12:15:55 -07:00
Wei Sun (Jack)
f592de4cc0
chore: constructor shouldn't have return type hint.
...
PiperOrigin-RevId: 760021373
2025-05-17 09:57:30 -07:00
Wei Sun (Jack)
0d7d7918b6
chore: logger = logging.getLogger(__name__) --> logger = logging.getLogger('google_adk.' + __name__)
...
PiperOrigin-RevId: 759894901
2025-05-16 23:04:02 -07:00
Wei Sun (Jack)
03f167c1d3
chore: Adds toolbox-core to deps and fixes toolbox code error.
...
PiperOrigin-RevId: 759802478
2025-05-16 16:46:11 -07:00