Fix null Event ID in adk_request_confirmation events#888
Fix null Event ID in adk_request_confirmation events#888YuqiGuo105 wants to merge 1 commit intogoogle:mainfrom
Conversation
Fixes google#871 Events generated for tool confirmation requests (adk_request_confirmation) were being created with null IDs because the generateRequestConfirmationEvent() method was missing the .id(Event.generateEventId()) call in the Event builder. This commit: - Adds .id(Event.generateEventId()) to generateRequestConfirmationEvent() in Functions.java to ensure all confirmation request events have non-null UUIDs - Adds regression test generateRequestConfirmationEvent_generatesNonNullEventId() to FunctionsTest.java to verify the fix
Summary of ChangesHello @YuqiGuo105, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical bug where event IDs for tool confirmation requests were not being generated, leading to null IDs. The fix involves explicitly adding ID generation to the event builder for these specific events. Additionally, a new regression test has been introduced to ensure the correct behavior and prevent the reintroduction of this bug. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request effectively resolves a bug where adk_request_confirmation events were generated with null IDs. The fix, which involves adding .id(Event.generateEventId()) in Functions.java, is correct and directly addresses the issue. The inclusion of a new regression test in FunctionsTest.java is a great addition, ensuring this issue does not reoccur. The changes are well-implemented and adhere to the project's coding standards. The pull request is ready for merging.
Fixes #871
Events generated for tool confirmation requests (adk_request_confirmation) were being created with null IDs because the generateRequestConfirmationEvent() method was missing the .id(Event.generateEventId()) call in the Event builder.
This commit: