Minga.Frontend.Adapter.GUI.AgentTranscriptSentState (Minga v0.1.0)

Copy Markdown View Source

Per-frontend delta base for the resident agent transcript stream (0x86).

Bundles the three values Minga.Frontend.Adapter.GUI.AgentTranscriptEncoder needs to compute the next delta: the change-detection fingerprint, the epoch it was captured under, and the ordered {id, content_hash} keys of the resident window it last emitted. Lives in Minga.Frontend.Adapter.GUI.Caches, never on the BEAM editor state.

Summary

Types

An {id, content_hash} key for one resident message.

t()

Types

key()

@type key() :: {non_neg_integer(), non_neg_integer()}

An {id, content_hash} key for one resident message.

t()

@type t() :: %Minga.Frontend.Adapter.GUI.AgentTranscriptSentState{
  epoch: non_neg_integer() | nil,
  fp: integer() | nil,
  keys: [key()],
  truncated?: boolean()
}

Functions

emitted(fp, epoch, keys, truncated?)

@spec emitted(integer(), non_neg_integer(), [key()], boolean()) :: t()