Google Team Member and Copybara-Service
871571d997
feat: Mark Vertex calls made from non-gemini models
...
PiperOrigin-RevId: 848159669
2025-12-23 06:50:46 -08:00
Google Team Member and Copybara-Service
0f5b677c53
feat: Mark Vertex calls made from non-gemini models
...
PiperOrigin-RevId: 848140103
2025-12-23 05:37:36 -08:00
Google Team Member and Copybara-Service
a9b853fe36
fix: ApigeeLLM support for Built-in tools like GoogleSearch, BuiltInCodeExecutor when calling Gemini models through Apigee
...
PiperOrigin-RevId: 840459113
2025-12-04 16:57:30 -08:00
Ankur Sharma and Copybara-Service
2a1a41d3ec
chore: Adding Eval Client label to model calls made during evals
...
Co-authored-by: Ankur Sharma <ankusharma@google.com >
PiperOrigin-RevId: 838857867
2025-12-01 11:20:46 -08:00
Xuan Yang and Copybara-Service
6a94af24bf
chore: Disable SetModelResponseTool workaround for Vertex AI Gemini 2+ models
...
Gemini models now [support Function calling being used together with structured output on Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling#structured-output-bp ).
Co-authored-by: Xuan Yang <xygoogle@google.com >
PiperOrigin-RevId: 827709903
2025-11-03 17:12:01 -08:00
Josh Soref and Copybara-Service
aa1233608a
chore: Fix spelling
...
Merge https://github.com/google/adk-python/pull/2447
This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling )
The misspellings have been reported at https://github.com/jsoref/adk-python/actions/runs/16840838898/attempts/1#summary-47711379253
The action reports that the changes in this PR would make it happy: https://github.com/jsoref/adk-python/actions/runs/16840839269/attempts/1#summary-47711380479
Note: while I use tooling to identify errors, the tooling doesn't _actually_ provide the corrections, I'm picking them on my own. I'm a human, and I may make mistakes.
I've included a couple of changes to make CI happy. Personally, I object to CI being in a state of "random drive by person who adds a blank line in the middle of a file must fix all the preexisting bugs in the file", but that appears to be the state for this repository.
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/2447 from jsoref:spelling d85398e7fd154d124d477c6af6181481a01f34e0
PiperOrigin-RevId: 827629615
2025-11-03 13:33:53 -08:00
Google Team Member and Copybara-Service
8dff85099d
fix: Support models slash prefix in model name extraction
...
Support "models/" prefix in model name extraction
PiperOrigin-RevId: 827557443
2025-11-03 10:32:49 -08:00
Google Team Member and Copybara-Service
546c2a6816
feat: Remove custom polling logic for Vertex AI Session Service since LRO polling is supported in express mode
...
PiperOrigin-RevId: 826226731
2025-10-30 16:13:43 -07:00
Google Team Member and Copybara-Service
9014a849ea
feat: Add api key argument to Vertex Session and Memory services for Express Mode support
...
We also change VertexAiSessionService and VertexAiMemoryBankService to both use keyword arguments for project, location, agent engine id, and express mode api key
PiperOrigin-RevId: 825719331
2025-10-29 14:54:12 -07:00
Ayush Agrawal and Copybara-Service
2f72ceb49b
chore: Do not treat FinishReason.STOP as error case for LLM responses containing candidates with empty contents
...
Fixes #2905
PiperOrigin-RevId: 825263302
2025-10-28 16:54:50 -07:00
Wei Sun (Jack) and Copybara-Service
61adfcd69a
refactor: Adds a util method to check the enablement of any env variable
...
PiperOrigin-RevId: 825199260
2025-10-28 14:18:45 -07:00
Wei Sun (Jack) and Copybara-Service
0df67599c0
chore: Checks gemini version for 2 and above for gemini-builtin tools
...
PiperOrigin-RevId: 820848897
2025-10-17 15:27:47 -07:00
Xiang (Sean) Zhou and Copybara-Service
9e0b1fb62b
fix: Create context cache only when prefix matches with previous request
...
PiperOrigin-RevId: 817468275
2025-10-09 21:19:28 -07:00
Xiang (Sean) Zhou and Copybara-Service
c66245a3b8
feat: support context caching
...
1. add a context cache config in app level which will apply to all agents in the app
2. pass on cache config through invocation context to llm_reqeust
3. store cache metadata in llm_response
4. lookup old cache metadata from latest event for reusing old cache
5. create new cache if old cache cannot be reused
PiperOrigin-RevId: 809158578
2025-09-19 13:17:02 -07:00
Wei Sun (Jack) and Copybara-Service
006a406f5b
chore: Allow outputting non-acsii without escape and excludes fields in the dumped yaml files in the yaml_utils.py
...
Also excludes `_adk_recordings_config` for `adk conformance create` command.
PiperOrigin-RevId: 808865049
2025-09-18 21:24:14 -07:00
Wei Sun (Jack) and Copybara-Service
91528890db
chore: Adds indent to YAML sequence by default for better visual readability
...
Both are valid YAML, just with indent, it's more visually friend to see the data structure hierarchy.
Before
```
items:
- item1
- item2
- item3
```
After
```
items:
- item1
- item2
- item3
```
PiperOrigin-RevId: 806117290
2025-09-11 21:59:20 -07:00
Xiang (Sean) Zhou and Copybara-Service
bb4cfdec12
fix: inject artifact into instructions
...
a. complain when artifact is None
b. inject None value as empty string instead of `None`
PiperOrigin-RevId: 800930613
2025-08-29 09:38:01 -07:00
Google Team Member and Copybara-Service
7975e8e196
refactor: Extract a utility for aggregating partial streaming responses and emitting LlmResponses for them as needed
...
PiperOrigin-RevId: 800521404
2025-08-28 10:29:14 -07:00
George Weale and Copybara-Service
4afc9b2f33
feat: Add env var to suppress experimental warnings
...
Checked with local wheel and worked as intended. The harness shows suppression works: 0 warnings for all true-like values.
This CL adds ADK_DISABLE_EXPERIMENTAL_WARNING to let the users to suppress warning messages from features decorated with @experimental.
Previously, using experimental features would always trigger a UserWarning. This change creates a way to disable these warnings, which can be good to stop flooding logs.
The warning is suppressed if ADK_DISABLE_EXPERIMENTAL_WARNING is set to a truthy value such as "true", "1", "yes", or "on" (case-insensitive).
Added unit tests to make sure:
Warning suppression for functions and classes when the env var is set.
Case-insensitivity and various truthy values for the env var.
Loading the env var from a .env file.
PiperOrigin-RevId: 796649404
2025-08-18 17:59:13 -07:00
Wei Sun (Jack) and Copybara-Service
1fd58cb363
chore(config): Creates yaml_utils.py in utils to allow adk dump yaml in the same style
...
PiperOrigin-RevId: 796531710
2025-08-18 12:34:09 -07:00
Xiang (Sean) Zhou and Copybara-Service
927c75f0ee
chore: Replace imports by importing from actual module instead of from package (__init__.py)
...
PiperOrigin-RevId: 786342250
2025-07-23 10:49:43 -07:00
Xiang (Sean) Zhou and Copybara-Service
a5d6f1e52e
fix: Support project-based gemini model path for BuiltInCodeExecutor and all built-in tools
...
This is to support model path like :
projects/265104255505/locations/us-central1/publishers/google/models/gemini-2.0-flash-001"
PiperOrigin-RevId: 783413351
2025-07-15 11:41:37 -07:00
Xiang (Sean) Zhou and Copybara-Service
b51a1f45fd
chore: support @working_in_progress and @expremental without calling parameters
...
PiperOrigin-RevId: 771357728
2025-06-13 23:18:43 -07:00
Xiang (Sean) Zhou and Copybara-Service
8932106246
chore: Raise error when using features decorated by working_in_progress decorator
...
set environment variable ADK_ALLOW_WIP_FEATURES=true can bypass it.
working_in_progress features are not working. ADK users are not supposed to set this environment variable.
PiperOrigin-RevId: 771333335
2025-06-13 21:17:31 -07:00
Wei Sun (Jack) and Copybara-Service
088200072f
chore: Adds decorators to mark classes or fucntions as working_in_progress or experimental
...
User will see warning if they instantiate such class or call such functions.
PiperOrigin-RevId: 769413048
2025-06-09 20:23:36 -07:00