Skip to content

Conversation

@ehsavoie
Copy link

  • Create A2AMethods interface with constants for all A2A protocol methods
  • Replace hardcoded method strings across all transport implementations
  • Update gRPC, JSONRPC, and REST transports to use centralized constants
  • Remove duplicate METHOD constants from individual request wrapper classes
  • Update all test files to use new method name constants
  • Clean up POM dependencies and update protobuf-maven-plugin to 4.0.3

This refactoring improves maintainability by having a single source of truth for method names and reduces the risk of typos or inconsistencies.

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 pass
  • Appropriate READMEs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

- Create A2AMethods interface with constants for all A2A protocol methods
- Replace hardcoded method strings across all transport implementations
- Update gRPC, JSONRPC, and REST transports to use centralized constants
- Remove duplicate METHOD constants from individual request wrapper classes
- Update all test files to use new method name constants
- Clean up POM dependencies and update protobuf-maven-plugin to 4.0.3

This refactoring improves maintainability by having a single source of truth
for method names and reduces the risk of typos or inconsistencies.

Signed-off-by: Emmanuel Hugonnet <[email protected]>
@kabir kabir merged commit 994f5f8 into kabir:api-cleanup Dec 19, 2025
5 of 6 checks passed
@ehsavoie ehsavoie deleted the api-cleanup branch December 19, 2025 16:22
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