mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 15:21:37 +00:00
19 lines
759 B
C#
19 lines
759 B
C#
|
|
namespace AIStudio.Tools.PluginSystem;
|
|||
|
|
|
|||
|
|
public class AssistantProviderSelection : AssistantComponentBase
|
|||
|
|
{
|
|||
|
|
public override AssistantUiCompontentType Type => AssistantUiCompontentType.PROVIDER_SELECTION;
|
|||
|
|
public Dictionary<string, object> Props { get; set; } = new();
|
|||
|
|
public List<IAssistantComponent> Children { get; set; } = new();
|
|||
|
|
|
|||
|
|
public string Name
|
|||
|
|
{
|
|||
|
|
get => this.Props.TryGetValue(nameof(this.Name), out var v) ? v.ToString() ?? string.Empty : string.Empty;
|
|||
|
|
set => this.Props[nameof(this.Name)] = value;
|
|||
|
|
}
|
|||
|
|
public string Label
|
|||
|
|
{
|
|||
|
|
get => this.Props.TryGetValue(nameof(this.Label), out var v) ? v.ToString() ?? string.Empty : string.Empty;
|
|||
|
|
set => this.Props[nameof(this.Label)] = value;
|
|||
|
|
}
|
|||
|
|
}
|