MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _clamp_timeout

Function _clamp_timeout

src/sandbox_vm/tools/code/python.py:33–38  ·  view source on GitHub ↗
(t: int, low: int = 1, high: int = 300)

Source from the content-addressed store, hash-verified

31
32
33def _clamp_timeout(t: int, low: int = 1, high: int = 300) -> int:
34 try:
35 n = int(t)
36 except Exception:
37 n = 30
38 return max(low, min(high, n))
39
40
41async def execute_python_code(

Callers 2

execute_python_codeFunction · 0.85
execute_python_scriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected