adk_plugin_runtime_sup (erlang_adk v0.7.0)
View SourceDynamic 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
-spec child_spec() -> supervisor:child_spec().
-spec start_instance(supervisor:sup_ref(), map()) -> {ok, pid()} | {error, term()}.
-spec start_link() -> supervisor:startlink_ret().
-spec start_link_registered() -> supervisor:startlink_ret().
-spec stop_instance(supervisor:sup_ref(), pid()) -> ok | {error, term()}.