Class DiscoveryRunPlan
- Namespace
- MailFathom.Application.Discovery.Planning
- Assembly
- MailFathom.Application.dll
What one question decided: what it is asking for, what to retrieve, and what shape the result takes.
public sealed record DiscoveryRunPlan : IEquatable<DiscoveryRunPlan>
- Inheritance
-
DiscoveryRunPlan
- Implements
- Inherited Members
Remarks
The two halves are one decision made over one reading of the question, which is why they are derived together and carried together. A run that retrieved first and then asked separately how to present what it found would present whatever it happened to retrieve.
The composition is derived rather than chosen. A model reads the question and answers with an intent and the lookups that intent implies; which blocks follow from that intent is ComposedFor(DiscoveryIntent)'s to say, in code. That is what makes the product's mapping an invariant rather than an instruction a model may drift from, and it is what makes the same question over the same scope and corpus yield the same composition — the block types depend on the intent alone, so nothing about a provider's wording reaches them.
Properties
- Composition
Gets the block types the result is composed of, in the order they are presented.
- Intent
Gets what the question is asking for.
- Retrieval
Gets how the question is looked for.
Methods
- Compose(DiscoveryIntent, RetrievalPlan)
Composes the plan for an intent and the retrieval it implies.