Files
DocsGPT/tests
Alex 1fe6236281 Add code_executor tool to run sandboxed code and persist artifacts
Add a code_executor agent tool with a run_code action that runs agent-provided
code in the per-conversation sandbox session and captures produced files as
artifacts. Inputs are materialized only from artifacts the caller can access
(parent-scoped); produced files are stored under the user's namespace with
server-computed size and sha256, and the storage write is ordered last in the
transaction so a failure cannot orphan bytes. Output is a compact payload with
no raw bytes, and the produced artifact lights up the existing tool artifact
rail. Execution honors a wall-clock timeout and an agent-selectable session TTL
clamped by the global cap, and the action can be gated behind approval.
Tool-call argument logging is redacted so code bodies are not written to logs.
2026-06-24 12:00:09 +01:00
..
2026-06-08 15:07:31 +01:00
2026-06-12 18:19:15 +04:00
2026-06-24 11:56:52 +01:00
2026-06-14 21:36:07 +01:00
2026-04-18 13:13:57 +01:00
2026-03-30 16:13:08 +01:00
2026-06-23 20:10:41 +01:00
2026-03-12 14:46:26 +00:00
2026-05-15 12:23:31 +01:00
2026-04-18 13:13:57 +01:00
2026-04-18 13:13:57 +01:00
2026-04-27 22:09:33 +01:00
2026-06-14 21:36:07 +01:00
2026-05-15 12:23:31 +01:00
2026-03-30 16:13:08 +01:00
2026-01-22 13:11:24 +02:00
2026-03-29 09:46:07 +01:00
2026-04-18 13:13:57 +01:00
2026-06-16 09:21:21 +01:00
2026-04-18 13:13:57 +01:00
2026-04-18 13:13:57 +01:00
2026-06-16 18:08:04 +01:00
2026-04-21 14:22:32 +01:00
2026-04-18 13:13:57 +01:00