Table of Contents

Method FindDisagreement

Namespace
MailFathom.AI.Embeddings
Assembly
MailFathom.AI.dll

FindDisagreement(IReadOnlyList<EmbeddingEndpoint>)

Reports the first disagreement in a chain, or nothing when every endpoint declares one geometry.

public static string? FindDisagreement(IReadOnlyList<EmbeddingEndpoint> endpoints)

Parameters

endpoints IReadOnlyList<EmbeddingEndpoint>

The endpoints in the order they were declared.

Returns

string

A message naming the two endpoints and the property they differ on, or null when they agree.

Remarks

Every endpoint is compared against the first rather than against its predecessor, so the message always names the declaration the chain is measured by instead of whichever neighbour happened to differ.

Exceptions

ArgumentNullException

Thrown when endpoints is null.