adk_code_toolset (erlang_adk v0.7.0)

View Source

Strict model toolset boundary for an external code sandbox.

The toolset validates and bounds every model-controlled field before a trusted adk_code_executor adapter sees it. It never evaluates code in the VM, invokes a shell, opens a port, or accepts an executable path.

Summary

Types

compiled/0

-type compiled() :: map().

Functions

capabilities()

-spec capabilities() -> map().

compile(Config)

-spec compile(map()) -> {ok, compiled()} | {error, term()}.

new(Config)

-spec new(map()) -> {ok, adk_toolset:descriptor()} | {error, term()}.

resolved_call(Compiled, Name, Args, Context)

-spec resolved_call(compiled(), binary(), map(), map()) ->
                       {ok, adk_tool_executor:resolved_call()} | {error, term()}.

schemas(Invalid)

-spec schemas(compiled()) -> [map()].