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
endpointAliasstringThe deployment's own name for the endpoint.
cancellationTokenCancellationTokenCancels 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.