mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 09:41:36 +00:00
33 lines
1.3 KiB
C#
33 lines
1.3 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"]
|
|
),
|
|
};
|
|
} |