Table of Contents

Constructor AgentConversationCompacted

Namespace
MailFathom.Application.Agent.Conversations
Assembly
MailFathom.Application.dll

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.

public AgentConversationCompacted(AgentMessageId MessageId, long Through, string Summary, IReadOnlyList<long> Carried)

Parameters

MessageId AgentMessageId

The answer whose turn the compaction was taken for.

Through long

The last place the summary stands in for: everything from the conversation's beginning up to and including it.

Summary string

The summary the compaction produced, which already folds in the summary before it.

Carried IReadOnlyList<long>

The places of the proposals still pending when the compaction ran, which a turn carries verbatim beside the summary rather than inside it.

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.

Exceptions

ArgumentOutOfRangeException

Thrown when Through is not a written place, or when a carried place is not one the summary covers.

ArgumentException

Thrown when Summary is empty.

ArgumentNullException

Thrown when Carried is null.