Class AgentConversationCompacted
- Namespace
- MailFathom.Application.Agent.Conversations
- Assembly
- MailFathom.Application.dll
What came earlier in the conversation was summarised, and this is the summary sent in its place from now on.
public sealed record AgentConversationCompacted : AgentConversationEntry, IEquatable<AgentConversationEntry>, IEquatable<AgentConversationCompacted>
- Inheritance
-
AgentConversationCompacted
- Implements
- Inherited Members
Remarks
A compaction adds and never replaces. Nothing the summary covers is removed, rewritten, or overwritten — not the turns, not the tool traffic under them, and not the summary before this one — so what was said stays recoverable whatever a summariser made of it. The record of a long conversation reads as the whole conversation plus every summary taken over it, in the order both happened, and the row this is written as states when it ran.
Which summary a turn was sent is read from the order. A turn is composed from the newest compaction written before its answer opened, followed by every turn written after the place that compaction covers; the answer named here is the one whose turn first used it. So a turn's model input can be rebuilt from the record alone, and two turns no compaction separates send the same leading part byte for byte — which is what a provider's prompt cache is keyed on.
A proposal still pending is live work a summary could not be accepted from, so it is carried beside the summary rather than folded into it, and the places carried are recorded here so every turn this compaction serves carries the same ones.
Constructors
- AgentConversationCompacted(AgentMessageId, long, string, IReadOnlyList<long>)
What came earlier in the conversation was summarised, and this is the summary sent in its place from now on.
Fields
- Kind
The value the type discriminator carries on the wire.
Properties
- Carried
Gets the places of the proposals carried verbatim beside the summary.
- ComposedInto
Gets the answer this entry is part of, and null where it belongs to no answer being composed.
- EntryName
Gets the name this entry is written under, which is the value the type discriminator carries.
- History
Gets which of the conversation's two readings this entry belongs to.
- MessageId
The answer whose turn the compaction was taken for.
- Through
Gets the last place the summary stands in for.