agentboxes 0.2.4__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agentboxes-0.2.4 → agentboxes-0.3.0}/PKG-INFO +1 -1
- {agentboxes-0.2.4 → agentboxes-0.3.0}/agentbox/__init__.py +4 -2
- {agentboxes-0.2.4 → agentboxes-0.3.0}/agentboxes.egg-info/PKG-INFO +1 -1
- {agentboxes-0.2.4 → agentboxes-0.3.0}/pyproject.toml +1 -1
- {agentboxes-0.2.4 → agentboxes-0.3.0}/README.md +0 -0
- {agentboxes-0.2.4 → agentboxes-0.3.0}/agentboxes.egg-info/SOURCES.txt +0 -0
- {agentboxes-0.2.4 → agentboxes-0.3.0}/agentboxes.egg-info/dependency_links.txt +0 -0
- {agentboxes-0.2.4 → agentboxes-0.3.0}/agentboxes.egg-info/top_level.txt +0 -0
- {agentboxes-0.2.4 → agentboxes-0.3.0}/setup.cfg +0 -0
- {agentboxes-0.2.4 → agentboxes-0.3.0}/tests/test_client.py +0 -0
|
@@ -39,6 +39,8 @@ class ExecResult:
|
|
|
39
39
|
duration_ms: int
|
|
40
40
|
timed_out: bool
|
|
41
41
|
truncated: bool
|
|
42
|
+
# "ttl" when the command was stopped because the sandbox's remaining TTL ran out, not the requested timeout.
|
|
43
|
+
reason: Optional[str] = None
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
class ExecTimeout(Exception):
|
|
@@ -50,7 +52,7 @@ class ExecTimeout(Exception):
|
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
def _result(data: Dict[str, Any]) -> ExecResult:
|
|
53
|
-
return ExecResult(data["exitCode"], data["stdout"], data["stderr"], data["durationMs"], data["timedOut"], data["truncated"])
|
|
55
|
+
return ExecResult(data["exitCode"], data["stdout"], data["stderr"], data["durationMs"], data["timedOut"], data["truncated"], data.get("reason"))
|
|
54
56
|
|
|
55
57
|
|
|
56
58
|
class Agentbox:
|
|
@@ -172,7 +174,7 @@ class Sandbox:
|
|
|
172
174
|
for name in ("stdout", "stderr"):
|
|
173
175
|
if pending[name]:
|
|
174
176
|
yield (name, pending[name])
|
|
175
|
-
yield ("exit", ExecResult(data["exitCode"], "", "", data["durationMs"], data["timedOut"], data["truncated"]))
|
|
177
|
+
yield ("exit", ExecResult(data["exitCode"], "", "", data["durationMs"], data["timedOut"], data["truncated"], data.get("reason")))
|
|
176
178
|
elif event == "error":
|
|
177
179
|
raise AgentboxError(data["message"], 0, data["error"])
|
|
178
180
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|