Couples one transcript message to its stable identity.
A message can change while it is streaming or while tool state is updated, but its identity never changes. Keeping both values in this struct makes it impossible to reorder content independently from its ID.
Summary
Functions
Creates an identified transcript entry.
Replaces an entry's content while preserving its stable identity.
Types
@type t() :: %MingaAgent.TranscriptEntry{ id: pos_integer(), message: MingaAgent.Message.t() }
Functions
@spec new(pos_integer(), MingaAgent.Message.t()) :: t()
Creates an identified transcript entry.
@spec replace(t(), MingaAgent.Message.t()) :: t()
Replaces an entry's content while preserving its stable identity.