adk_code_executor behaviour (erlang_adk v0.7.0)

View Source

Behaviour for trusted external code-sandbox adapters.

Implementations must execute outside the BEAM node in a sandbox that enforces its own filesystem, network, CPU, memory, and process limits. This behaviour deliberately provides no local shell or eval fallback.

Summary

Types

context/0

-type context() :: #{binary() => term()}.

handle/0

-type handle() :: term().

request/0

-type request() :: #{binary() => term()}.

result/0

-type result() :: #{binary() => term()}.

Callbacks

execute/3

-callback execute(Handle :: handle(), Request :: request(), Context :: context()) ->
                     {ok, result()} | {error, term()}.