Method SpendCeilingReached
- Namespace
- MailFathom.Application.Emails.Embeddings.Vectorization
- Assembly
- MailFathom.Application.dll
SpendCeilingReached(int, int, DateTimeOffset, EmbeddingSpendBound)
Reports a turn stopped by the period's spend ceiling, after whatever it had already committed.
public static StoredEmailEmbeddingRun SpendCeilingReached(int embeddedChunkCount, int inputCharacterCount, DateTimeOffset spendPeriodEndsAt, EmbeddingSpendBound reachedSpendBound)
Parameters
embeddedChunkCountintHow many passages the turn committed a vector for before the ceiling bound.
inputCharacterCountintHow many characters the turn sent before it stopped.
spendPeriodEndsAtDateTimeOffsetWhen the period rolls over, which is when work resumes without anyone acting.
reachedSpendBoundEmbeddingSpendBoundWhich of the two ceilings stopped it, which is what decides whose ceiling an operator would raise.
Returns
- StoredEmailEmbeddingRun
The result.
Exceptions
- ArgumentOutOfRangeException
Thrown when a count is negative, or no bound is named.