Table of Contents

Method ProviderFailed

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

ProviderFailed(int, EmbeddingGenerationFailure, int)

Reports a provider call that ended without vectors, after whatever this turn had already committed.

public static StoredEmailEmbeddingRun ProviderFailed(int embeddedChunkCount, EmbeddingGenerationFailure failure, int inputCharacterCount = 0)

Parameters

embeddedChunkCount int

How many passages were committed before the failing call.

failure EmbeddingGenerationFailure

Why the call produced nothing.

inputCharacterCount int

How many characters the turn had sent before the failing call.

Returns

StoredEmailEmbeddingRun

The result.

Remarks

The failing call's own characters are deliberately not counted. A provider that answered with a refusal, a timeout, or a transport fault produced no vectors, and charging a budget for it would let an unreachable endpoint spend a period's ceiling on nothing.

Exceptions

ArgumentOutOfRangeException

Thrown when a count is negative, or the failure is not a defined member.