Table of Contents

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

embeddedChunkCount int

How many passages the turn committed a vector for before the ceiling bound.

inputCharacterCount int

How many characters the turn sent before it stopped.

spendPeriodEndsAt DateTimeOffset

When the period rolls over, which is when work resumes without anyone acting.

reachedSpendBound EmbeddingSpendBound

Which 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.