mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-08 14:29:40 +00:00
Added a rewrite and text improvement assistant (#73)
This commit is contained in:
1 parent
05a7e44de4
commit
3e59f23193
15 files changed
+302
-11
No files matched your search
@@ -1,6 +1,7 @@
|
||||
using AIStudio.Components.Pages.Agenda;
|
||||
using AIStudio.Components.Pages.Coding;
|
||||
using AIStudio.Components.Pages.IconFinder;
|
||||
using AIStudio.Components.Pages.RewriteImprove;
|
||||
using AIStudio.Components.Pages.TextSummarizer;
|
||||
using AIStudio.Settings.DataModel;
|
||||
using AIStudio.Tools;
|
||||
@@ -99,4 +100,10 @@ public static class ConfigurationSelectDataFactory
|
||||
foreach (var number in Enum.GetValues<NumberParticipants>())
|
||||
yield return new(number.Name(), number);
|
||||
}
|
||||
|
||||
public static IEnumerable<ConfigurationSelectData<WritingStyles>> GetWritingStylesData()
|
||||
{
|
||||
foreach (var style in Enum.GetValues<WritingStyles>())
|
||||
yield return new(style.Name(), style);
|
||||
}
|
||||
}
|
||||
@@ -38,4 +38,8 @@ public sealed class Data
|
||||
public DataTextContentCleaner TextContentCleaner { get; init; } = new();
|
||||
|
||||
public DataAgenda Agenda { get; init; } = new();
|
||||
|
||||
public DataGrammarSpelling GrammarSpelling { get; init; } = new();
|
||||
|
||||
public DataRewriteImprove RewriteImprove { get; init; } = new();
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using AIStudio.Tools;
|
||||
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public sealed class DataGrammarSpelling
|
||||
{
|
||||
/// <summary>
|
||||
/// Preselect any rewrite options?
|
||||
/// </summary>
|
||||
public bool PreselectOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the target language?
|
||||
/// </summary>
|
||||
public CommonLanguages PreselectedTargetLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any other language?
|
||||
/// </summary>
|
||||
public string PreselectedOtherLanguage { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a provider?
|
||||
/// </summary>
|
||||
public string PreselectedProvider { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using AIStudio.Components.Pages.RewriteImprove;
|
||||
using AIStudio.Tools;
|
||||
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public sealed class DataRewriteImprove
|
||||
{
|
||||
/// <summary>
|
||||
/// Preselect any rewrite options?
|
||||
/// </summary>
|
||||
public bool PreselectOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect the target language?
|
||||
/// </summary>
|
||||
public CommonLanguages PreselectedTargetLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any other language?
|
||||
/// </summary>
|
||||
public string PreselectedOtherLanguage { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Preselect any writing style?
|
||||
/// </summary>
|
||||
public WritingStyles PreselectedWritingStyle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Preselect a provider?
|
||||
/// </summary>
|
||||
public string PreselectedProvider { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in new issue
Block a user