adk_agent_config_store (erlang_adk v0.7.0)

View Source

Private hand-off store for supervised agent start arguments.

Dynamic-supervisor child MFAs are included in supervisor reports. Keeping the full provider configuration there would therefore disclose explicit credentials whenever an agent terminates. The supervisor retains only a random opaque reference; this process holds the corresponding start data.

Summary

Functions

child_spec(Options)

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

claim(Ref, AgentPid)

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

code_change(OldVersion, State, Extra)

delete(Ref)

-spec delete(binary()) -> ok.

format_status(Status)

get_for_start(Ref)

-spec get_for_start(binary()) -> {ok, string() | binary(), map(), list()} | {error, term()}.

handle_call(Request, From, State0)

handle_cast(Message, State)

handle_info(Message, State0)

init(_)

put(Name, Config, Tools)

-spec put(string() | binary(), map(), list()) -> {ok, binary()} | {error, term()}.

start_link()

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

terminate(Reason, State)