feat: A2A (Agent-to-Agent) protocol support - Phase 1#12008
Draft
roomote-v0[bot] wants to merge 1 commit intomainfrom
Draft
feat: A2A (Agent-to-Agent) protocol support - Phase 1#12008roomote-v0[bot] wants to merge 1 commit intomainfrom
roomote-v0[bot] wants to merge 1 commit intomainfrom
Conversation
Implements Phase 1 of A2A protocol support as discussed in #12007: - A2A types (agent config, task, message, artifact types) - A2aHub service for managing agent connections - delegate_to_agent tool for delegating tasks to external agents - Manual configuration via a2a_settings.json (global/project) - Configurable headers for authentication (JSON key-value pairs) - Integration with system prompt, tool parser, and ClineProvider - A2A tool group added to code mode - Tests for A2aHub service
2 tasks
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
This PR attempts to address Issue #12007 by implementing Phase 1 of A2A (Agent-to-Agent) protocol support, following the guidance from @farazoman.
What's Included (Phase 1)
New A2A Types (
packages/types/src/a2a.ts)A2aHub Service (
src/services/a2a/A2aHub.ts)a2a_settings.json(global) and.roo/a2a.json(project-level)tasks/send,tasks/get,tasks/cancel)/.well-known/agent.jsondelegate_to_agent Tool (
src/core/tools/DelegateToAgentTool.ts)agent_name(required),message(required)input-requiredfor continued conversationIntegration
a2atool group added to tool system and code modedelegate_to_agentargsDesign Decisions per Issue Discussion
Configuration Example
{ "a2aAgents": { "my-agent": { "url": "https://my-agent.example.com/a2a", "headers": { "Authorization": "Bearer sk-..." }, "description": "My specialized agent", "timeout": 300 } } }Tests
Feedback and guidance are welcome!
Interactively review PR in Roo Code Cloud