Skip to content

Conversation

@thiagosalvatore
Copy link
Contributor

@thiagosalvatore thiagosalvatore commented Jul 28, 2025

This PR closes issue #2202

ADK was not parsing the required attribute when using LiteLLM, letting the LLM decide what is required vs not, not respecting function definitions.

Test Plan

There's a fork of adk-python that is being running live for over 2 weeks in our production environment with millions of requests per day.

Below you can find a screenshot of the unit tests passing. I've also added one change to the test cases to cover this scenario

image

@thiagosalvatore
Copy link
Contributor Author

thiagosalvatore commented Jul 31, 2025

bump - @hangfei - can we get some eyes into this PR?

@xuanyang15
Copy link
Collaborator

@thiagosalvatore Thanks for creating this PR? Could you please provide a test plan for this change? More details can be found in the contributing guide.

@thiagosalvatore
Copy link
Contributor Author

thiagosalvatore commented Aug 19, 2025

@xuanyang15 sure, I can do this. Just note that this is live for over 2 weeks in our fork because it wasn't approved/reviewed until today.

PR updated with the test run

@xuanyang15 xuanyang15 self-requested a review August 20, 2025 00:23
@xuanyang15
Copy link
Collaborator

Thank you @thiagosalvatore! Could you please fix the formatting issue? You can use the ./autoformat.sh mentioned in the contributing guide.

@thiagosalvatore
Copy link
Contributor Author

Thank you @thiagosalvatore! Could you please fix the formatting issue? You can use the ./autoformat.sh mentioned in the contributing guide.

fixed @xuanyang15

@xuanyang15 xuanyang15 added the ready to pull [Status] This PR is ready to be importing back to Google label Aug 20, 2025
copybara-service bot pushed a commit that referenced this pull request Aug 20, 2025
Merge #2212

This PR closes issue #2202

ADK was not parsing the required attribute when using LiteLLM, letting the LLM decide what is required vs not, not respecting function definitions.

## Test Plan

There's a fork of adk-python that is being running live for over 2 weeks in our production environment with millions of requests per day.

Below you can find a screenshot of the unit tests passing. I've also added one change to the test cases to cover this scenario

<img width="1904" height="483" alt="image" src="https://github.com/user-attachments/assets/5a6eb069-63ae-45a3-baca-6b01543f56fb" />

COPYBARA_INTEGRATE_REVIEW=#2212 from thiagosalvatore:main 7de4037
PiperOrigin-RevId: 797393698
@xuanyang15 xuanyang15 closed this Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to pull [Status] This PR is ready to be importing back to Google

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants