feat(agent_skills): Add OpenhandsClient to agent_skills to enable collaboration among multiple OpenHands instances #6492
+423
−2
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.
This change adds the OpenhandsClient class and the message_to_remote_OH function to agent_skills, enabling the ability to send messages to other OpenHands instances.
The agent can make use of this tool via IPythonRunCellAction.
End-user friendly description of the problem this fixes or functionality that this introduces
Give a summary of what the PR does, explaining any non-trivial design decisions
This function is designed for agent developers to create agents that collaborate with OpenHands instances hosted on other servers. Currently, only sending Message Actions is supported, but I plan to add features such as file uploads in the future.
Additionally, I am planning to implement a Proxy Agent into agenthub that enables collaboration between OpenHands instances hosted separately by different users or organizations by utilizing this functionality.
I am also considering developing a client that can connect to agent platforms other than OpenHands, aiming to facilitate collaboration across different platforms.
The changes in this PR are intended to be the first step toward that.