mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 06:41:37 +00:00
45 lines
1.7 KiB
C#
45 lines
1.7 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: ["UserPrompt", "PrefillText", "ReadOnly", "IsSingleLine"]
|
|
),
|
|
[AssistantUiCompontentType.BUTTON] = new(
|
|
required: ["Name", "Text", "Action"],
|
|
optional: []
|
|
),
|
|
[AssistantUiCompontentType.DROPDOWN] = new(
|
|
required: ["Name", "Label", "Default", "Items"],
|
|
optional: ["UserPrompt"]
|
|
),
|
|
[AssistantUiCompontentType.PROVIDER_SELECTION] = new(
|
|
required: ["Name", "Label"],
|
|
optional: []
|
|
),
|
|
[AssistantUiCompontentType.SWITCH] = new(
|
|
required: ["Name", "Label", "LabelOn", "LabelOff", "Value"],
|
|
optional: ["UserPrompt"]
|
|
),
|
|
[AssistantUiCompontentType.HEADING] = new(
|
|
required: ["Text", "Level"],
|
|
optional: []
|
|
),
|
|
[AssistantUiCompontentType.TEXT] = new(
|
|
required: ["Content"],
|
|
optional: []
|
|
),
|
|
[AssistantUiCompontentType.LIST] = new(
|
|
required: ["Items"],
|
|
optional: []
|
|
),
|
|
};
|
|
} |