adk_plan_executor behaviour (erlang_adk v0.7.0)

View Source

Trusted adapter that interprets one JSON-safe plan action.

The core runtime never evaluates source text, shell fragments, functions, or module names contained in a plan. Applications should map a bounded set of action values to existing tools, agents, or workflows here.

Summary

Types

descriptor/0

-type descriptor() :: #{module := module(), target := term(), config => map()}.

Callbacks

execute/4

-callback execute(Target :: term(), Step :: adk_plan:step(), Context :: map(), Config :: map()) ->
                     {ok, term()} | {error, term()}.