mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 22:29:07 +00:00
31 lines
788 B
C#
31 lines
788 B
C#
namespace AIStudio.Settings.DataModel;
|
|
|
|
/// <summary>
|
|
/// Represents one local file as a data source.
|
|
/// </summary>
|
|
public readonly record struct DataSourceLocalFile : IInternalDataSource
|
|
{
|
|
public DataSourceLocalFile()
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public uint Num { get; init; }
|
|
|
|
/// <inheritdoc />
|
|
public string Id { get; init; } = Guid.Empty.ToString();
|
|
|
|
/// <inheritdoc />
|
|
public string Name { get; init; } = string.Empty;
|
|
|
|
/// <inheritdoc />
|
|
public DataSourceType Type { get; init; } = DataSourceType.NONE;
|
|
|
|
/// <inheritdoc />
|
|
public string EmbeddingId { get; init; } = Guid.Empty.ToString();
|
|
|
|
/// <summary>
|
|
/// The path to the file.
|
|
/// </summary>
|
|
public string FilePath { get; init; } = string.Empty;
|
|
} |