Table of Contents

Method RecordCompactionAsync

Namespace
MailFathom.Application.Agent.Answering
Assembly
MailFathom.Application.dll

RecordCompactionAsync(AgentConversationCompacted, CancellationToken)

Records a compaction taken for this answer's turn, which every later turn is composed from until the next one.

public Task<bool> RecordCompactionAsync(AgentConversationCompacted compaction, CancellationToken cancellationToken)

Parameters

compaction AgentConversationCompacted

What the compaction covers, the summary it produced, and the proposals carried beside it.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<bool>

true when the compaction was recorded; false when the answer is no longer being composed.

Exceptions

ArgumentNullException

Thrown when compaction is null.

ArgumentException

Thrown when the compaction was taken for another answer.