mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 20:41:37 +00:00
29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|
|
|
public static class ComponentPropSpecs
|
|
{
|
|
public static readonly IReadOnlyDictionary<AssistantUiCompontentType, PropSpec> SPECS =
|
|
new Dictionary<AssistantUiCompontentType, PropSpec>
|
|
{
|
|
[AssistantUiCompontentType.FORM] = new(
|
|
required: ["Children"],
|
|
optional: []
|
|
),
|
|
[AssistantUiCompontentType.TEXT_AREA] = new(
|
|
required: ["Name", "Label"],
|
|
optional: []
|
|
),
|
|
[AssistantUiCompontentType.BUTTON] = new(
|
|
required: ["Name", "Text", "Action"],
|
|
optional: []
|
|
),
|
|
[AssistantUiCompontentType.DROPDOWN] = new(
|
|
required: ["Name", "Label", "Default", "Items"],
|
|
optional: []
|
|
),
|
|
[AssistantUiCompontentType.PROVIDER_SELECTION] = new(
|
|
required: ["Name", "Label"],
|
|
optional: []
|
|
),
|
|
};
|
|
} |