ExAgent. Sandbox. Memory
(ExAgent v3.0.0)
View Source
In-memory Sandbox backend for deterministic tests. It calls a trusted host function with the operation, code and policy. It never evaluates code.
Stability — Candidate.
Provide :run, a function of arity three. It returns
{:ok, %{status: "exited", exit_code: 0, text: "output", truncated: false}}
with an optional :capture pair of MIME type and raw bytes, or
{:unknown, :result_unconfirmed}. Use "timed_out" or "output_limit"
with a nil exit code for a confirmed stop. Test callbacks run in the VM and
should return promptly. This backend bounds retained text and images.
Summary
Functions
Start the test backend. Shared local adapter options are :name,
:max_running (default 4), :max_retained (default 64) and
:retention_ms (default ten minutes).
Functions
@spec start_link(keyword()) :: GenServer.on_start()
Start the test backend. Shared local adapter options are :name,
:max_running (default 4), :max_retained (default 64) and
:retention_ms (default ten minutes).