One exchange in a conversation: the input, the output once known, and how it ended.
Summary
Functions
Closes a turn with its final status and, when there is one, its output.
Marks a turn that was still in progress as interrupted; any other turn is unchanged.
Builds a turn that has just started and has no output yet.
Types
@type status() :: :in_progress | :ok | :failed | :timeout | :interrupted
@type t() :: %Mead.Session.Turn{ input: term(), output: term(), started_at: DateTime.t(), status: status() }
Functions
Closes a turn with its final status and, when there is one, its output.
Marks a turn that was still in progress as interrupted; any other turn is unchanged.
Builds a turn that has just started and has no output yet.