Skip to content

Commit

Permalink
Merge branch 'main' into security_analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
adrgs committed Aug 6, 2024
2 parents 6c1c262 + b4a018e commit c19d662
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 19 deletions.
2 changes: 2 additions & 0 deletions containers/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ FROM python:3.12.3-slim AS runtime

WORKDIR /app

ARG OPEN_DEVIN_BUILD_VERSION #re-declare for this section

ENV RUN_AS_DEVIN=true
# A random number--we need this to be different from the user's UID on the host machine
ENV OPENDEVIN_USER_ID=42420
Expand Down
9 changes: 9 additions & 0 deletions opendevin/runtime/client/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from opendevin.events.serialization.action import ACTION_TYPE_TO_CLASS
from opendevin.runtime.plugins import PluginRequirement
from opendevin.runtime.runtime import Runtime
from opendevin.runtime.tools import RuntimeTool
from opendevin.runtime.utils import find_available_tcp_port
from opendevin.runtime.utils.runtime_build import build_runtime_image

Expand Down Expand Up @@ -350,3 +351,11 @@ def get_working_directory(self):
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.')
39 changes: 20 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c19d662

Please sign in to comment.