mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-29 21:11:38 +00:00
19 lines
670 B
C#
19 lines
670 B
C#
|
|
using System.Collections.Generic;
|
|||
|
|
|
|||
|
|
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|||
|
|
|
|||
|
|
public class AssistantProfileSelection : AssistantComponentBase
|
|||
|
|
{
|
|||
|
|
public override AssistantUiCompontentType Type => AssistantUiCompontentType.PROFILE_SELECTION;
|
|||
|
|
public Dictionary<string, object> Props { get; set; } = new();
|
|||
|
|
public List<IAssistantComponent> Children { get; set; } = new();
|
|||
|
|
|
|||
|
|
public string ValidationMessage
|
|||
|
|
{
|
|||
|
|
get => this.Props.TryGetValue(nameof(this.ValidationMessage), out var v)
|
|||
|
|
? v.ToString() ?? string.Empty
|
|||
|
|
: string.Empty;
|
|||
|
|
set => this.Props[nameof(this.ValidationMessage)] = value;
|
|||
|
|
}
|
|||
|
|
}
|