Method SummarizeAsync
- Namespace
- MailFathom.Application.Agent.Answering
- Assembly
- MailFathom.Application.dll
SummarizeAsync(string?, IReadOnlyList<AgentHistoryTurn>, CancellationToken)
Summarises the turns since the last summary, together with that summary.
Task<string?> SummarizeAsync(string? previousSummary, IReadOnlyList<AgentHistoryTurn> turns, CancellationToken cancellationToken)
Parameters
previousSummarystringThe newest summary the conversation already holds, or null where it was never compacted.
turnsIReadOnlyList<AgentHistoryTurn>The turns written since that summary which the new one stands in for, oldest first.
cancellationTokenCancellationTokenCancels the run.