fix(tools): preserve const schemas for Gemini#5656
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Hi @he-yufeng , Thank you for your contribution! It appears you haven't yet signed the Contributor License Agreement (CLA). Please visit https://cla.developers.google.com/ to complete the signing process. Once the CLA is signed, we'll be able to proceed with the review of your PR. Thank you! |
fb69943 to
521bbf4
Compare
|
Thanks for the reminder. The CLA has been signed, and I rebased the branch onto the latest main. The cla/google and header-check checks are now passing. |
Summary
constin the Gemini schema conversion pathconstto a single-value enum before building the GeminiSchema, since the target type has no nativeconstfieldFixes #5653
To verify
uv run --extra test python -m pytest tests\unittests\tools\test_gemini_schema_util.py -quv run --extra dev pyink --check src\google\adk\tools\_gemini_schema_util.py tests\unittests\tools\test_gemini_schema_util.pyuv run python -m py_compile src\google\adk\tools\_gemini_schema_util.py tests\unittests\tools\test_gemini_schema_util.pygit diff --check