adk_plugin_instance (erlang_adk v0.7.0)

View Source

Deadline-aware actor for one stateful plugin instance.

Summary

Functions

code_change(OldVersion, State, Extra)

handle_call(Request, From, State)

handle_cast(Message, State)

handle_info(Message, State)

init(Spec)

invoke(Pid, Hook, Context, Value, Timeout)

-spec invoke(pid(), adk_plugin:hook(), map(), term(), pos_integer()) ->
                {ok, adk_plugin:result()} | {error, term()}.

start_link(Spec)

-spec start_link(map()) -> gen_server:start_ret().

status(Pid)

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

stop(Pid)

-spec stop(pid()) -> ok.

terminate(Reason, State)