Function Declaration error caused by None, returning schema error - O…#5557
Function Declaration error caused by None, returning schema error - O…#5557Chris-Jones-Qodea wants to merge 5 commits into
Conversation
…ptional usage fix
|
Response from ADK Triaging Agent Hello @Chris-Jones-Qodea, thank you for creating this PR! This PR is a bug fix, could you please provide logs or screenshot after the fix is applied? This information will help reviewers to review your PR more efficiently. Thanks! |
|
Hi @Chris-Jones-Qodea , Thank you for your contribution! We appreciate you taking the time to submit this pull request. Please fix formatting errors by running autoformat.sh |
|
Thanks for looking into this! tools/bigquery/search_tool.py has since moved to integrations/bigquery/search_tool.py (the old path is now just a deprecation shim), and the relocated search_catalog already declares those parameters as optionals, so there's nothing left to change here. Closing as already resolved; also a heads-up that the linked #3228 is about .env loading and unrelated to this change. |
…ptional usage fix
Please ensure you have read the contribution guide before creating a pull request.
Link to Issue or Description of Change
1. Link to an existing issue (if applicable):
.envloading #3228Problem:
Unable to submit request because search_catalog functionDeclaration parameters.project_ids_filter schema didn't specify the schema type field.
None attributes fail on tool registration.
Solution:
Use optionals, for example:
Optional[list[str]] = None,Testing Plan
Unit Tests:
Manual End-to-End (E2E) Tests:
Working
Checklist
Additional context
Add any other context or screenshots about the feature request here.