Method ComposeAsync
- Namespace
- MailFathom.Application.Discovery.Runs
- Assembly
- MailFathom.Application.dll
ComposeAsync(MailQuestion, DiscoveryRunPlan, DiscoveryEvidence, IReadOnlyList<AccountCoverage>, UserLanguage, CancellationToken)
Composes the plan for one question, from what the run retrieved and what it read of its own accounts.
Task<PresentationPlan> ComposeAsync(MailQuestion question, DiscoveryRunPlan plan, DiscoveryEvidence evidence, IReadOnlyList<AccountCoverage> coverage, UserLanguage language, CancellationToken cancellationToken)
Parameters
questionMailQuestionThe question, whose words are what the answer is judged against.
planDiscoveryRunPlanWhat the question was read as, which fixes the blocks the result is composed of.
evidenceDiscoveryEvidenceThe passages the run may answer from, and what running the plan took.
coverageIReadOnlyList<AccountCoverage>What the run read, one entry per account its scope reached.
languageUserLanguageThe language the person the result is for reads, which every sentence the service writes into it itself is in.
cancellationTokenCancellationTokenCancels the composition.
Returns
- Task<PresentationPlan>
The plan.
Exceptions
- ArgumentNullException
Thrown when
question,plan,evidence, orcoverageis null.- OperationCanceledException
Thrown when the caller cancels.