Table of Contents

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

question MailQuestion

The question, whose words are what the answer is judged against.

plan DiscoveryRunPlan

What the question was read as, which fixes the blocks the result is composed of.

evidence DiscoveryEvidence

The passages the run may answer from, and what running the plan took.

coverage IReadOnlyList<AccountCoverage>

What the run read, one entry per account its scope reached.

language UserLanguage

The language the person the result is for reads, which every sentence the service writes into it itself is in.

cancellationToken CancellationToken

Cancels the composition.

Returns

Task<PresentationPlan>

The plan.

Exceptions

ArgumentNullException

Thrown when question, plan, evidence, or coverage is null.

OperationCanceledException

Thrown when the caller cancels.