Table of Contents

Method ResolveAsync

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

ResolveAsync(string, CancellationToken)

Resolves the credential configured for one endpoint.

Task<EmbeddingEndpointCredential> ResolveAsync(string endpointAlias, CancellationToken cancellationToken)

Parameters

endpointAlias string

The deployment's own name for the endpoint.

cancellationToken CancellationToken

Cancels the resolution.

Returns

Task<EmbeddingEndpointCredential>

The credential, owned by the caller and released when the request that asked for it ends.

Exceptions

ArgumentException

Thrown when the alias is blank.

InvalidOperationException

Thrown when the alias names no configured endpoint, or its credential cannot be resolved.