adk_dev_payload_store (erlang_adk v0.10.0)

View Source

Bounded, opt-in retention for redacted local model payloads.

The store accepts only already-normalized JSON documents from the developer payload plugin. It is never started unless the operator enables the local developer inspection feature, and the HTTP route remains behind the existing loopback-only developer bearer boundary.

Summary

Functions

append_json(Server, Phase, Json, Timeout)

-spec append_json(gen_server:server_ref(), binary(), binary(), timeout()) ->
                     {ok, non_neg_integer()} | {error, term()}.

Append a JSON object prepared by adk_dev_payload_plugin.

child_spec(Options)

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

clear(Server)

-spec clear(gen_server:server_ref()) -> ok | {error, term()}.

code_change(OldVersion, State, Extra)

format_status(Status)

handle_call(Request, From, State0)

handle_cast(Message, State)

handle_info(Message, State)

init(Options)

query(Server, Options)

-spec query(gen_server:server_ref(), map()) -> {ok, map()} | {error, term()}.

start_link(Options)

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

status(Server)

-spec status(gen_server:server_ref()) -> {ok, map()} | {error, term()}.

terminate(Reason, State)

validate_options(Options)

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