mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 11:59:48 +00:00
Added documentation to data source types
This commit is contained in:
parent
6d3f1f85fc
commit
c62bcb11f4
@ -1,11 +1,27 @@
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
/// <summary>
|
||||
/// AI Studio data source types.
|
||||
/// </summary>
|
||||
public enum DataSourceType
|
||||
{
|
||||
/// <summary>
|
||||
/// No data source.
|
||||
/// </summary>
|
||||
NONE = 0,
|
||||
|
||||
/// <summary>
|
||||
/// One file on the local machine (or a network share).
|
||||
/// </summary>
|
||||
LOCAL_FILE,
|
||||
|
||||
/// <summary>
|
||||
/// A directory on the local machine (or a network share).
|
||||
/// </summary>
|
||||
LOCAL_DIRECTORY,
|
||||
|
||||
/// <summary>
|
||||
/// External data source accessed via an ERI server, cf. https://github.com/MindWorkAI/ERI.
|
||||
/// </summary>
|
||||
ERI,
|
||||
}
|
@ -1,7 +1,15 @@
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
/// <summary>
|
||||
/// Extension methods for data source types.
|
||||
/// </summary>
|
||||
public static class DataSourceTypeExtension
|
||||
{
|
||||
/// <summary>
|
||||
/// Get the display name of the data source type.
|
||||
/// </summary>
|
||||
/// <param name="type">The data source type.</param>
|
||||
/// <returns>The display name of the data source type.</returns>
|
||||
public static string GetDisplayName(this DataSourceType type)
|
||||
{
|
||||
return type switch
|
||||
|
Loading…
Reference in New Issue
Block a user