Method ComposeAsync
- Namespace
- MailFathom.Application.Agent.Answering
- Assembly
- MailFathom.Application.dll
ComposeAsync(AgentAnswerBrief, AgentAnswerJournal, CancellationToken)
Composes the answer.
Task<IReadOnlyList<PresentationText>> ComposeAsync(AgentAnswerBrief brief, AgentAnswerJournal journal, CancellationToken cancellationToken)
Parameters
briefAgentAnswerBriefThe question, the language, and the conversation before it.
journalAgentAnswerJournalWhere every part of the answer is written the moment it exists.
cancellationTokenCancellationTokenCancels the run: a stop, the run's own ceiling on time, or the process stopping.
Returns
- Task<IReadOnlyList<PresentationText>>
The questions the agent suggests asking next, each one an IsAskable(PresentationText) line, and empty where it suggested none.