Skip to content

Commit

Permalink
make remote path execute variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Aug 29, 2024
1 parent 0ed6bb7 commit 04bd768
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vision_agent/utils/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,15 @@ def from_e2b_execution(exec: E2BExecution) -> "Execution":
class CodeInterpreter(abc.ABC):
"""Code interpreter interface."""

def __init__(self, timeout: int, *args: Any, **kwargs: Any) -> None:
def __init__(
self,
timeout: int,
remote_path: Optional[Union[str, Path]] = None,
*args: Any,
**kwargs: Any,
) -> None:
self.timeout = timeout
self.remote_path = Path(remote_path if remote_path is not None else WORKSPACE)

def __enter__(self) -> Self:
return self
Expand Down

0 comments on commit 04bd768

Please sign in to comment.