adk_agent_turn_worker (erlang_adk v0.7.0)

View Source

Supervised coordinator for a blocking direct agent turn.

The coordinator never executes provider/tool work itself. Its linked executor may block, while the coordinator remains able to observe owner death and deadlines and kill that executor deterministically.

Summary

Functions

assign_work(Pid, Work)

-spec assign_work(pid(), fun(() -> term())) -> ok | {error, term()}.

begin_work(Pid)

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

cancel(Pid)

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

code_change(OldVersion, State, Extra)

format_status(Status)

handle_call(Request, From, State)

handle_cast(Message, State)

handle_info(Message, State0)

init(_)

start_link(Owner, TurnRef, Timeout)

-spec start_link(pid(), reference(), infinity | non_neg_integer()) -> gen_server:start_ret().

terminate(Reason, State)