Google Team Member and Copybara-Service
2f655f0c67
fix: Add support for code execution result and skip inline data in anthropic llm
...
```
blaze run assistant/lamda/bard/scrape/vertex/tools:use_vertex_agent -- --prompt_collection_id=cab_v0p7@3 --agent_name=vertex_1p_agent --kernel_id=vertex_agent:claude-sonnet-4@20250514 --dynamically_inject_tools=True --add_final_answer_tag=True --example_ids=plot-line-004_0.5_new_1
```
TODO: https://evalhub.corp.google.com/runs/Uf5en14gqmK-R/links
PiperOrigin-RevId: 781724544
2025-07-10 16:17:27 -07:00
Google Team Member and Copybara-Service
10197db0d7
feat: Make InMemoryMemoryService thread-safe
...
Even though InMemoryMemoryService is intended only for testing and local development, we eliminate a potential source of bugs during prototyping by providing a thread-safe InMemoryMemoryService.
PiperOrigin-RevId: 781554006
2025-07-10 08:55:18 -07:00
Google Team Member and Copybara-Service
37108be855
docs: Add AGENTS.md to provide relevant project context for the Gemini CLI
...
Including details on the ADK style guide and how to run specific tools.
PiperOrigin-RevId: 776827602
2025-06-27 21:00:54 -07:00
Google Team Member and Copybara-Service
dc43d518c9
feat: Support protected write in BigQuery execute_sql tool
...
This change adds a new enum value which the agent builder can pass in the `BigQueryToolConfig` to allow limited writes to the `execute_sql` tool.
PiperOrigin-RevId: 776661744
2025-06-27 11:44:30 -07:00
Google Team Member and Copybara-Service
6729edd08e
refactor: Rename the Google API based bigquery sample agent
...
This change renames the sample agent based on the Google API based tools to reflect the larger purpose and avoid confusion with the built-in BigQuery tools. In addition, it also renames the root agent in the BigQuery sample agent to "bigquery_agent"
PiperOrigin-RevId: 775655226
2025-06-25 06:05:32 -07:00
Google Team Member and Copybara-Service
9e473e0abd
fix: Include current turn context when include_contents='none'
...
The intended behavior for include_contents='none' is to:
- Exclude conversation history from previous turns
- Still include current turn context (user input, tool calls/responses within current turn)
https://google.github.io/adk-docs/agents/llm-agents/#managing-context-include_contents
This resolves https://github.com/google/adk-python/issues/1124
PiperOrigin-RevId: 775400036
2025-06-24 15:11:33 -07:00
Google Team Member and Copybara-Service
ed7a21e189
chore: Update google-genai package and related deps to latest
...
PiperOrigin-RevId: 775394737
2025-06-24 14:57:56 -07:00
Google Team Member and Copybara-Service
00cc8cd643
feat: Add Vertex Express mode compatibility for VertexAiSessionService
...
PiperOrigin-RevId: 775317848
2025-06-24 11:33:37 -07:00
Google Team Member and Copybara-Service
2f716ada7f
fix: Allow more credentials types for BigQuery tools
...
This change accepts the `google.auth.credentials.Credentials` type for `BigQueryCredentialsConfig`, so any subclass of that, including `google.oauth2.credentials.Credentials` would work to integrate with BigQuery service. This opens up a whole range of possibilities, such as using service account credentials to deploy an agent using these tools.
PiperOrigin-RevId: 773190440
2025-06-18 22:02:09 -07:00
Google Team Member and Copybara-Service
f9fa7841df
chore: add google-adk/{version} to bigquery user agent
...
PiperOrigin-RevId: 772703504
2025-06-17 18:31:34 -07:00
Google Team Member and Copybara-Service
6d174eba30
fix: Set explicit project in the BigQuery client
...
This change sets an explicit project id in the BigQuery client from the conversation context. Without this the client was trying to set a project from the environment's application default credentials and running into issues where application default credentials is not available.
PiperOrigin-RevId: 772695883
2025-06-17 18:04:41 -07:00
Google Team Member and Copybara-Service
1ae176ad2f
fix: update conversion between Celsius and Fahrenheit
...
#non-breaking
The correct conversion from 25 degrees Celsius is 77 degrees Fahrenheit. The previous value of 41 was wrong.
PiperOrigin-RevId: 772528757
2025-06-17 10:31:36 -07:00
Google Team Member and Copybara-Service
aafa80bd85
fix: stream in litellm + adk and add corresponding integration tests
...
Fixes https://github.com/google/adk-python/issues/1368
PiperOrigin-RevId: 772218385
2025-06-16 16:37:14 -07:00
Google Team Member and Copybara-Service
fef8778429
fix: liteLLM test failures
...
Fix liteLLM test failures for function call responses.
PiperOrigin-RevId: 772212629
2025-06-16 16:20:23 -07:00
Google Team Member and Copybara-Service
675faefc67
feat: Allow data_store_specs pass into ADK VAIS built-in tool
...
PiperOrigin-RevId: 772039465
2025-06-16 08:35:30 -07:00
Google Team Member and Copybara-Service
233fd20243
feat: Add import session API in the fast API
...
PiperOrigin-RevId: 771279971
2025-06-13 17:26:08 -07:00
Google Team Member and Copybara-Service
8e285874da
feat: Add integration tests for litellm with and without turn on add_function_to_prompt
...
Add experiments for https://github.com/google/adk-python/issues/1273
PiperOrigin-RevId: 771145715
2025-06-13 10:37:09 -07:00
Google Team Member and Copybara-Service
cb55970969
refactor: Simplify agent_tool.py
...
PiperOrigin-RevId: 771135917
2025-06-13 10:10:31 -07:00
Google Team Member and Copybara-Service
313f1b0913
chore: Add all missing direct deps to pyproject.toml
...
PiperOrigin-RevId: 770887371
2025-06-12 19:21:13 -07:00
Google Team Member and Copybara-Service
b2fc7740b3
fix: Support project-based gemini model path to use google_search_tool
...
PiperOrigin-RevId: 770858301
2025-06-12 17:30:45 -07:00
Google Team Member and Copybara-Service
2ff9b1f639
test: Add unit tests for execute_sql tool
...
This change introduces unit tests in which the behavior of the tool is asserted for various query types in various write modes through a mocked BigQuery client.
PiperOrigin-RevId: 770653117
2025-06-12 07:52:41 -07:00
Google Team Member and Copybara-Service
0a5cf45a75
feat: Implement GcsEvalSetResultsManager to handle storage of eval sets on GCS, and refactor eval set results manager
...
Eval results will be stored as json files under `gs://{bucket_name}/{app_name}/evals/eval_history/`
PiperOrigin-RevId: 770499242
2025-06-11 23:41:54 -07:00
Google Team Member and Copybara-Service
1551bd4f4d
feat: Re-factor some eval sets manager logic, and implement GcsEvalSetsManager to handle storage of eval sets on GCS
...
Eval sets will be stored as json files under `gs://{bucket_name}/{app_name}/evals/eval_sets/`
PiperOrigin-RevId: 770487129
2025-06-11 23:02:53 -07:00
Google Team Member and Copybara-Service
6c999caa41
feat: Introduce write protected mode to BigQuery tools
...
This allows to protect against any write operations (e.g. update or delete a table), useful for some agents that must only be used in a read-only mode, while the user may have write permissions.
PiperOrigin-RevId: 769803741
2025-06-10 14:37:24 -07:00
Google Team Member and Copybara-Service
8e438f2752
refactor: Extract out platform specific code like threading
...
PiperOrigin-RevId: 769655650
2025-06-10 09:05:56 -07:00
Google Team Member and Copybara-Service
3ae6ce10bc
docs: Update code example in tool declaration to reflect BigQuery artifact description
...
PiperOrigin-RevId: 769203265
2025-06-09 10:36:11 -07:00
Google Team Member and Copybara-Service
8488ff052f
feat: save and last run threshold and use it in next run evaluation
...
PiperOrigin-RevId: 768198603
2025-06-06 13:32:53 -07:00
Google Team Member and Copybara-Service
6ed635190c
feat: show the used metric in evaluation history
...
PiperOrigin-RevId: 767843229
2025-06-05 18:08:07 -07:00
Google Team Member and Copybara-Service
d1b058707e
feat: use threshold from the eval config dialog to run eval
...
PiperOrigin-RevId: 767829097
2025-06-05 17:20:20 -07:00
Google Team Member and Copybara-Service
54367dcc56
feat: support to customize timeout for mcpstdio connections
...
Fixes https://github.com/google/adk-python/issues/643
PiperOrigin-RevId: 767788472
2025-06-05 15:27:23 -07:00
Google Team Member and Copybara-Service
fe1de7b103
feat: Add url_context_tool
...
PiperOrigin-RevId: 767747328
2025-06-05 13:44:35 -07:00
Google Team Member and Copybara-Service
068df04bce
fix: import deprecated from typing_extensions
...
Fixes https://github.com/google/adk-python/issues/1125
and add it to pyproject.toml. This was added to typing_extensions in 4.5.0. I followed versioning guidance from https://typing-extensions.readthedocs.io/en/latest/index.html#versioning-and-backwards-compatibility .
PiperOrigin-RevId: 767317467
2025-06-04 15:51:43 -07:00
Google Team Member and Copybara-Service
86e15cab89
chore: Make ArtifactService transparent to AgentTools
...
PiperOrigin-RevId: 767225493
2025-06-04 11:35:49 -07:00
Google Team Member and Copybara-Service
54ed031d1a
feat: support None as return type, such as def func() -> None:
...
None:
PiperOrigin-RevId: 767204150
2025-06-04 10:43:35 -07:00
Google Team Member and Copybara-Service
98a635afee
feat: set the max width and height of view image dialog to be 90%
...
PiperOrigin-RevId: 766973033
2025-06-03 22:17:26 -07:00
Google Team Member and Copybara-Service
0127c3f9d8
chore: Minor improvement to session service
...
- Add missing override.
- Add warning to failed actions.
- Remove unused import.
- Remove unused fields.
- Add type checking.
PiperOrigin-RevId: 766913196
2025-06-03 18:57:53 -07:00
Google Team Member and Copybara-Service
ec8bc7387c
fix: ParallelAgent should only append to its immediate sub-agent, not transitive descendants
...
Restores automatic conversation history sharing for sequential/loop sub-agents.
PiperOrigin-RevId: 766742380
2025-06-03 16:55:51 -07:00
Google Team Member and Copybara-Service
16f7d98acf
feat: Update for anthropic models
...
Enable parallel tools for anthropic models, and add agent examples, and also added functional test for anthropic models.
PiperOrigin-RevId: 766703018
2025-06-03 16:55:34 -07:00
Google Team Member and Copybara-Service
44f507895e
chore: Make return_str more accurate in_build_function_declaration_log
...
PiperOrigin-RevId: 766526064
2025-06-03 16:55:25 -07:00
Google Team Member and Copybara-Service
af95dd2932
feat: Add sortByColumn functionality to List Operation
...
This change introduces the ability to sort results by a specific column in the List Operation.
PiperOrigin-RevId: 766468964
2025-06-03 16:55:17 -07:00
Google Team Member and Copybara-Service
273594215e
Add tooltip to the export session button.
...
PiperOrigin-RevId: 766334704
2025-06-02 14:05:25 -07:00
Google Team Member and Copybara-Service
1db601c4bd
Update pending event dialog style. Mock is not ready yet.
...
PiperOrigin-RevId: 766301924
2025-06-02 12:40:25 -07:00
Google Team Member and Copybara-Service
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
Google Team Member and Copybara-Service
11b504c808
chore: Add functions to convert between storage and event classes
...
PiperOrigin-RevId: 766280876
2025-06-02 11:44:46 -07:00
Google Team Member and Copybara-Service
63822c3fa8
Remove the gap between event holder and image.
...
PiperOrigin-RevId: 765402231
2025-05-30 17:52:26 -07:00
Google Team Member and Copybara-Service
95e33baf57
fix: add support for running python main function in UnsafeLocalCodeExecutor when the code has an if __name__ == "__main__" statement.
...
Fixes https://github.com/google/adk-python/issues/791
PiperOrigin-RevId: 765359512
2025-05-30 15:30:01 -07:00
Google Team Member and Copybara-Service
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 and Copybara-Service
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
Google Team Member and Copybara-Service
5c2ad327bf
Render HTML artifact in chat window.
...
PiperOrigin-RevId: 764942273
2025-05-29 17:02:36 -07:00
Google Team Member and Copybara-Service
1de5c340d8
Raise HTTPException when running evals in fast_api if google-adk[eval] is not installed.
...
PiperOrigin-RevId: 764798561
2025-05-29 11:48:22 -07:00
Google Team Member and Copybara-Service
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
Google Team Member and Copybara-Service
9bdd813be1
Fix typos in README for sample bigquery_agent and oauth_calendar_agent
...
PiperOrigin-RevId: 764777424
2025-05-29 11:48:01 -07:00
Google Team Member and Copybara-Service
ac52eab88e
ADK changes
...
PiperOrigin-RevId: 764776124
2025-05-29 11:47:55 -07:00
Google Team Member and Copybara-Service
1452dacfeb
Use media type in chat window. Remove isArtifactImage and isArtifactAudio reference.
...
PiperOrigin-RevId: 764563376
2025-05-28 22:15:28 -07:00
Google Team Member and Copybara-Service
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
Google Team Member and Copybara-Service
fc3e374c86
Add export to json button in the chat window.
...
PiperOrigin-RevId: 764504072
2025-05-28 18:37:12 -07:00
Google Team Member and Copybara-Service
3489bb598d
Minor typo fix.
...
PiperOrigin-RevId: 764468987
2025-05-28 16:41:40 -07:00
Google Team Member and Copybara-Service
958c18db2b
Add download object as json function in the download service.
...
PiperOrigin-RevId: 764421398
2025-05-28 14:37:47 -07:00
Google Team Member and Copybara-Service
83ba6419cd
Allow GOOGLE_AI to support optional args.
...
PiperOrigin-RevId: 764419789
2025-05-28 14:34:11 -07:00
Google Team Member and Copybara-Service
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
Google Team Member and Copybara-Service
b79400162d
Use audio player component in the artifact tab
...
PiperOrigin-RevId: 763875097
2025-05-27 11:23:04 -07:00
Google Team Member and Copybara-Service
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
Google Team Member and Copybara-Service
8076b2294f
ADK changes
...
PiperOrigin-RevId: 762573275
2025-05-23 14:41:27 -07:00
Google Team Member and Copybara-Service
717993b14f
Fix eval history cases can't be toggled
...
PiperOrigin-RevId: 762561171
2025-05-23 14:06:35 -07:00
Google Team Member and Copybara-Service
79681e3513
Write eval results locally from adk eval cli.
...
PiperOrigin-RevId: 762499588
2025-05-23 11:16:00 -07:00
Google Team Member and Copybara-Service
33921d524f
Add click event to the image in chat window.
...
PiperOrigin-RevId: 762473152
2025-05-23 10:12:15 -07:00
Google Team Member and Copybara-Service
30e10c87c5
feat:Integrate audio player component in the chat window.
...
PiperOrigin-RevId: 762105827
2025-05-22 13:37:37 -07:00
Google Team Member and Copybara-Service
4542af5650
Fix ollama issues with ChatCompletionAssistantToolCall
...
PiperOrigin-RevId: 761732316
2025-05-21 17:27:01 -07:00
Google Team Member and Copybara-Service
505d936007
The saved filename should include the original file name instead of a generated one.
...
PiperOrigin-RevId: 761727488
2025-05-21 17:09:47 -07:00
Google Team Member and Copybara-Service
1807e73472
ADK changes
...
PiperOrigin-RevId: 761640805
2025-05-21 13:13:50 -07:00
Google Team Member and Copybara-Service
9928cafe32
Refactor eval results reporting with Eval Set Results manager.
...
PiperOrigin-RevId: 761601525
2025-05-21 11:30:40 -07:00
Google Team Member and Copybara-Service
e060344e39
ADK changes
...
PiperOrigin-RevId: 761572168
2025-05-21 10:18:55 -07:00
Google Team Member and Copybara-Service
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 and Copybara-Service
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
Google Team Member and Copybara-Service
fe01103b74
ADK changes
...
PiperOrigin-RevId: 761251203
2025-05-20 15:23:12 -07:00
Google Team Member and Copybara-Service
b299241b56
ADK changes
...
PiperOrigin-RevId: 761197136
2025-05-20 13:01:05 -07:00
Google Team Member and Copybara-Service
68f0fca832
ADK changes
...
PiperOrigin-RevId: 761190844
2025-05-20 12:44:05 -07:00
Google Team Member and Copybara-Service
7d809eb9d9
Minor typo and grammar correction.
...
PiperOrigin-RevId: 761119061
2025-05-20 09:42:19 -07:00
Google Team Member and Copybara-Service
74b8841e62
ADK changes
...
PiperOrigin-RevId: 759809705
2025-05-16 17:11:03 -07:00
Google Team Member and Copybara-Service
93e8f020ed
ADK changes
...
PiperOrigin-RevId: 759775958
2025-05-16 15:24:40 -07:00
Google Team Member and Copybara-Service
801549f734
ADK changes
...
PiperOrigin-RevId: 759758769
2025-05-16 14:35:37 -07:00
Google Team Member and Copybara-Service
370eed1c7a
Update the adk-web-dev-ui-function-call screenshot.
...
PiperOrigin-RevId: 759677811
2025-05-16 10:57:24 -07:00
Google Team Member and Copybara-Service
6e0ea01fcb
Added support for dynamic auth in integration connector tool
...
PiperOrigin-RevId: 759676602
2025-05-16 10:53:53 -07:00
Google Team Member and Copybara-Service
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
Google Team Member and Copybara-Service
4d5760917d
chore: Add alias_generators to new Eval pydantic models
...
PiperOrigin-RevId: 759346603
2025-05-15 16:21:20 -07:00
Google Team Member and Copybara-Service
05917cabbd
ADK changes
...
PiperOrigin-RevId: 759259620
2025-05-15 12:46:44 -07:00
Google Team Member and Copybara-Service
1804ca39a6
feat! Update session service interface to be async.
...
Also keep the sync version in the InMemorySessionService as create_session_sync() as a temporary migration option.
PiperOrigin-RevId: 759252188
2025-05-15 12:24:13 -07:00
Google Team Member and Copybara-Service
dc90c91ed1
Fix typo in import
...
PiperOrigin-RevId: 758736571
2025-05-14 10:20:24 -07:00
Google Team Member and Copybara-Service
d6cf660506
chore: Migrate json field names to camelCase (4/4)
...
PiperOrigin-RevId: 758423361
2025-05-13 16:36:45 -07:00
Google Team Member and Copybara-Service
4def3f1bd3
chore: Migrate json field names to camelCase (3/n)
...
PiperOrigin-RevId: 758394880
2025-05-13 15:16:16 -07:00
Google Team Member and Copybara-Service
d740b93e03
feat: trigger in ApplicationIntegrationTools is changed to triggers and is a list of strings
...
PiperOrigin-RevId: 758034458
2025-05-12 21:13:27 -07:00
Google Team Member and Copybara-Service
27b229719e
chore: Migrate json field names to camelCase (2/n)
...
PiperOrigin-RevId: 757937550
2025-05-12 15:33:34 -07:00
Google Team Member and Copybara-Service
05a0c6b307
Add 'get_eval_report' and 'list_eval_reports' endpoints.
...
PiperOrigin-RevId: 757936497
2025-05-12 15:30:53 -07:00
Google Team Member and Copybara-Service
660c2efa4d
Define EvalReport data model.
...
PiperOrigin-RevId: 757933585
2025-05-12 15:22:57 -07:00
Google Team Member and Copybara-Service
993f9971bb
Add new GeminiCodeExecutor to code_executors/ folder.
...
PiperOrigin-RevId: 757895291
2025-05-12 13:44:17 -07:00
Google Team Member and Copybara-Service
f15f64af0f
chore: Migrate json field names to camelCase (1/n)
...
PiperOrigin-RevId: 757832114
2025-05-12 10:59:35 -07:00
Google Team Member and Copybara-Service
9a8c77e04a
Added filterClause in Update and Delete Request
...
PiperOrigin-RevId: 757013222
2025-05-09 20:50:36 -07:00
Google Team Member and Copybara-Service
2a0524692b
feat: Typo fixes in a few files.
...
PiperOrigin-RevId: 756921945
2025-05-09 15:10:23 -07:00
Google Team Member and Copybara-Service
a61d20e3df
feat: Add --session_id option to adk run:
...
--session_id : The session ID to save the session to on exit when --save_session is set to true. User will be prompted to enter a session ID if not set.
PiperOrigin-RevId: 756335619
2025-05-08 09:07:18 -07:00
Google Team Member and Copybara-Service
7f76af4d76
feat: trigger in ApplicationIntegrationTools is changed to triggers and is a list of strings
...
PiperOrigin-RevId: 756111287
2025-05-07 20:04:47 -07:00