mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-21 02:55:49 +00:00
Improved the assistants page with categories for assistant plugins (#1211)
This commit is contained in:
1 parent
ef059ffd15
commit
1db0f85898
74 files changed
+3392
-380
No files matched your search
@@ -59,7 +59,18 @@ public partial class EnumSelection<T> : EnumSelectionBase where T : struct, Enum
|
||||
|
||||
[Parameter]
|
||||
public Func<T, Task> SelectionUpdated { get; set; } = _ => Task.CompletedTask;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the values to offer, in the order to show them.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Without it, the selection offers every value of the enum in the order of its declaration.
|
||||
/// </remarks>
|
||||
[Parameter]
|
||||
public IReadOnlyList<T>? Values { get; set; }
|
||||
|
||||
private IReadOnlyList<T> OfferedValues => this.Values ?? Enum.GetValues<T>();
|
||||
|
||||
[Inject]
|
||||
private SettingsManager SettingsManager { get; set; } = null!;
|
||||
|
||||
|
||||
Reference in new issue
Block a user