MCPcopy Create free account
hub / github.com/HKUDS/OpenSpace / __init__

Method __init__

openspace/grounding/backends/shell/session.py:35–56  ·  view source on GitHub ↗
(
        self, 
        connector: Union[ShellConnector, LocalShellConnector], 
        *, 
        session_id: str, 
        security_manager: SecurityPolicyManager = None,
        default_working_dir: str = None,
        default_env: dict = None,
        default_conda_env: str = None,
        model: str = None,
        use_clawwork_productivity: bool = False,
        productivity_date: str = "default",
    )

Source from the content-addressed store, hash-verified

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 = [

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected