maf-sandbox-codeact 0.26.2__tar.gz → 0.27.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.
- {maf_sandbox_codeact-0.26.2 → maf_sandbox_codeact-0.27.0}/PKG-INFO +2 -2
- {maf_sandbox_codeact-0.26.2 → maf_sandbox_codeact-0.27.0}/pyproject.toml +2 -2
- {maf_sandbox_codeact-0.26.2 → maf_sandbox_codeact-0.27.0}/pyproject.toml.orig +2 -2
- {maf_sandbox_codeact-0.26.2 → maf_sandbox_codeact-0.27.0}/src/maf_sandbox_codeact/_tool.py +43 -0
- {maf_sandbox_codeact-0.26.2 → maf_sandbox_codeact-0.27.0}/LICENSE +0 -0
- {maf_sandbox_codeact-0.26.2 → maf_sandbox_codeact-0.27.0}/README.md +0 -0
- {maf_sandbox_codeact-0.26.2 → maf_sandbox_codeact-0.27.0}/src/maf_sandbox_codeact/__init__.py +0 -0
- {maf_sandbox_codeact-0.26.2 → maf_sandbox_codeact-0.27.0}/src/maf_sandbox_codeact/_runtime.py +0 -0
- {maf_sandbox_codeact-0.26.2 → maf_sandbox_codeact-0.27.0}/src/maf_sandbox_codeact/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maf-sandbox-codeact
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.27.0
|
|
4
4
|
Summary: CodeAct as a Microsoft Agent Framework tool — the model writes a short Python program and it runs inside a sandbox — written against maf-sandbox so it runs on any sandbox backend.
|
|
5
5
|
Keywords: codeact,code-execution,sandbox,agent-framework,microsoft-agent-framework
|
|
6
6
|
Author: SOKOLAI BV
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.14
|
|
17
17
|
Classifier: Topic :: Software Development :: Interpreters
|
|
18
|
-
Requires-Dist: maf-sandbox>=0.
|
|
18
|
+
Requires-Dist: maf-sandbox>=0.54.0,<0.55
|
|
19
19
|
Requires-Dist: agent-framework-core>=1.24.0,<1.25
|
|
20
20
|
Requires-Python: >=3.12, <3.15
|
|
21
21
|
Project-URL: Homepage, https://www.sokol.ai
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "maf-sandbox-codeact"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.27.0"
|
|
4
4
|
description = "CodeAct as a Microsoft Agent Framework tool — the model writes a short Python program and it runs inside a sandbox — written against maf-sandbox so it runs on any sandbox backend."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12,<3.15"
|
|
@@ -24,7 +24,7 @@ classifiers = [
|
|
|
24
24
|
"Topic :: Software Development :: Interpreters",
|
|
25
25
|
]
|
|
26
26
|
dependencies = [
|
|
27
|
-
"maf-sandbox>=0.
|
|
27
|
+
"maf-sandbox>=0.54.0,<0.55",
|
|
28
28
|
"agent-framework-core>=1.24.0,<1.25",
|
|
29
29
|
]
|
|
30
30
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "maf-sandbox-codeact"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.27.0"
|
|
4
4
|
description = "CodeAct as a Microsoft Agent Framework tool — the model writes a short Python program and it runs inside a sandbox — written against maf-sandbox so it runs on any sandbox backend."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12,<3.15"
|
|
@@ -35,7 +35,7 @@ dependencies = [
|
|
|
35
35
|
# import, and that one fails at the call, where no import check is looking. The number
|
|
36
36
|
# itself is below, and `scripts/set_dependents_range.py` moves it — so this says which
|
|
37
37
|
# release the floor is for, never which release that is.
|
|
38
|
-
"maf-sandbox>=0.
|
|
38
|
+
"maf-sandbox>=0.54.0,<0.55",
|
|
39
39
|
# Approvals must bind to the issuing session. Admit only the framework minor
|
|
40
40
|
# qualified by the framework-contract tests.
|
|
41
41
|
"agent-framework-core>=1.24.0,<1.25",
|
|
@@ -194,6 +194,44 @@ class CodeactOutputs(StrEnum):
|
|
|
194
194
|
MANIFEST = "manifest"
|
|
195
195
|
|
|
196
196
|
|
|
197
|
+
_FIXED_SENTENCES = (
|
|
198
|
+
_NO_OUTPUT,
|
|
199
|
+
_WITHHELD_ROUTE,
|
|
200
|
+
_MAY_HAVE_LANDED,
|
|
201
|
+
"This tool's listing is empty — no files were shared with it.",
|
|
202
|
+
"Error: this tool's file listing could not be read, so nothing was shared.",
|
|
203
|
+
"Error: no output sink is configured, so nothing could be saved.",
|
|
204
|
+
f"{_MANIFEST_FILENAME} listed no files, so nothing was saved.",
|
|
205
|
+
f"Error: the program ran but its files could not be saved. {_MAY_HAVE_LANDED}",
|
|
206
|
+
f"No {_MANIFEST_FILENAME} was written, so no files were saved.",
|
|
207
|
+
f"Error: {_MANIFEST_FILENAME} could not be read, so no files were saved.",
|
|
208
|
+
f"Error: {_MANIFEST_FILENAME} is nested too deeply to parse, so no files were saved.",
|
|
209
|
+
(
|
|
210
|
+
f"Error: {_MANIFEST_FILENAME} must be an object with an "
|
|
211
|
+
f"{_MANIFEST_OUTPUTS_KEY!r} array, so no files were saved."
|
|
212
|
+
),
|
|
213
|
+
(
|
|
214
|
+
f"Error: every {_MANIFEST_OUTPUTS_KEY!r} entry needs a "
|
|
215
|
+
f"{_MANIFEST_PATH_KEY!r} string, so no files were saved."
|
|
216
|
+
),
|
|
217
|
+
"Error: an input file could not be read or staged.",
|
|
218
|
+
"Error: an input file could not be written into the sandbox.",
|
|
219
|
+
"Error: could not run the program in the sandbox",
|
|
220
|
+
"Error: the call's inputs could not be staged.",
|
|
221
|
+
"Error: the deadline expired while queued; the program never started. Retry unchanged.",
|
|
222
|
+
"Error: the outputs argument is invalid.",
|
|
223
|
+
"Error: the program could not be staged.",
|
|
224
|
+
"Error: the program did not reach a result before the timeout.",
|
|
225
|
+
"Error: the program exceeds its declared byte limit.",
|
|
226
|
+
"Error: the program is not valid UTF-8.",
|
|
227
|
+
"Error: the requested input files could not be resolved.",
|
|
228
|
+
"Error: the sandbox could not be acquired.",
|
|
229
|
+
"Saved:",
|
|
230
|
+
"The program exited with a non-zero status.",
|
|
231
|
+
"The program exited with status 0.",
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
|
|
197
235
|
def codeact_sandbox_spec(
|
|
198
236
|
image: str | None = None,
|
|
199
237
|
image_id: str | None = None,
|
|
@@ -302,6 +340,7 @@ def make_codeact_tools(
|
|
|
302
340
|
program: ProgramRequirements = ProgramRequirements(),
|
|
303
341
|
credential_retention_seconds: int | None = None,
|
|
304
342
|
file_store_provenance: FileStoreProvenance | None = None,
|
|
343
|
+
argument_integrity: SourceIntegrity | None = None,
|
|
305
344
|
requires_file_integrity: SourceIntegrity | None = None,
|
|
306
345
|
) -> list[Any]:
|
|
307
346
|
"""Return the ``[execute_code]`` tool list, or ``[]`` when no sandbox is available.
|
|
@@ -323,6 +362,8 @@ def make_codeact_tools(
|
|
|
323
362
|
file_store: The agent's file store. Given one, the tool takes a ``files``
|
|
324
363
|
parameter and shares those files into the sandbox; the caller's listing is the
|
|
325
364
|
authority on which names exist, exactly as it is for the Bicep kind.
|
|
365
|
+
argument_integrity: Host policy for all model arguments; defaults to the FIDES call label.
|
|
366
|
+
Trusting arguments never raises file evidence or reveals hidden references.
|
|
326
367
|
file_store_provenance: The store's provenance record, rechecked around each file read.
|
|
327
368
|
Without one, the listing's integrity label stands.
|
|
328
369
|
requires_file_integrity: Minimum integrity for file reads after the provenance fold.
|
|
@@ -577,9 +618,11 @@ def make_codeact_tools(
|
|
|
577
618
|
# per-call report labels from file evidence and the enabled source channels.
|
|
578
619
|
source_integrity=SourceIntegrity.UNTRUSTED,
|
|
579
620
|
file_store_provenance=file_store_provenance,
|
|
621
|
+
argument_integrity=argument_integrity,
|
|
580
622
|
requires_file_integrity=requires_file_integrity,
|
|
581
623
|
# Both modes need a raised framework declaration to keep contract items readable.
|
|
582
624
|
result_contract=True,
|
|
625
|
+
fixed_sentences=_FIXED_SENTENCES,
|
|
583
626
|
verdicts=CODEACT_VERDICTS,
|
|
584
627
|
# The wrapper validates and stamps this suffix so the body cannot choose which
|
|
585
628
|
# guidance becomes trusted.
|
|
File without changes
|
|
File without changes
|
{maf_sandbox_codeact-0.26.2 → maf_sandbox_codeact-0.27.0}/src/maf_sandbox_codeact/__init__.py
RENAMED
|
File without changes
|
{maf_sandbox_codeact-0.26.2 → maf_sandbox_codeact-0.27.0}/src/maf_sandbox_codeact/_runtime.py
RENAMED
|
File without changes
|
|
File without changes
|