mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 14:21:37 +00:00
18 lines
588 B
C#
18 lines
588 B
C#
|
|
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;
|
||
|
|
}
|
||
|
|
}
|