Raxol.AgentClientProtocol.Ext.Schema.SessionRecordNotification (Raxol Agent Client Protocol v0.1.0)

Copy Markdown View Source

_raxol/session.record: the generic, self-describing delivery frame for every record kind OTHER than session_update (turn_started, turn_completed, session_created, and any kind added later). New record kinds require NO new method rows — readers skip-unknown-kind as a fold.

Summary

Functions

Build a record notification (first-class fields).

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Ext.Schema.SessionRecordNotification{
  kind: String.t(),
  offset: pos_integer(),
  payload: map(),
  session_id: String.t(),
  taint: String.t(),
  ts: integer()
}

Functions

from_json(map)

@spec from_json(map()) :: {:ok, t()} | {:error, term()}

new(session_id, offset, kind, payload, taint, ts)

@spec new(String.t(), pos_integer(), String.t(), map(), String.t(), integer()) :: t()

Build a record notification (first-class fields).

to_json(r)

@spec to_json(t()) :: map()