Condukt.Sessions.Input (Condukt v3.0.0)

Copy Markdown View Source

Input submitted to a session by id with Condukt.Sessions.submit/3.

A session takes each input once, by :request_id, as a user message that waits behind its running turn and any queued input, and starts a turn when the session is idle. The input is settled when the turn it started ends: with the turn's answer, its error, or :aborted. An input from another session (:from) can tell that session when it settles:

  • :notify - a key. The settled outcome is delivered to :from as a Condukt.Sessions.Settled signal under this key, which wakes a tool call parked on {Condukt.Sessions.Settled, key}.
  • :report - when true, an outcome that no parked call took is submitted back to :from as input, so the sender hears the answer even when it stopped waiting or was not running.

Inputs are plain data, so an Condukt.Sessions.Inbox can store them.