mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 21:39:46 +00:00
Added a common ERI data source interface
This commit is contained in:
parent
b473010664
commit
ef9e9ebdd8
@ -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()
|
||||
{
|
||||
|
12
app/MindWork AI Studio/Settings/IERIDataSource.cs
Normal file
12
app/MindWork AI Studio/Settings/IERIDataSource.cs
Normal 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; }
|
||||
}
|
Loading…
Reference in New Issue
Block a user