adk_plugin_runtime_sup (erlang_adk v0.7.0)

View Source

Dynamic supervisor for stateful plugin instances.

The application starts a registered instance for the convenience APIs. start_link/0 remains available for isolated owners and tests that need a private runtime.

Summary

Functions

child_spec()

-spec child_spec() -> supervisor:child_spec().

init(_)

start_instance(Spec)

-spec start_instance(map()) -> {ok, pid()} | {error, term()}.

start_instance(Supervisor, Spec)

-spec start_instance(supervisor:sup_ref(), map()) -> {ok, pid()} | {error, term()}.

start_link()

-spec start_link() -> supervisor:startlink_ret().

stop_instance(Pid)

-spec stop_instance(pid()) -> ok | {error, term()}.

stop_instance(Supervisor, Pid)

-spec stop_instance(supervisor:sup_ref(), pid()) -> ok | {error, term()}.