π OpenHands: AI-Driven Development
Add init_runtime_tools for event stream runtime (#3256)
Graham Neubig789f3504a950
diff --git a/opendevin/runtime/client/runtime.py b/opendevin/runtime/client/runtime.pyindex bb5cf0713b..9a1b8335e7 100644--- a/opendevin/runtime/client/runtime.py+++ b/opendevin/runtime/client/runtime.py@@ -30,6 +30,7 @@ from opendevin.events.serialization import event_to_dict, observation_from_dictfrom opendevin.events.serialization.action import ACTION_TYPE_TO_CLASSfrom opendevin.runtime.plugins import PluginRequirementfrom opendevin.runtime.runtime import Runtime+from opendevin.runtime.tools import RuntimeToolfrom opendevin.runtime.utils import find_available_tcp_portfrom opendevin.runtime.utils.runtime_build import build_runtime_image@@ -350,3 +351,11 @@ class EventStreamRuntime(Runtime):raise NotImplementedError('This method is not implemented in the runtime client.')++ def init_runtime_tools(+ self,+ runtime_tools: list[RuntimeTool],+ runtime_tools_config: Optional[dict[RuntimeTool, Any]] = None,+ ) -> None:+ # TODO: deprecate this method when we move to the new EventStreamRuntime+ logger.warning('init_runtime_tools is not implemented in the runtime client.')