Skip to content

Conversation

@ahoblitz
Copy link
Contributor

Description

Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Follow the CONTRIBUTING Guide.
  • Make your Pull Request title in the https://www.conventionalcommits.org/ specification.
    • Important Prefixes for release-please:
      • fix: which represents bug fixes, and correlates to a SemVer patch.
      • feat: represents a new feature, and correlates to a SemVer minor.
      • feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major.
  • Ensure the tests and linter pass (Run bash scripts/format.sh from the repository root to format)
  • Appropriate docs were updated (if necessary)

@ahoblitz ahoblitz changed the title add docs to util helper doc/add docs to util helper Aug 22, 2025
@ahoblitz ahoblitz changed the title doc/add docs to util helper fix/add docs to util helper Aug 22, 2025
@ahoblitz ahoblitz changed the title fix/add docs to util helper docs/add docs to util helper Aug 22, 2025
@ahoblitz ahoblitz changed the title docs/add docs to util helper docs: add docs to util helper Aug 22, 2025
@ahoblitz ahoblitz marked this pull request as ready for review August 22, 2025 00:08
@ahoblitz ahoblitz requested a review from a team as a code owner August 22, 2025 00:08
@holtskinner
Copy link
Member

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds documentation, including examples, to the validate and validate_async_generator helper functions. While adding documentation is a valuable contribution, the provided examples, which are formatted as doctests, have several issues that would prevent them from running successfully. These include dependencies on undefined types, incomplete object initializations, calls to undefined methods, and incorrect formatting for exception testing. My review provides detailed feedback and corrected code suggestions to ensure the doctests are valid, self-contained, and robust. This will improve the quality and reliability of the documentation for future users.

@holtskinner
Copy link
Member

/gemini review

@holtskinner holtskinner changed the title docs: add docs to util helper docs: add example docs for @validate and @validate_async_generator Sep 3, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds valuable documentation and examples for the validate and validate_async_generator utility helpers. The new docstrings significantly improve the developer experience by demonstrating usage patterns. My review includes suggestions to make the doctest examples more complete and robust by ensuring they are runnable and cover both success and failure scenarios, which will further enhance their utility.

@holtskinner holtskinner merged commit 18289eb into a2aproject:main Sep 8, 2025
5 checks passed
holtskinner pushed a commit that referenced this pull request Sep 8, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.3.5](v0.3.4...v0.3.5)
(2025-09-08)


### Bug Fixes

* Prevent client disconnect from stopping task execution
([#440](#440))
([58b4c81](58b4c81)),
closes [#296](#296)
* **proto:** Adds metadata field to A2A DataPart proto
([#455](#455))
([6d0ef59](6d0ef59))


### Documentation

* add example docs for `[@Validate](https://github.com/validate)` and
`[@Validate](https://github.com/validate)_async_generator`
([#422](#422))
([18289eb](18289eb))
* Restructure README
([9758f78](9758f78))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants