using AIStudio.Provider;
namespace AIStudio.AIOperations;
///
/// What is known about one provider which an AI operation might use.
///
///
/// AIOperationProviderResolver gathers these facts from the settings, and AIOperationProviderChoice decides
/// on them alone. That keeps the decision apart from the settings and easy to test.
///
/// The configured provider; Provider.NONE when nobody named one or when it is missing.
/// Whether somebody named a provider here at all.
/// Whether the named provider is configured.
/// Whether the organization prohibited the provider.
/// The confidence level of the provider.
/// What the check of the caller found; NONE when the provider passed it or when there is no such check.
public sealed record AIOperationProviderCandidate(Settings.Provider Provider, bool IsNamed, bool Exists, bool IsProhibited, ConfidenceLevel Confidence, AIOperationProviderIssue CallerIssue)
{
///
/// A candidate which nobody named.
///
public static readonly AIOperationProviderCandidate NOT_NAMED = new(Settings.Provider.NONE, false, false, false, ConfidenceLevel.NONE, AIOperationProviderIssue.NONE);
///
/// A candidate whose provider is no longer configured.
///
public static readonly AIOperationProviderCandidate MISSING = new(Settings.Provider.NONE, true, false, false, ConfidenceLevel.NONE, AIOperationProviderIssue.NONE);
}