Table of Contents

Constructor MailAnsweringRunBounds

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

MailAnsweringRunBounds(int, int, long)

Creates bounds, refusing values no run could complete under.

[JsonConstructor]
public MailAnsweringRunBounds(int maximumRetrievedCharacters, int maximumProviderCalls, long maximumTokens)

Parameters

maximumRetrievedCharacters int

The greatest number of characters of retrieved mail one run may send.

maximumProviderCalls int

The greatest number of provider calls one run may make.

maximumTokens long

The greatest number of tokens one run may consume.

Remarks

Public because a Discover run's start event carries these bounds into its journal row, and the serializer that reads the row back is source-generated: source generation reaches no non-public member, so a constructor behind Create(int, int, long) left every stored run unreadable. It validates exactly what that factory validates, so the two are one construction path rather than a checked one and a way around it.

Exceptions

ArgumentOutOfRangeException

Thrown when a value is below one.