ITenantProviderBindingStore
AgentPrism.Abstractions.dllThe store for per-tenant model provider bindings (BYOK).
public interface ITenantProviderBindingStoreRemarks
Section titled “Remarks”This store never writes or reads a secret value, only the name of the configuration key the value is read from at call time.
Methods
Section titled “Methods”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)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
providerName string
The provider name.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
providerName string
The provider name.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<TenantProviderBinding?>
The binding; null if none exists.
ListAsync(string, CancellationToken)
Section titled “ ListAsync(string, CancellationToken)”Lists every provider binding of a tenant.
ValueTask<IReadOnlyList<TenantProviderBinding>> ListAsync(string tenantId, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”binding TenantProviderBinding
The binding to save.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”The completion task.