2026-02-24 16:21:50 +00:00
|
|
|
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|
|
|
|
|
|
|
|
|
internal sealed class AssistantProviderSelection : AssistantComponentBase
|
2025-07-21 12:38:08 +00:00
|
|
|
{
|
2026-02-24 10:39:17 +00:00
|
|
|
public override AssistantComponentType Type => AssistantComponentType.PROVIDER_SELECTION;
|
2025-07-21 12:38:08 +00:00
|
|
|
public Dictionary<string, object> Props { get; set; } = new();
|
|
|
|
|
public List<IAssistantComponent> Children { get; set; } = new();
|
|
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
2026-02-24 16:21:50 +00:00
|
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Name));
|
|
|
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Name), value);
|
2025-07-21 12:38:08 +00:00
|
|
|
}
|
2026-02-24 16:21:50 +00:00
|
|
|
|
2025-07-21 12:38:08 +00:00
|
|
|
public string Label
|
|
|
|
|
{
|
2026-02-24 16:21:50 +00:00
|
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Label));
|
|
|
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Label), 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);
|
2025-07-21 12:38:08 +00:00
|
|
|
}
|
2026-02-24 16:21:50 +00:00
|
|
|
}
|