Skip to content

ITenantProviderBindingStore

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The store for per-tenant model provider bindings (BYOK).

public interface ITenantProviderBindingStore

This store never writes or reads a secret value, only the name of the configuration key the value is read from at call time.

DeleteAsync(string, string, CancellationToken)

Section titled “ DeleteAsync(string, string, CancellationToken)”

Deletes a tenant’s binding for a provider.

ValueTask<bool> DeleteAsync(string tenantId, string providerName, CancellationToken cancellationToken = default)

tenantId string

The tenant identifier.

providerName string

The provider name.

cancellationToken CancellationToken

The cancellation token.

ValueTask<bool>

true if a binding was found and deleted.

GetAsync(string, string, CancellationToken)

Section titled “ GetAsync(string, string, CancellationToken)”

Reads a single tenant’s binding for a provider.

ValueTask<TenantProviderBinding?> GetAsync(string tenantId, string providerName, CancellationToken cancellationToken = default)

tenantId string

The tenant identifier.

providerName string

The provider name.

cancellationToken CancellationToken

The cancellation token.

ValueTask<TenantProviderBinding?>

The binding; null if none exists.

Lists every provider binding of a tenant.

ValueTask<IReadOnlyList<TenantProviderBinding>> ListAsync(string tenantId, CancellationToken cancellationToken = default)

tenantId string

The tenant identifier.

cancellationToken CancellationToken

The cancellation token.

ValueTask<IReadOnlyList<TenantProviderBinding>>

The bindings, by provider name.

UpsertAsync(TenantProviderBinding, CancellationToken)

Section titled “ UpsertAsync(TenantProviderBinding, CancellationToken)”

Creates or replaces a tenant’s binding for a provider.

ValueTask UpsertAsync(TenantProviderBinding binding, CancellationToken cancellationToken = default)

binding TenantProviderBinding

The binding to save.

cancellationToken CancellationToken

The cancellation token.

ValueTask

The completion task.