// Copyright (c) Microsoft. All rights reserved.
namespace VectorStoreRAG;
///
/// Class for generating unique keys via a provided function.
///
/// The type of key to generate.
/// The function to generate the key with.
internal sealed class UniqueKeyGenerator(Func generator)
where TKey : notnull
{
///
/// Generate a unique key.
///
/// The unique key that was generated.
public TKey GenerateKey() => generator();
}