adk_a2a_v1_server (erlang_adk v0.10.0)
View SourceBounded, supervised A2A 1.0 task store and execution coordinator.
Protocol tasks are durable for a configured retention window while their work runs as independent adk_task children. The store retains only a hash of the authenticated principal id. Raw headers, credentials, and principal terms are captured only by the short-lived execution closure and are redacted before any result enters task history, artifacts, or events.
Summary
Functions
Return the public card together with the time this server instance installed the immutable representation. HTTP bindings use the timestamp for a stable Last-Modified validator while the card body supplies the ETag.
Test/diagnostic view. It intentionally exposes only the public Task.
Resolve the response oneof for a blocking SendMessage call. A direct Message returned by the executor is intentionally transient; durable task snapshots continue to contain only the protocol Task representation.
Functions
-spec cancel_task(gen_server:server_ref(), binary(), map()) -> {ok, map()} | {error, term()}.
-spec card(gen_server:server_ref()) -> {ok, map()}.
-spec card_representation(gen_server:server_ref()) -> {ok, map(), non_neg_integer()}.
Return the public card together with the time this server instance installed the immutable representation. HTTP bindings use the timestamp for a stable Last-Modified validator while the card body supplies the ETag.
-spec child_spec(map()) -> supervisor:child_spec().
-spec create_push_config(gen_server:server_ref(), binary(), map()) -> {ok, map()} | {error, term()}.
-spec delete_push_config(gen_server:server_ref(), binary(), map()) -> {ok, map()} | {error, term()}.
-spec extended_card(gen_server:server_ref(), binary()) -> {ok, map()} | {error, term()}.
-spec get_push_config(gen_server:server_ref(), binary(), map()) -> {ok, map()} | {error, term()}.
-spec get_task(gen_server:server_ref(), binary(), map()) -> {ok, map()} | {error, term()}.
-spec inspect_task(gen_server:server_ref(), binary()) -> {ok, map()} | {error, not_found}.
Test/diagnostic view. It intentionally exposes only the public Task.
-spec list_push_configs(gen_server:server_ref(), binary(), map()) -> {ok, map()} | {error, term()}.
-spec list_tasks(gen_server:server_ref(), binary(), map()) -> {ok, map()} | {error, term()}.
-spec progress(gen_server:server_ref(), binary(), binary(), term()) -> ok | {error, term()}.
-spec send_message(gen_server:server_ref(), map(), map()) -> {ok, map()} | {error, term()}.
-spec send_result(gen_server:server_ref(), binary(), binary(), undefined | non_neg_integer()) -> {ok, {task, map()} | {message, map()}} | {error, term()}.
Resolve the response oneof for a blocking SendMessage call. A direct Message returned by the executor is intentionally transient; durable task snapshots continue to contain only the protocol Task representation.
-spec start_link() -> gen_server:start_ret().
-spec start_link(map()) -> gen_server:start_ret().
-spec subscribe(gen_server:server_ref(), binary(), map(), pid()) -> {ok, binary(), [{non_neg_integer(), map()}]} | {error, term()}.
-spec unsubscribe(gen_server:server_ref(), binary(), pid()) -> ok.