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
compactionAgentConversationCompactedWhat the compaction covers, the summary it produced, and the proposals carried beside it.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<bool>
true when the compaction was recorded; false when the answer is no longer being composed.
Exceptions
- ArgumentNullException
Thrown when
compactionis null.- ArgumentException
Thrown when the compaction was taken for another answer.