Josh Soref and Copybara-Service
d672349ddf
chore: Fix spelling in tests
...
Merge https://github.com/google/adk-python/pull/3402
This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling )
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.
### Testing Plan
The misspellings have been reported at https://github.com/jsoref/adk-python/actions/runs/19056081305/attempts/1#summary-54426435973
The action reports that the changes in this PR would make it happy: https://github.com/jsoref/adk-python/actions/runs/19056081446/attempts/1#summary-54426436321
**Unit Tests:**
- [ ] I have added or updated unit tests for my change.
- [ ] All unit tests pass locally.
_Please include a summary of passed `pytest` results._
**Manual End-to-End (E2E) Tests:**
_Please provide instructions on how to manually test your changes, including any
necessary setup or configuration. Please provide logs or screenshots to help
reviewers better understand the fix._
### Checklist
- [x] I have read the [CONTRIBUTING.md](https://github.com/google/adk-python/blob/main/CONTRIBUTING.md ) document.
- [x] I have performed a self-review of my own code.
- [ ] I have commented my code, particularly in hard-to-understand areas.
- [ ] I have added tests that prove my fix is effective or that my feature works.
- [ ] New and existing unit tests pass locally with my changes.
- [ ] I have manually tested my changes end-to-end.
- [ ] Any dependent changes have been merged and published in downstream modules.
### Additional context
- https://github.com/google/adk-python/pull/3382#issuecomment-3488654110
Co-authored-by: Liang Wu <wuliang@google.com >
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/3402 from jsoref:spelling-tests 3cf0439d0584e4557179c25596aadf3b5b7c3fa8
PiperOrigin-RevId: 829035089
2025-11-06 11:21:59 -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
Parham MohammadAlizadeh and Copybara-Service
ed37e343f0
feat(tools): support additional headers for google api toolset #non-breaking
...
Merge https://github.com/google/adk-python/pull/3194
Allow Google API toolsets to accept optional per-request headers
#3105
## Testing Plan
### Unit Tests
- ✅ Added `test_init_with_additional_headers` in `test_google_api_tool.py` to verify headers are passed to RestApiTool
- ✅ Added `test_prepare_request_params_merges_default_headers` in `test_rest_api_tool.py` to verify custom headers are merged into requests
- ✅ Added `test_prepare_request_params_preserves_existing_headers` in `test_rest_api_tool.py` to verify critical headers (Content-Type, User-Agent) are not overridden by additional_headers
- ✅ Updated `test_init` and `test_get_tools` in `test_google_api_toolset.py` to verify the parameter is properly stored and passed through
### Manual Testing
Tested with Google Ads API scenario (the original use case from issue #3105 ):
```python
import os
from google.adk.tools.google_api_tool import GoogleApiToolset
# Create toolset with developer-token header required by Google Ads API
google_ads_toolset = GoogleApiToolset(
client_id=os.environ["CLIENT_ID"],
client_secret=os.environ["CLIENT_SECRET"],
api_name="googleads",
api_version="v21",
additional_headers={"developer-token": os.environ["GOOGLE_ADS_DEV_TOKEN"]}
)
# Verify headers are included in API requests
tools = await google_ads_toolset.get_tools()
# Successfully made requests with the developer-token header
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/3194 from Prhmma:feature/google-api-toolset-additional-headers-3105 e10489e82bfde5cf2bfd3f1bced3e1f5cea1f8b2
PiperOrigin-RevId: 822273582
2025-10-21 14:16:37 -07:00
Xuan Yang and Copybara-Service
6db096a3f4
chore: remove unsupported 'type': 'unknown' in test_common.py for fastapi 0.117.1
...
PiperOrigin-RevId: 810673476
2025-09-23 19:44:49 -07:00
hsuyuming and Copybara-Service
9db5d9a3e8
fix: Unable to acquire impersonated credentials
...
Merge https://github.com/google/adk-python/pull/2003
add scope "https://www.googleapis.com/auth/cloud-platform " within google.auth.default
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/2003 from hsuyuming:fix/issue_2001_support_impersonated_credential 8874a367273aca98460f7f250bfc4690f883ebbe
PiperOrigin-RevId: 788656025
2025-07-29 16:42:25 -07:00
Sean Zhou
6f016609e8
fix: support path level parameters for open_api_spec_parser
...
autoformat the changes
2025-07-17 18:09:40 -07:00
Hangfei Lin and GitHub
bb1b1c695f
Merge branch 'main' into fix/missing-path-level-parameters
2025-07-17 17:46:27 -07:00
Xiang (Sean) Zhou and Copybara-Service
9a207cb832
refactor: Refactor oauth2_credential_exchanger to exchanger and refresher separately
...
PiperOrigin-RevId: 772979993
2025-06-18 10:46:39 -07:00
Xiang (Sean) Zhou and Copybara-Service
177980106b
feat: Support refresh access token automatically for rest_api_tool
...
1. let auth_handler.py to utilize the oauth2 credential fetcher to exchange token
2. restructure tool_auth_handler.py to support refresh token
PiperOrigin-RevId: 770901469
2025-06-12 20:07:43 -07:00
Xiang (Sean) Zhou and Copybara-Service
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
Hangfei Lin and GitHub
aabfde56e4
Merge branch 'main' into fix/missing-path-level-parameters
2025-05-30 11:33:24 -07:00
Xiang (Sean) Zhou and Copybara-Service
ff8a3c9b43
chore: reformat the codes using autoformat.sh
...
PiperOrigin-RevId: 762004002
2025-05-22 09:43:54 -07:00
Jeffrey Mak and GitHub
3263a97999
Merge branch 'main' into fix/missing-path-level-parameters
2025-05-14 10:57:06 -04:00
Xiang (Sean) Zhou and Copybara-Service
9647426500
refactor: refactor openapi toolset and tool parser to hide non public field
...
PiperOrigin-RevId: 758436303
2025-05-13 17:14:20 -07:00
kmak
de238eeab1
fix: unittest for path-level parameters case
2025-05-09 19:20:59 -04:00
Jeffrey Mak and GitHub
84579cab56
Merge branch 'main' into fix/missing-path-level-parameters
2025-05-04 08:51:14 -04:00
kmak
34b001292a
fix: support path level parameters for open_api_spec_parser
2025-05-04 08:50:02 -04:00
Hangfei Lin and Copybara-Service
a7b4c98253
fix: Handle the case when parameter.required is None and fix tests
...
PiperOrigin-RevId: 754519323
2025-05-03 22:39:28 -07:00
Bart and Copybara-Service
ad4226b3d8
Copybara import of the project:
...
--
1ca16aba5b7b869afa8e0a0cddaea539acd737f5 by bart.lee(이철민)/kakao <bart.lee@kakaocorp.com >:
chore: Improves session update time validation message
Enhances the error message when a session's last update time is later than the storage update time.
This provides better readability by formatting the timestamps in the error message.
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/446 from kakao-bart-lee:main a2a0cff036429b61bd7cf1600fc4c2c0cf50089d
PiperOrigin-RevId: 754452381
2025-05-03 17:07:53 -07:00
Hangfei Lin and GitHub
81aa11f070
fix: Update test_operation_parser.py
2025-05-03 14:50:30 -07:00
Hangfei Lin and GitHub
a6b3c23f74
fix: fix typo in function name in unit tests(test_rest_api_tool.py)
...
fix: fix typo in function name in unit tests
2025-05-03 14:25:36 -07:00
Xiang (Sean) Zhou and Copybara-Service
5846b24b71
set param required tag to False by default
...
PiperOrigin-RevId: 754382785
2025-05-03 10:31:38 -07:00
c74879d849
fix: Correct various typos in CHANGELOG.md and test_rest_api_tool.py ( #498 )
...
Corrected the following spelling errors:
- CHANGELOG.md: "impprovements" -> "improvements"
- test_rest_api_tool.py: "def sample_endpiont:" -> "def sample_endpoint:"
- Updated all the references of sample_endpiont -> sample_endpoint as well.
- CHANGELOG.md: "credentails" -> "credentials"
- CHANGELOG.md: "auido" -> "audio"
Co-authored-by: Hangfei Lin <hangfei@google.com >
2025-05-02 23:12:00 -07:00
Hangfei Lin and Copybara-Service
60d23c028f
ADK changes
...
PiperOrigin-RevId: 754193272
2025-05-02 17:53:31 -07:00
Nilesh and Copybara-Service
eff5903175
Copybara import of the project:
...
--
6c3b8b5fa2eb9805c6f723f560e5526649dd61f0 by knileshh <neutron_stays@protonmail.com >:
fix: Correct various typos in CHANGELOG.md and test_rest_api_tool.py
Corrected the following spelling errors:
- CHANGELOG.md: "impprovements" -> "improvements"
- test_rest_api_tool.py: "def sample_endpiont:" -> "def sample_endpoint:"
- CHANGELOG.md: "credentails" -> "credentials"
- CHANGELOG.md: "auido" -> "audio"
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/498 from knileshh:main caadbdbd78e3dc757b494f3f4d45991e88eac30d
PiperOrigin-RevId: 754189420
2025-05-02 17:36:16 -07:00