adk_invocation (erlang_adk v0.7.0)

View Source

One supervised, reconnectable ADK invocation.

The invocation owns the legacy Runner stream, monitors it, buffers a bounded replay, monitors subscribers/waiters, and commits exactly one terminal outcome. It deliberately has no link or monitor to the API caller which created the run.

Summary

Functions

callback_mode()

code_change(OldVsn, State, Data, Extra)

format_status(Status)

handle_event(Type, Event, State, Data)

handoff(Pid, InvocationRef, RunId, Request, Opts)

-spec handoff(pid(), reference(), binary(), map(), map()) -> ok | {error, term()}.

init(InvocationRef)

start_link(InvocationRef)

-spec start_link(reference()) -> gen_statem:start_ret().

start_link(RunId, Request, Opts)

-spec start_link(binary(), map(), map()) -> gen_statem:start_ret().

terminate(Reason, State, Data)