gemini-cli
gemini-cli copied to clipboard
[Task] Add RemoteAgents to agent registry
@adamfweidman I had a look on your PR #15110 in which you have set the boilerplate for remote agent registration, I have made the following changes
- Added loadRemoteAgents(): This method iterates through configured remote agents (fetched via this.config.getRemoteAgents()), registers them with the a2aClientManager to establish the transport connection, and then registers their definition in the agent registry with kind: 'remote'.
- Updated initialize() : It now calls await this.loadRemoteAgents() after loading built-in agents.
Please let me know if there are any changes to be made in this?