Conversation
Summary of ChangesHello, 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 enhances the Highlights
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 introduces an optional AgentExecutionCleaner interface, allowing an AgentExecutor to perform cleanup actions after an execution completes, which is valuable for managing resources in distributed environments. However, the current implementation lacks panic protection when invoking the Cleanup callback, which could lead to a Denial of Service if a cleanup implementation panics. It is recommended to add a recover block to handle such cases gracefully. Additionally, there is a minor suggestion to improve the clarity of a comment on the new interface.
🤖 I have created a release *beep* *boop* --- ## [2.0.1](v2.0.0...v2.0.1) (2026-03-24) ### Features * **a2acompat:** add HTTP+JSON REST support to a2av0 compat layer ([#280](#280)) ([bac00e7](bac00e7)) * agent executor cleaner ([#276](#276)) ([9c95980](9c95980)) ### Bug Fixes * ensure correct concurrent cancellation results ([#287](#287)) ([d0f8981](d0f8981)), closes [#245](#245) ### Documentation * **a2aclient:** add Example_* test functions for pkg.go.dev documentation ([#263](#263)) ([f8dae97](f8dae97)) * update diagrams, docs and instructions ([#289](#289)) ([ed33c7a](ed33c7a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Add an optional callback AgentExecutor can implement to make it possible to run some actions after an execution was finished with either success or an error.
This callback is useful in a distributed environment when we can't place the logic into Cancel because it might be running concurrently with an active execution.
Release-As: 2.0.1