chore(helpers): expose new proto_helpers in __init__.py#1017
Open
martimfasantos wants to merge 1 commit intoa2aproject:mainfrom
Open
chore(helpers): expose new proto_helpers in __init__.py#1017martimfasantos wants to merge 1 commit intoa2aproject:mainfrom
martimfasantos wants to merge 1 commit intoa2aproject:mainfrom
Conversation
The non-text Part, Message, and Artifact helpers added in a2aproject#1004 were not re-exported from the a2a.helpers package. This adds them to the import list and __all__ so they are accessible via `from a2a.helpers import ...`.
🧪 Code Coverage (vs
|
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the src/a2a/helpers/init.py file to include and export a variety of new helper functions for creating data, raw, text, and URL-based artifacts, messages, and parts. These changes expand the utility of the A2A SDK for developers. I have no feedback to provide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
new_data_part,new_raw_part,new_url_part,new_text_part,new_data_message,new_raw_message,new_url_message,new_data_artifact,new_raw_artifact,new_url_artifact) froma2a.helpers.__init__so they are accessible viafrom a2a.helpers import ....proto_helpers.pyin feat(helpers): add non-text Part, Message, and Artifact helpers #1004 but were not included in the package's public API.Changes
src/a2a/helpers/__init__.pyto import and add the 10 new helpers to__all__.Testing
ruff,mypy,pyright,pytest(1675 passed).