AI-Studio/app/MindWork AI Studio/Tools/PluginSystem/Assistants/DataModel/AssistantText.cs

18 lines
588 B
C#
Raw Normal View History

namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
public class AssistantText : AssistantComponentBase
{
public override AssistantUiCompontentType Type => AssistantUiCompontentType.TEXT;
public Dictionary<string, object> Props { get; set; } = new();
public List<IAssistantComponent> Children { get; set; } = new();
public string Content
{
get => this.Props.TryGetValue(nameof(this.Content), out var v)
? v.ToString() ?? string.Empty
: string.Empty;
set => this.Props[nameof(this.Content)] = value;
}
}