mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 23:27:22 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
14 lines
727 B
C#
14 lines
727 B
C#
namespace AIStudio.Tools.UserAPIKeys;
|
|
|
|
/// <summary>
|
|
/// The result of storing the API key of the user for the providers of one configuration plugin.
|
|
/// </summary>
|
|
/// <param name="Check">What the provider said about the key. A rejected key was not stored at all.</param>
|
|
/// <param name="FailedProviderNames">The names of the providers for which the key could not be stored.</param>
|
|
public sealed record UserAPIKeyStoreResult(UserAPIKeyCheckOutcome Check, IReadOnlyList<string> FailedProviderNames)
|
|
{
|
|
/// <summary>
|
|
/// The result for a key which the provider refused, so that it was not stored.
|
|
/// </summary>
|
|
public static readonly UserAPIKeyStoreResult REJECTED = new(UserAPIKeyCheckOutcome.REJECTED, []);
|
|
} |