Enum AttachmentDerivationStep
- Namespace
- MailFathom.Application.Emails.AttachmentText.Limits
- Assembly
- MailFathom.Application.dll
Which step of reading an attachment a ceiling bounds, and therefore what unit it is counted in.
public enum AttachmentDerivationStep
Fields
Description = 1Asking a chat provider what a picture shows, counted in the calls made.
Extraction = 0Reading a document attachment's own text, counted in the octets a parser was handed.
A parser was handed them, rather than a walk having stepped over them: a picture, a format nothing here parses, and one the declared size already puts past the per-attachment input ceiling are each decided from the declaration alone and are charged nothing. Charging what a walk saw would let a mailbox of pictures spend the ceiling a mailbox of documents is bounded by, which is exactly the independence the two steps exist for.
Remarks
The two steps cost different things and neither figure predicts the other, which is why they are counted apart rather than converted into one unit that would fit neither. ADR 0029 puts extraction's ceilings beside the embedding ones and counts them in what extraction reads; ADR 0030 adds a step whose cost is a chat call rather than a parse, and a call is priced per request rather than per octet.
Embedding is deliberately not a member. ADR 0029 decision 2 states that an attachment-derived passage is the same
kind of passage under one profile with no second ceiling on what may be sent — a character out of a document costs
exactly what a character out of a body costs — so what bounds it is Embeddings:MaxInputCharactersPerPeriod
and its per-user companion, which already do. Cutting passages is not a member either: it reaches no provider, and
what it grows is storage, which is reported beside the extraction figures rather than paced by a ceiling that prices
a provider call.