Table of Contents

Class MailQuestionText

Namespace
MailFathom.Application.Retrieval
Assembly
MailFathom.Application.dll

The question a caller asked about their mail, as it will reach a model.

public sealed record MailQuestionText : IEquatable<MailQuestionText>
Inheritance
MailQuestionText
Implements
Inherited Members

Remarks

A type of its own rather than a string parameter, for the reason the search query text is one: it is untrusted text that leaves the process, so the bound and the refusal are stated once and a reader of the port signature can see that what arrives there has already been checked.

The bound here is not the provider's. One chat call carries a declared character ceiling that an operator sets and that covers the whole conversation, including the instruction and whatever the run retrieves; this covers the one part a caller writes, and it is far below that ceiling so a question is refused where it was written rather than after a run has been composed around it.

A question is personal data of the same revealing kind a search query is — what somebody wants to know about their own mail — so it is never logged and no failure message repeats it.

Fields

MaximumLength

The greatest number of characters a question may carry.

Properties

Value

Gets the question as it will reach the model.

Methods

Create(string?)

Validates and normalizes the text a caller asked.

ToString()

Returns a string that represents the current object.