mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-30 22:11:37 +00:00
fixed inheritance flaws
This commit is contained in:
parent
379940caf8
commit
ee94d8559d
@ -3,8 +3,8 @@
|
||||
internal sealed class AssistantButton : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.BUTTON;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string Name
|
||||
{
|
||||
|
||||
@ -3,6 +3,6 @@
|
||||
public abstract class AssistantComponentBase : IAssistantComponent
|
||||
{
|
||||
public abstract AssistantComponentType Type { get; }
|
||||
public Dictionary<string, object> Props { get; }
|
||||
public List<IAssistantComponent> Children { get; }
|
||||
}
|
||||
public abstract Dictionary<string, object> Props { get; set; }
|
||||
public abstract List<IAssistantComponent> Children { get; set; }
|
||||
}
|
||||
|
||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||||
internal sealed class AssistantDropdown : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.DROPDOWN;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string Name
|
||||
{
|
||||
|
||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||||
internal sealed class AssistantFileContentReader : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.FILE_CONTENT_READER;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string Name
|
||||
{
|
||||
|
||||
@ -3,6 +3,6 @@
|
||||
public class AssistantForm : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.FORM;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
}
|
||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||||
internal sealed class AssistantHeading : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.HEADING;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string Text
|
||||
{
|
||||
|
||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||||
internal sealed class AssistantImage : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.IMAGE;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string Src
|
||||
{
|
||||
|
||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||||
internal sealed class AssistantList : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.LIST;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public List<AssistantListItem> Items
|
||||
{
|
||||
|
||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||||
internal sealed class AssistantProfileSelection : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.PROFILE_SELECTION;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string ValidationMessage
|
||||
{
|
||||
|
||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||||
internal sealed class AssistantProviderSelection : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.PROVIDER_SELECTION;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string Name
|
||||
{
|
||||
|
||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||||
internal sealed class AssistantSwitch : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.SWITCH;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string Name
|
||||
{
|
||||
|
||||
@ -4,9 +4,9 @@ internal sealed class AssistantText : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.TEXT;
|
||||
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string Content
|
||||
{
|
||||
|
||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||||
internal sealed class AssistantTextArea : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.TEXT_AREA;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string Name
|
||||
{
|
||||
|
||||
@ -3,8 +3,8 @@ namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||||
internal sealed class AssistantWebContentReader : AssistantComponentBase
|
||||
{
|
||||
public override AssistantComponentType Type => AssistantComponentType.WEB_CONTENT_READER;
|
||||
public Dictionary<string, object> Props { get; set; } = new();
|
||||
public List<IAssistantComponent> Children { get; set; } = new();
|
||||
public override Dictionary<string, object> Props { get; set; } = new();
|
||||
public override List<IAssistantComponent> Children { get; set; } = new();
|
||||
|
||||
public string Name
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user