Skip to content

chore(helpers): expose new proto_helpers in __init__.py#1017

Open
martimfasantos wants to merge 1 commit intoa2aproject:mainfrom
martimfasantos:feat/expose-proto-helpers-init
Open

chore(helpers): expose new proto_helpers in __init__.py#1017
martimfasantos wants to merge 1 commit intoa2aproject:mainfrom
martimfasantos:feat/expose-proto-helpers-init

Conversation

@martimfasantos
Copy link
Copy Markdown
Contributor

Summary

  • Re-exports the non-text Part, Message, and Artifact helpers (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) from a2a.helpers.__init__ so they are accessible via from a2a.helpers import ....
  • These functions were added to proto_helpers.py in feat(helpers): add non-text Part, Message, and Artifact helpers #1004 but were not included in the package's public API.

Changes

  • Updated src/a2a/helpers/__init__.py to import and add the 10 new helpers to __all__.

Testing

  • All mandatory checks pass: ruff, mypy, pyright, pytest (1675 passed).

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 ...`.
@martimfasantos martimfasantos requested a review from a team as a code owner April 24, 2026 16:56
@github-actions
Copy link
Copy Markdown

🧪 Code Coverage (vs main)

⬇️ Download Full Report

No coverage changes.

Generated by coverage-comment.yml

Copy link
Copy Markdown
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 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.

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.

1 participant