Interface IDiscoveryResultComposer
- Namespace
- MailFathom.Application.Discovery.Runs
- Assembly
- MailFathom.Application.dll
Composes what a run found into the plan a client draws, saying per block what the correspondence does for it.
public interface IDiscoveryResultComposer
Remarks
The second of the two ports a Discover run reaches the model through, and the one that decides what the answer says rather than what to look for. It answers with a PresentationPlan rather than with prose, so nothing provider-shaped travels beyond this boundary and everything a model wrote has passed the contract's own rules before it reaches a screen.
A composition never fails and never refuses. A provider that did not answer, answered with something unreadable, or answered with claims resting on nothing still produces a plan — one saying the sources do not answer the question, which is a true statement about the run and is what the product owes somebody rather than an error. That is the whole reason this port returns a plan rather than an outcome to be interpreted.
Methods
- 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.