Class StoredEmailEmbeddingRun
- Namespace
- MailFathom.Application.Emails.Embeddings.Generation
- Assembly
- MailFathom.Application.dll
What one message's turn at being embedded produced.
public sealed record StoredEmailEmbeddingRun : IEquatable<StoredEmailEmbeddingRun>
- Inheritance
-
StoredEmailEmbeddingRun
- Implements
- Inherited Members
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.
Constructors
- StoredEmailEmbeddingRun(StoredEmailEmbeddingOutcome, int, int, EmbeddingGenerationFailure?, DateTimeOffset?)
What one message's turn at being embedded produced.
Properties
- EmbeddedChunkCount
How many passages were given a vector and committed during this turn.
- Failure
Why a provider call produced nothing, present exactly when
Outcomeis ProviderFailed.
- InputCharacterCount
How many characters this turn sent to a provider, which is what its spend was counted in.
- Outcome
How the turn ended.
- SpendPeriodEndsAt
When the budget period rolls over, present exactly when
Outcomeis SpendCeilingReached.
Methods
- CallBudgetExhausted(int, int)
Reports a message whose turn spent every provider call it is allowed with passages still outstanding.
- Embedded(int, int)
Reports a message every passage of which now carries a vector.
- GeneratorDisagreesWithProfile()
Reports a generator whose vector space is not the one the active profile records.
- NoActiveProfile()
Reports an instance that has activated no profile.
- ProviderFailed(int, EmbeddingGenerationFailure, int)
Reports a provider call that ended without vectors, after whatever this turn had already committed.
- SpendCeilingReached(int, int, DateTimeOffset)
Reports a turn stopped by the period's spend ceiling, after whatever it had already committed.