Table of Contents

Method FromApiKey

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

FromApiKey(string, IDisposable?)

Builds a credential that presents a provider-issued key.

public static EmbeddingEndpointCredential FromApiKey(string apiKey, IDisposable? resolvedMaterial)

Parameters

apiKey string

The resolved key.

resolvedMaterial IDisposable

The secret material the key was read from, released when this credential is, or null when the caller holds none.

Returns

EmbeddingEndpointCredential

The credential.

Exceptions

ArgumentException

Thrown when the key is blank.