MCPcopy Create free account
hub / github.com/METR/vivaria / run_python

Method run_python

pyhooks/pyhooks/__init__.py:1035–1036  ·  view source on GitHub ↗
(self, script: str, timeout: float)

Source from the content-addressed store, hash-verified

1033 return await run_bash(script, timeout)
1034
1035 async def run_python(self, script: str, timeout: float) -> str:
1036 return await run_python(script, timeout)
1037
1038 async def check_safety(self, action: str):
1039 safety_policy_notice = (

Callers

nothing calls this directly

Calls 1

run_pythonFunction · 0.70

Tested by

no test coverage detected