Improved the assistants page with categories for assistant plugins (#1211)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-20 11:47:59 +01:00
1 parent ef059ffd15
commit 1db0f85898
74 files changed
+3392 -380

No files matched your search

@@ -0,0 +1,45 @@
using AIStudio.Tools.PluginSystem;
namespace AIStudio.Tests.Assistants;
/// <summary>
/// An assistant plugin, reduced to its metadata.
/// </summary>
/// <remarks>
/// Enough for everything which decides by the categories of a plugin, e.g., the sections of the
/// assistants page and the categories your organization disabled.
/// </remarks>
internal sealed class FakeAssistantPlugin(string name, PluginCategory[] categories, string[]? customCategories = null) : IPluginMetadata
{
public string IconDataUrl => string.Empty;
public PluginType Type => PluginType.ASSISTANT;
public Guid Id { get; } = Guid.NewGuid();
public string Name => name;
public string Description => string.Empty;
public PluginVersion Version => new(1, 0, 0);
public DateTimeOffset? LastChanged => null;
public string[] Authors => [];
public string SupportContact => string.Empty;
public string SourceURL => string.Empty;
public PluginCategory[] Categories => categories;
public string[] CustomCategories => customCategories ?? [];
public PluginTargetGroup[] TargetGroups => [];
public bool IsMaintained => true;
public string DeprecationMessage => string.Empty;
public bool IsInternal => false;
}