mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-05 03:29:40 +00:00
Add ERI server assistant (#231)
This commit is contained in:
1 parent
cdf717ad5f
commit
8cbef49d89
76 files changed
+3581
-153
No files matched your search
@@ -57,6 +57,8 @@ public sealed class Data
|
||||
public DataTranslation Translation { get; init; } = new();
|
||||
|
||||
public DataCoding Coding { get; init; } = new();
|
||||
|
||||
public DataERI ERI { get; init; } = new();
|
||||
|
||||
public DataTextSummarizer TextSummarizer { get; init; } = new();
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
using AIStudio.Provider;
|
||||
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public sealed class DataERI
|
||||
{
|
||||
/// <summary>
|
||||
/// Should we automatically save any input made in the ERI assistant?
|
||||
/// </summary>
|
||||
public bool AutoSaveChanges { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any ERI options?
|
||||
/// </summary>
|
||||
public bool PreselectOptions { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Data for the ERI servers.
|
||||
/// </summary>
|
||||
public List<DataERIServer> ERIServers { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// The minimum confidence level required for a provider to be considered.
|
||||
/// </summary>
|
||||
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// Which coding provider should be preselected?
|
||||
/// </summary>
|
||||
public string PreselectedProvider { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a profile?
|
||||
/// </summary>
|
||||
public string PreselectedProfile { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
using AIStudio.Assistants.ERI;
|
||||
|
||||
using OperatingSystem = AIStudio.Assistants.ERI.OperatingSystem;
|
||||
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public sealed class DataERIServer
|
||||
{
|
||||
/// <summary>
|
||||
/// Preselect the server name?
|
||||
/// </summary>
|
||||
public string ServerName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the server description?
|
||||
/// </summary>
|
||||
public string ServerDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the ERI version?
|
||||
/// </summary>
|
||||
public ERIVersion ERIVersion { get; set; } = ERIVersion.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the language for implementing the ERI?
|
||||
/// </summary>
|
||||
public ProgrammingLanguages ProgrammingLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to preselect any other language?
|
||||
/// </summary>
|
||||
public string OtherProgrammingLanguage { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a data source?
|
||||
/// </summary>
|
||||
public DataSources DataSource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to preselect a product name for the data source?
|
||||
/// </summary>
|
||||
public string DataSourceProductName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to preselect any other data source?
|
||||
/// </summary>
|
||||
public string OtherDataSource { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to preselect a hostname for the data source?
|
||||
/// </summary>
|
||||
public string DataSourceHostname { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to preselect a port for the data source?
|
||||
/// </summary>
|
||||
public int? DataSourcePort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Did the user type the port number?
|
||||
/// </summary>
|
||||
public bool UserTypedPort { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any authentication methods?
|
||||
/// </summary>
|
||||
public HashSet<Auth> AuthMethods { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to preselect any authentication description?
|
||||
/// </summary>
|
||||
public string AuthDescription { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to preselect an operating system? This is necessary when SSO with Kerberos is used.
|
||||
/// </summary>
|
||||
public OperatingSystem OperatingSystem { get; set; } = OperatingSystem.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to preselect which LLM providers are allowed?
|
||||
/// </summary>
|
||||
public AllowedLLMProviders AllowedLLMProviders { get; set; } = AllowedLLMProviders.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to predefine any embedding information?
|
||||
/// </summary>
|
||||
public List<EmbeddingInfo> EmbeddingInfos { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to predefine any retrieval information?
|
||||
/// </summary>
|
||||
public List<RetrievalInfo> RetrievalInfos { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to preselect any additional libraries?
|
||||
/// </summary>
|
||||
public string AdditionalLibraries { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Do you want to write all generated code to the filesystem?
|
||||
/// </summary>
|
||||
public bool WriteToFilesystem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The base directory where to write the generated code to.
|
||||
/// </summary>
|
||||
public string BaseDirectory { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// We save which files were generated previously.
|
||||
/// </summary>
|
||||
public List<string> PreviouslyGeneratedFiles { get; set; } = new();
|
||||
}
|
||||
Reference in new issue
Block a user