| 33 | backend_type = BackendType.SHELL |
| 34 | |
| 35 | def __init__( |
| 36 | self, |
| 37 | connector: Union[ShellConnector, LocalShellConnector], |
| 38 | *, |
| 39 | session_id: str, |
| 40 | security_manager: SecurityPolicyManager = None, |
| 41 | default_working_dir: str = None, |
| 42 | default_env: dict = None, |
| 43 | default_conda_env: str = None, |
| 44 | model: str = None, |
| 45 | use_clawwork_productivity: bool = False, |
| 46 | productivity_date: str = "default", |
| 47 | ): |
| 48 | super().__init__(connector=connector, session_id=session_id, |
| 49 | backend_type=BackendType.SHELL) |
| 50 | self.security_manager = security_manager |
| 51 | self.default_working_dir = default_working_dir |
| 52 | self.default_env = default_env or {} |
| 53 | self.default_conda_env = default_conda_env |
| 54 | self.model = model |
| 55 | self.use_clawwork_productivity = use_clawwork_productivity |
| 56 | self.productivity_date = productivity_date or "default" |
| 57 | |
| 58 | async def initialize(self): |
| 59 | self.tools = [ |