Table of Contents

Constructor StoredEmailEmbeddingRun

Namespace
MailFathom.Application.Emails.Embeddings.Vectorization
Assembly
MailFathom.Application.dll

StoredEmailEmbeddingRun(StoredEmailEmbeddingOutcome, int, int, EmbeddingGenerationFailure?, DateTimeOffset?, EmbeddingSpendBound)

What one message's turn at being embedded produced.

public StoredEmailEmbeddingRun(StoredEmailEmbeddingOutcome Outcome, int EmbeddedChunkCount, int InputCharacterCount, EmbeddingGenerationFailure? Failure, DateTimeOffset? SpendPeriodEndsAt, EmbeddingSpendBound ReachedSpendBound = EmbeddingSpendBound.None)

Parameters

Outcome StoredEmailEmbeddingOutcome

How the turn ended.

EmbeddedChunkCount int

How many passages were given a vector and committed during this turn.

InputCharacterCount int

How many characters this turn sent to a provider, which is what its spend was counted in.

Failure EmbeddingGenerationFailure?

Why a provider call produced nothing, present exactly when Outcome is ProviderFailed.

SpendPeriodEndsAt DateTimeOffset?

When the budget period rolls over, present exactly when Outcome is SpendCeilingReached.

ReachedSpendBound EmbeddingSpendBound

Which of the two spend ceilings stopped the turn, None unless one did.

Remarks

Counts and classifications only. The message identity, its passages, and the vectors they became are all mail content or derived from it, and none of them belongs in something a worker logs.