Added a common ERI data source interface

This commit is contained in:
Thorsten Sommer 2025-01-06 20:44:52 +01:00
parent b473010664
commit ef9e9ebdd8
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 13 additions and 1 deletions

View File

@ -6,7 +6,7 @@ namespace AIStudio.Settings.DataModel;
/// <summary>
/// An external data source, accessed via an ERI server, cf. https://github.com/MindWorkAI/ERI.
/// </summary>
public readonly record struct DataSourceERI_V1 : IExternalDataSource
public readonly record struct DataSourceERI_V1 : IERIDataSource
{
public DataSourceERI_V1()
{

View File

@ -0,0 +1,12 @@
using ERI_Client.V1;
namespace AIStudio.Settings;
public interface IERIDataSource : IExternalDataSource
{
public string Hostname { get; init; }
public int Port { get; init; }
public AuthMethod AuthMethod { get; init; }
}