mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-04-09 19:41:37 +00:00
29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
|
|
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||
|
|
|
||
|
|
internal sealed class AssistantText : AssistantComponentBase
|
||
|
|
{
|
||
|
|
public override AssistantComponentType Type => AssistantComponentType.TEXT;
|
||
|
|
|
||
|
|
public override Dictionary<string, object> Props { get; set; } = new();
|
||
|
|
|
||
|
|
public override List<IAssistantComponent> Children { get; set; } = new();
|
||
|
|
|
||
|
|
public string Content
|
||
|
|
{
|
||
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Content));
|
||
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Content), value);
|
||
|
|
}
|
||
|
|
|
||
|
|
public string Class
|
||
|
|
{
|
||
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Class));
|
||
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Class), value);
|
||
|
|
}
|
||
|
|
|
||
|
|
public string Style
|
||
|
|
{
|
||
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Style));
|
||
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Style), value);
|
||
|
|
}
|
||
|
|
}
|