Condukt.Sessions.Settled (Condukt v3.0.0)

Copy Markdown View Source

The signal kind that tells a session an input it submitted has settled.

A session that submits input with notify: key (see Condukt.Sessions.submit/3) receives the outcome as a signal of this kind under key once the turn the input started ends. A tool call waits for it by parking on {Condukt.Sessions.Settled, key}:

{:park, state, signals: [{Condukt.Sessions.Settled, key}], timeout: :timer.hours(1)}

wake/3 then receives {:signal, {Condukt.Sessions.Settled, key}, value}, where value is

%{session_id: target_id, request_id: request_id, outcome: outcome}

and outcome is {:ok, answer}, {:error, reason}, or :aborted.