Google Team Member and Copybara-Service
c8059428a2
chore: add contributing spanner sample
...
PiperOrigin-RevId: 795154839
2025-08-14 12:41:28 -07:00
Google Team Member and Copybara-Service
c52f956433
chore: Update comment to reference "Streamable HTTP Client"
...
Corrects a typo in the `StreamableHTTPConnectionParams` docstring, changing "SSE" to "Streamable HTTP" to accurately reflect the referenced client.
PiperOrigin-RevId: 794424727
2025-08-12 23:45:23 -07:00
Google Team Member and Copybara-Service
114db93d70
ADK changes
...
PiperOrigin-RevId: 794403729
2025-08-12 22:29:23 -07:00
Google Team Member and Copybara-Service
7e0880869b
feat: Expose print_detailed_results param to AgentEvaluator.evaluate
...
Currently `print_detailed_results` is available only in `AgentEvaluator.evaluate_eval_set` while the adk-samples data science agent uses `AgentEvaluator.evaluate` https://github.com/google/adk-samples/blob/c230c3ddc16a3f9fc7edff409b567bdd65ebd9da/python/agents/data-science/eval/test_eval.py#L32 .
PiperOrigin-RevId: 794262781
2025-08-12 14:07:17 -07:00
Google Team Member and Copybara-Service
1fc8d20ae8
feat: add Spanner first-party toolset (breaking change to BigQueryTool, consolidating into generic GoogleTool)
...
Spanner toolset support basic operations to interact with Spanner table metadata and query results.
Consolidate BigQueryTool into generic GoogleTool, so that BigQueryToolset and SpannerToolset can share.
PiperOrigin-RevId: 794259782
2025-08-12 13:59:37 -07:00
Google Team Member and Copybara-Service
10e3dfab1a
feat: remove load_dotenv() in feature_decorator.py
...
PiperOrigin-RevId: 794249376
2025-08-12 13:35:49 -07:00
Google Team Member and Copybara-Service
944e39ec2a
chore: allow implementations to skip defining a close method on Toolset
...
PiperOrigin-RevId: 792760747
2025-08-08 14:22:17 -07:00
Google Team Member and Copybara-Service
98a5730115
fix: incorrect logic in LlmRequest.append_tools and make BaseTool to call it
...
PiperOrigin-RevId: 792518526
2025-08-08 01:29:47 -07:00
Google Team Member and Copybara-Service
25b2806301
fix: accommodate for open api schema that do not have any 'properties'
...
PiperOrigin-RevId: 792028582
2025-08-07 00:30:50 -07:00
Google Team Member and Copybara-Service
54cc849de7
feat: Add metadata field to ADK BaseTool
...
PiperOrigin-RevId: 791790030
2025-08-06 12:11:42 -07:00
Google Team Member and Copybara-Service
97318bcd19
fix: correct type annotation
...
Overridden `supported_models` should be a `classmethod` rather than a `staticmethod`.
PiperOrigin-RevId: 790989895
2025-08-04 19:25:52 -07:00
Google Team Member and Copybara-Service
bead607364
chore: Hide the ask_data_insights tool until the API is publicly available
...
PiperOrigin-RevId: 789806535
2025-08-01 10:17:13 -07:00
Google Team Member and Copybara-Service
16a15c8709
docs: fix typos
...
PiperOrigin-RevId: 789660536
2025-08-01 01:31:41 -07:00
Google Team Member and Copybara-Service
7c9b0a2567
feat: add chat first-party tool
...
This tool answers questions about structured data in BigQuery using natural language.
PiperOrigin-RevId: 789000987
2025-07-30 12:35:20 -07:00
Google Team Member and Copybara-Service
bf72426af2
fix: runner was expecting Event object instead of Content object when using early exist feature
...
PiperOrigin-RevId: 788516645
2025-07-29 10:41:19 -07:00
Google Team Member and Copybara-Service
282d67f253
fix: import cli's artifact dependencies directly
...
PiperOrigin-RevId: 788488501
2025-07-29 09:34:19 -07:00
Google Team Member and Copybara-Service
16e8419e32
fix: restore bigquery sample agent to runnable form
...
A previous change of import paths had rendered the agent not-runnable out of the box. This change fixes that.
PiperOrigin-RevId: 788221276
2025-07-28 17:31:50 -07:00
Google Team Member and Copybara-Service
bfc203a92f
feat: modularize fast_api.py to allow simpler construction of API Server
...
PiperOrigin-RevId: 786646546
2025-07-24 04:03:19 -07:00
Google Team Member and Copybara-Service
13ff009d34
fix: Handle non-json-serializable values in the execute_sql tool
...
This change takes cares of SQL results containing values that are not json serializable (e.g. datetime, bignumeric) by converting them to their string representation.
PiperOrigin-RevId: 785719997
2025-07-21 23:17:06 -07:00
Google Team Member and Copybara-Service
d2461ecccb
refactor: only import some module when needed and add follow_symlink=True when serve static files
...
PiperOrigin-RevId: 784956132
2025-07-19 12:54:05 -07:00
Google Team Member and Copybara-Service
b89aac9eb3
ADK changes
...
PiperOrigin-RevId: 783804355
2025-07-16 10:17:19 -07:00
Google Team Member and Copybara-Service
3f9f773d9b
feat: Add ability to send state change with message
...
PiperOrigin-RevId: 783589708
2025-07-15 21:17:04 -07:00
Google Team Member and Copybara-Service
a50419961c
fix: Process ListEvents response correctly when getSession is called
...
When get session is being called on a session with more than 1 page of events (100+), the response of the subsequent listevents calls fails due to missing parsing logic. This change fixes the processing of the listevents responses.
PiperOrigin-RevId: 783166959
2025-07-14 21:21:51 -07:00
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