feat(a2a): Implement retry mechanism for agent connections#140
Merged
feat(a2a): Implement retry mechanism for agent connections#140
Conversation
Add comprehensive retry logic for A2A agent connections to support eventual consistency in cloud-native deployments. Features implemented: - Configurable retry parameters (MaxRetries, RetryInterval, InitialBackoff) - Exponential backoff retry during agent initialization - Background reconnection for failed agents - Graceful degradation when agents are unavailable - Dynamic middleware that adapts to agent availability Configuration options: - A2A_MAX_RETRIES (default: 3) - Maximum retry attempts - A2A_RETRY_INTERVAL (default: 5s) - Maximum delay between retries - A2A_INITIAL_BACKOFF (default: 1s) - Initial backoff duration - A2A_ENABLE_RECONNECT (default: true) - Enable background reconnection - A2A_RECONNECT_INTERVAL (default: 30s) - Background reconnection interval This enables deployment order independence - the inference gateway can now be deployed before agents and will automatically connect once agents become available. Resolves #139 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
Contributor
Author
|
@claude fix CI and also remove inline comments |
Contributor
|
Claude finished @edenreich's task —— View job ✅ Completed your requestI've fixed the CI issues and removed inline comments from the code. Tasks:
What was fixed:🔧 CI Issue Fixed:
🧹 Inline Comments Removed:
Changes committed:All fixes have been pushed to the |
…ents - Fix type error in a2a/client.go:228 by ensuring bit shift uses integer operands - Remove inline comments from variable declarations and code blocks - Clean up connection retry configuration comments in config.go - Remove middleware bypass header comments in a2a.go Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
…nection settings Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
ig-semantic-release-bot bot
added a commit
that referenced
this pull request
Jul 25, 2025
## [0.13.0](v0.12.0...v0.13.0) (2025-07-25) ### ✨ Features * **a2a:** Implement retry mechanism for agent connections ([#140](#140)) ([54033e8](54033e8)), closes [#139](#139) * Implement A2A agent status polling with background health checks ([#136](#136)) ([1b49a06](1b49a06)), closes [#135](#135) ### ♻️ Improvements * **codegen:** Refactor code generation to automate provider onboarding ([#144](#144)) ([3a97396](3a97396)) * Replace custom A2A code with ADK client implementation ([#138](#138)) ([34d8cf6](34d8cf6)) ### 👷 CI * Add Claude GitHub Actions workflows ([#134](#134)) ([a6a1f8f](a6a1f8f)) * Add MCP configuration for context7 in Claude workflows ([4ce0139](4ce0139)) * **fix:** Add allowed tools configuration for Bash tasks in Claude workflow ([ccf76c8](ccf76c8)) * **fix:** Add base branch and branch prefix configuration with custom instructions for workflow ([8d3a56e](8d3a56e)) * **fix:** Add installation steps for golangci-lint and task in Claude workflow ([e2a718f](e2a718f)) * **fix:** Reduce amounts of claude runs and costs - update workflow trigger to respond to issue comments for code review ([189313b](189313b)) * **fix:** Update Claude workflow conditions to exclude review commands from triggering ([5e3d75d](5e3d75d)) * Update Claude workflows to require write permissions for contents, pull requests, and issues ([ba6477e](ba6477e)) ### 📚 Documentation * **examples:** Update kubernetes examples to use the inference gateway operator ([#131](#131)) ([3ab617a](3ab617a))
Contributor
|
🎉 This PR is included in version 0.13.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Add comprehensive retry logic for A2A agent connections to support eventual consistency in cloud-native deployments.
Features implemented:
Resolves #139
Generated with Claude Code