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

@@ -1,5 +1,6 @@
@attribute [Route(Routes.ASSISTANT_META_ASSISTANT)] @attribute [Route(Routes.ASSISTANT_META_ASSISTANT)]
@using AIStudio.Agents.AssistantAudit @using AIStudio.Agents.AssistantAudit
@using AIStudio.Tools.PluginSystem
@using AIStudio.Tools.PluginSystem.Assistants.DataModel @using AIStudio.Tools.PluginSystem.Assistants.DataModel
@inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogAssistantBuilder> @inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogAssistantBuilder>
@@ -50,7 +51,7 @@
{ {
<MudTextField T="string" @bind-Text="@this.assistantName" AdornmentIcon="@AppIcons.NAME" Adornment="Adornment.Start" IconSize="Size.Small" Label="@T("Display Name (Optional)")" Placeholder="@T("Meeting Task Extractor")" Variant="Variant.Outlined" Margin="Margin.Dense" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/> <MudTextField T="string" @bind-Text="@this.assistantName" AdornmentIcon="@AppIcons.NAME" Adornment="Adornment.Start" IconSize="Size.Small" Label="@T("Display Name (Optional)")" Placeholder="@T("Meeting Task Extractor")" Variant="Variant.Outlined" Margin="Margin.Dense" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/>
} }
<EnumSelection T="AssistantCategory" NameFunc="@(category => category.NameSelecting)" @bind-Value="@this.selectedCategory" ValidateSelection="@this.ValidatingCategory" Icon="@AppIcons.CATEGORY" IconSize="Size.Small" Label="@T("Category (Optional)")" AllowOther="@true" OtherValue="AssistantCategory.OTHER" @bind-OtherInput="@this.customCategory" ValidateOther="@this.ValidateCustomCategory" LabelOther="@T("Custom assistant category")" /> <EnumSelection T="PluginCategory" Values="@this.OfferedCategories" NameFunc="@this.NameOfCategory" @bind-Value="@this.selectedCategory" Icon="@AppIcons.CATEGORY" IconSize="Size.Small" Label="@T("Category (Optional)")" AllowOther="@true" OtherValue="PluginCategory.CUSTOM" @bind-OtherInput="@this.customCategory" ValidateOther="@this.ValidateCustomCategory" LabelOther="@T("Custom assistant category")" />
@if (!this.createChatLauncher) @if (!this.createChatLauncher)
{ {
<MudTextField T="string" @bind-Text="@this.typicalInput" AdornmentIcon="@AppIcons.INPUT" Adornment="Adornment.Start" IconSize="Size.Small" Label="@T("Typical input (Optional)")" Placeholder="@T("What users provide, e.g. text, notes, files, or a URL")" Variant="Variant.Outlined" Margin="Margin.Dense" Lines="3" Sizing="InputSizing.Auto" MaxLines="8" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/> <MudTextField T="string" @bind-Text="@this.typicalInput" AdornmentIcon="@AppIcons.INPUT" Adornment="Adornment.Start" IconSize="Size.Small" Label="@T("Typical input (Optional)")" Placeholder="@T("What users provide, e.g. text, notes, files, or a URL")" Variant="Variant.Outlined" Margin="Margin.Dense" Lines="3" Sizing="InputSizing.Auto" MaxLines="8" Class="mb-3" UserAttributes="@USER_INPUT_ATTRIBUTES"/>
@@ -97,7 +97,7 @@ public partial class AssistantBuilder : AssistantBaseCore<SettingsDialogAssistan
private bool isAuditingPlugin; private bool isAuditingPlugin;
private bool isEnablingPlugin; private bool isEnablingPlugin;
private string assistantDescription = string.Empty; private string assistantDescription = string.Empty;
private AssistantCategory selectedCategory; private PluginCategory selectedCategory;
private string customCategory = string.Empty; private string customCategory = string.Empty;
private string assistantName = string.Empty; private string assistantName = string.Empty;
private string typicalInput = string.Empty; private string typicalInput = string.Empty;
@@ -135,7 +135,7 @@ public partial class AssistantBuilder : AssistantBaseCore<SettingsDialogAssistan
private static readonly AssistantSessionStateKey<bool> IS_AUDITING_PLUGIN_STATE_KEY = new(nameof(isAuditingPlugin)); private static readonly AssistantSessionStateKey<bool> IS_AUDITING_PLUGIN_STATE_KEY = new(nameof(isAuditingPlugin));
private static readonly AssistantSessionStateKey<bool> IS_ENABLING_PLUGIN_STATE_KEY = new(nameof(isEnablingPlugin)); private static readonly AssistantSessionStateKey<bool> IS_ENABLING_PLUGIN_STATE_KEY = new(nameof(isEnablingPlugin));
private static readonly AssistantSessionStateKey<string> ASSISTANT_DESCRIPTION_STATE_KEY = new(nameof(assistantDescription)); private static readonly AssistantSessionStateKey<string> ASSISTANT_DESCRIPTION_STATE_KEY = new(nameof(assistantDescription));
private static readonly AssistantSessionStateKey<AssistantCategory> SELECTED_CATEGORY_STATE_KEY = new(nameof(selectedCategory)); private static readonly AssistantSessionStateKey<PluginCategory> SELECTED_CATEGORY_STATE_KEY = new(nameof(selectedCategory));
private static readonly AssistantSessionStateKey<string> CUSTOM_CATEGORY_STATE_KEY = new(nameof(customCategory)); private static readonly AssistantSessionStateKey<string> CUSTOM_CATEGORY_STATE_KEY = new(nameof(customCategory));
private static readonly AssistantSessionStateKey<string> ASSISTANT_NAME_STATE_KEY = new(nameof(assistantName)); private static readonly AssistantSessionStateKey<string> ASSISTANT_NAME_STATE_KEY = new(nameof(assistantName));
private static readonly AssistantSessionStateKey<string> TYPICAL_INPUT_STATE_KEY = new(nameof(typicalInput)); private static readonly AssistantSessionStateKey<string> TYPICAL_INPUT_STATE_KEY = new(nameof(typicalInput));
@@ -241,7 +241,7 @@ public partial class AssistantBuilder : AssistantBaseCore<SettingsDialogAssistan
this.pluginId = Guid.NewGuid(); this.pluginId = Guid.NewGuid();
this.step = BuilderStep.DESCRIBE; this.step = BuilderStep.DESCRIBE;
this.assistantDescription = string.Empty; this.assistantDescription = string.Empty;
this.selectedCategory = AssistantCategory.AS_IS; this.selectedCategory = PluginCategory.NONE;
this.customCategory = string.Empty; this.customCategory = string.Empty;
this.assistantName = string.Empty; this.assistantName = string.Empty;
this.typicalInput = string.Empty; this.typicalInput = string.Empty;
@@ -334,7 +334,8 @@ public partial class AssistantBuilder : AssistantBaseCore<SettingsDialogAssistan
state.Restore(IS_AUDITING_PLUGIN_STATE_KEY, value => this.isAuditingPlugin = value); state.Restore(IS_AUDITING_PLUGIN_STATE_KEY, value => this.isAuditingPlugin = value);
state.Restore(IS_ENABLING_PLUGIN_STATE_KEY, value => this.isEnablingPlugin = value); state.Restore(IS_ENABLING_PLUGIN_STATE_KEY, value => this.isEnablingPlugin = value);
state.Restore(ASSISTANT_DESCRIPTION_STATE_KEY, value => this.assistantDescription = value); state.Restore(ASSISTANT_DESCRIPTION_STATE_KEY, value => this.assistantDescription = value);
state.Restore(SELECTED_CATEGORY_STATE_KEY, value => this.selectedCategory = value); // A category your organization disabled meanwhile goes back to the choice of the model:
state.Restore(SELECTED_CATEGORY_STATE_KEY, value => this.selectedCategory = this.OfferedCategories.Contains(value) ? value : PluginCategory.NONE);
state.Restore(CUSTOM_CATEGORY_STATE_KEY, value => this.customCategory = value); state.Restore(CUSTOM_CATEGORY_STATE_KEY, value => this.customCategory = value);
state.Restore(ASSISTANT_NAME_STATE_KEY, value => this.assistantName = value); state.Restore(ASSISTANT_NAME_STATE_KEY, value => this.assistantName = value);
state.Restore(TYPICAL_INPUT_STATE_KEY, value => this.typicalInput = value); state.Restore(TYPICAL_INPUT_STATE_KEY, value => this.typicalInput = value);
@@ -374,16 +375,41 @@ public partial class AssistantBuilder : AssistantBaseCore<SettingsDialogAssistan
return null; return null;
} }
private string? ValidatingCategory(AssistantCategory category) /// <summary>
/// The choices of the category field: leaving it to the model, the categories of AI Studio in the
/// order of the assistants page, and a custom category last. Categories your organization disabled
/// are missing.
/// </summary>
private IReadOnlyList<PluginCategory> OfferedCategories
{ {
return null; get
{
var app = this.SettingsManager.ConfigurationData.App;
return AssistantBuilderCategories.IsCustomOfferedUnder(app)
? [PluginCategory.NONE, ..AssistantBuilderCategories.OfferedUnder(app), PluginCategory.CUSTOM]
: [PluginCategory.NONE, ..AssistantBuilderCategories.OfferedUnder(app)];
}
} }
private string NameOfCategory(PluginCategory category) => category switch
{
PluginCategory.NONE => T("Let the model choose"),
PluginCategory.CUSTOM => T("Other"),
_ => category.Name,
};
private string? ValidateCustomCategory(string category) private string? ValidateCustomCategory(string category)
{ {
if(this.selectedCategory is AssistantCategory.OTHER && string.IsNullOrWhiteSpace(category)) if (this.selectedCategory is not PluginCategory.CUSTOM)
return null;
if(string.IsNullOrWhiteSpace(category))
return TA("Please provide a custom category."); return TA("Please provide a custom category.");
if (this.SettingsManager.ConfigurationData.App.IsAssistantCategoryDisabled(new AssistantCategoryKey(PluginCategory.CUSTOM, category)))
return TA("Your organization disabled this category. Please choose another one.");
return null; return null;
} }
@@ -407,7 +433,7 @@ public partial class AssistantBuilder : AssistantBaseCore<SettingsDialogAssistan
var draft = await this.AssistantPluginGenerationService.GenerateAssistantDraftAsync( var draft = await this.AssistantPluginGenerationService.GenerateAssistantDraftAsync(
new( new(
this.assistantDescription, this.assistantDescription,
this.GetSelectedCategoryName(), this.GetSelectedCategoryForDraft(),
this.assistantName, this.assistantName,
this.createChatLauncher ? string.Empty : this.typicalInput, this.createChatLauncher ? string.Empty : this.typicalInput,
this.createChatLauncher ? string.Empty : this.expectedOutput, this.createChatLauncher ? string.Empty : this.expectedOutput,
@@ -522,12 +548,7 @@ public partial class AssistantBuilder : AssistantBaseCore<SettingsDialogAssistan
this.step = BuilderStep.REVIEW_SPEC; this.step = BuilderStep.REVIEW_SPEC;
} }
private string GetSelectedCategoryName() => this.selectedCategory switch private string GetSelectedCategoryForDraft() => AssistantBuilderCategories.FormatForDraft(this.selectedCategory, this.customCategory);
{
AssistantCategory.AS_IS => string.Empty,
AssistantCategory.OTHER => this.customCategory,
_ => this.selectedCategory.Name,
};
private string GetSelectedOutputLanguageName() => this.selectedOutputLanguage switch private string GetSelectedOutputLanguageName() => this.selectedOutputLanguage switch
{ {
@@ -0,0 +1,143 @@
using AIStudio.Settings;
using AIStudio.Settings.DataModel;
using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.PluginSystem.Assistants;
namespace AIStudio.Assistants.Builder;
/// <summary>
/// The categories the Assistant Builder offers and how its draft names them.
/// </summary>
/// <remarks>
/// The draft is Markdown which the user may edit, and the step which writes the plugin reads the category
/// from it. The section therefore names the category in a fixed form: the key of a category of AI Studio,
/// such as <c>BUSINESS</c>, or <c>CUSTOM: </c> followed by the name of a category of the user's own.
/// CORE belongs to configuration and language plugins, so the builder never offers it.
/// </remarks>
public static class AssistantBuilderCategories
{
/// <summary>
/// The prefix of a custom category in the draft.
/// </summary>
public const string CUSTOM_PREFIX = "CUSTOM:";
/// <summary>
/// Gets the categories of AI Studio the builder offers, in the order of the assistants page.
/// </summary>
public static IReadOnlyList<PluginCategory> Offered => Enum.GetValues<PluginCategory>()
.Where(category => category is not (PluginCategory.NONE or PluginCategory.CORE or PluginCategory.CUSTOM))
.Order(Comparer<PluginCategory>.Create((left, right) => AssistantPageSections.Compare(new(left), new(right))))
.ToList();
/// <summary>
/// Gets the categories of AI Studio the builder offers under the rules of your organization, in the
/// order of the assistants page.
/// </summary>
/// <param name="app">The app settings which hold the categories your organization disabled.</param>
/// <returns>The offered categories without the ones your organization disabled.</returns>
public static IReadOnlyList<PluginCategory> OfferedUnder(DataApp app) => Offered
.Where(category => !app.IsAssistantCategoryDisabled(new AssistantCategoryKey(category)))
.ToList();
/// <summary>
/// Whether the builder offers custom categories under the rules of your organization.
/// </summary>
/// <param name="app">The app settings which hold the categories your organization disabled.</param>
/// <returns>False when your organization disabled CUSTOM, i.e., every custom category.</returns>
public static bool IsCustomOfferedUnder(DataApp app) => !app.DisabledAssistantCategories.Contains(PluginCategory.CUSTOM);
/// <summary>
/// Finds the categories of a new or revised assistant which your organization disabled.
/// </summary>
/// <remarks>
/// The builder creates no assistant with a disabled category, even when another category would
/// keep it available on the assistants page: the user would build something the organization
/// does not want on its devices.
/// </remarks>
/// <param name="app">The app settings which hold the categories your organization disabled.</param>
/// <param name="categories">The categories of the assistant.</param>
/// <param name="customCategories">The names of its custom categories.</param>
/// <returns>The disabled categories, each once, or an empty list.</returns>
public static IReadOnlyList<AssistantCategoryKey> FindDisabled(DataApp app, IEnumerable<PluginCategory> categories, IEnumerable<string> customCategories) =>
AssistantCategoryKey.AllOf(categories, customCategories)
.Where(category => app.IsAssistantCategoryDisabled(category))
.ToList();
/// <summary>
/// Writes a category the way the draft names it.
/// </summary>
/// <param name="category">The selected category, or NONE when the user left the choice to the model.</param>
/// <param name="customName">The name of the custom category, when the category is CUSTOM.</param>
/// <returns>The category in the form of the draft, or an empty string for NONE.</returns>
public static string FormatForDraft(PluginCategory category, string customName) => category switch
{
PluginCategory.NONE => string.Empty,
PluginCategory.CUSTOM => $"{CUSTOM_PREFIX} {customName.Trim()}",
_ => Enum.GetName(category)!,
};
/// <summary>
/// Lists the categories a model may choose from: one line per key, with the name users read.
/// </summary>
/// <param name="app">The app settings which hold the categories your organization disabled.</param>
/// <returns>The list of the offered categories as Markdown, without the ones your organization disabled.</returns>
public static string ListForPrompt(DataApp app) => string.Join('\n', OfferedUnder(app).Select(category => $"- {Enum.GetName(category)}: {category.Name}"));
/// <summary>
/// Reads the categories a model names for a plugin, and refuses anything else than what the plugin
/// loader accepts.
/// </summary>
/// <remarks>
/// The loader reads CATEGORIES by the names of the categories and drops what it does not know; versions
/// before v26.11.2 also drop a name in another case. A model which writes "1", or "business", would thus
/// leave a plugin without its category, at least in an older version. We refuse such an answer instead
/// of guessing what the model meant, and ask for the exact spelling. CORE stays valid, so that
/// a revision of a plugin written before COMMON existed keeps working. The names of custom categories
/// belong to CUSTOM, in both directions, as in the loader.
/// </remarks>
/// <param name="categoryNames">The keys of the categories, as the model wrote them.</param>
/// <param name="customNames">The names of the custom categories, as the model wrote them.</param>
/// <param name="categories">The categories, each once, in the order of the model.</param>
/// <param name="customCategories">The trimmed names of the custom categories, each once.</param>
/// <returns>True when the model named at least one category, and only valid ones.</returns>
public static bool TryRead(IReadOnlyList<string> categoryNames, IReadOnlyList<string> customNames, out PluginCategory[] categories, out string[] customCategories)
{
categories = [];
customCategories = [];
if (categoryNames.Count == 0)
return false;
var readCategories = new List<PluginCategory>();
foreach (var categoryName in categoryNames)
{
if (!PluginCategory.TryParseName(categoryName, out var category) || category is PluginCategory.NONE || !string.Equals(Enum.GetName(category), categoryName, StringComparison.Ordinal))
return false;
if (!readCategories.Contains(category))
readCategories.Add(category);
}
if (customNames.Any(string.IsNullOrWhiteSpace))
return false;
var readCustomNames = customNames.Select(name => name.Trim()).Distinct(StringComparer.OrdinalIgnoreCase).ToArray();
if (readCategories.Contains(PluginCategory.CUSTOM) != readCustomNames.Length > 0)
return false;
categories = readCategories.ToArray();
customCategories = readCustomNames;
return true;
}
/// <summary>
/// Whether a loaded plugin states the same categories as the model answer which came with it.
/// </summary>
/// <param name="plugin">The plugin as AI Studio loaded it.</param>
/// <param name="categories">The categories the answer names.</param>
/// <param name="customCategories">The custom categories the answer names.</param>
/// <returns>True when both name the same categories, in any order.</returns>
public static bool MatchPlugin(IPluginMetadata plugin, IReadOnlyCollection<PluginCategory> categories, IReadOnlyCollection<string> customCategories) =>
plugin.Categories.ToHashSet().SetEquals(categories) &&
plugin.CustomCategories.ToHashSet(StringComparer.OrdinalIgnoreCase).SetEquals(customCategories);
}
@@ -12,7 +12,7 @@
], ],
"properties": { "properties": {
"schema_version": { "schema_version": {
"const": "assistant_builder_lua_response_v2" "const": "assistant_builder_lua_response_v3"
}, },
"plugin": { "plugin": {
"type": "object", "type": "object",
@@ -34,6 +34,44 @@
"categories": { "categories": {
"type": "array", "type": "array",
"minItems": 1, "minItems": 1,
"uniqueItems": true,
"items": {
"enum": [
"CORE",
"BUSINESS",
"INDUSTRY",
"UTILITY",
"SOFTWARE_DEVELOPMENT",
"GAMING",
"EDUCATION",
"ENTERTAINMENT",
"SOCIAL",
"SHOPPING",
"TRAVEL",
"HEALTH",
"FITNESS",
"FOOD",
"PARTY",
"SPORTS",
"NEWS",
"WEATHER",
"MUSIC",
"POLITICAL",
"SCIENCE",
"TECHNOLOGY",
"ART",
"FICTION",
"WRITING",
"CONTENT_CREATION",
"COMMON",
"AI_STUDIO_DEVELOPMENT",
"CUSTOM"
]
}
},
"custom_categories": {
"description": "The names of the custom categories. Required with CUSTOM in categories, and empty or absent otherwise.",
"type": "array",
"items": { "items": {
"type": "string", "type": "string",
"minLength": 1 "minLength": 1
@@ -5,4 +5,9 @@ internal sealed class AssistantBuilderPluginMetadata
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
public string[] Categories { get; set; } = []; public string[] Categories { get; set; } = [];
/// <summary>
/// The names of the custom categories, when the categories contain CUSTOM.
/// </summary>
public string[] CustomCategories { get; set; } = [];
} }
@@ -12,7 +12,7 @@ namespace AIStudio.Assistants.Builder;
/// </remarks> /// </remarks>
internal sealed class LauncherTextsResponse internal sealed class LauncherTextsResponse
{ {
public const string SCHEMA_VERSION_VALUE = "assistant_builder_launcher_texts_v1"; public const string SCHEMA_VERSION_VALUE = "assistant_builder_launcher_texts_v2";
/// <summary> /// <summary>
/// How the answer of the model is read. /// How the answer of the model is read.
@@ -48,6 +48,16 @@ internal sealed class LauncherTextsResponse
/// </summary> /// </summary>
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
/// <summary>
/// The keys of the categories, taken from the approved draft.
/// </summary>
public string[] Categories { get; set; } = [];
/// <summary>
/// The names of the custom categories, when the categories contain CUSTOM.
/// </summary>
public string[] CustomCategories { get; set; } = [];
public static bool TryParse(string modelResponse, out LauncherTextsResponse response, out LuaResponseParseError error, out string technicalDetails) public static bool TryParse(string modelResponse, out LauncherTextsResponse response, out LuaResponseParseError error, out string technicalDetails)
{ {
response = new(); response = new();
@@ -93,6 +103,12 @@ internal sealed class LauncherTextsResponse
return false; return false;
} }
if (!AssistantBuilderCategories.TryRead(parsed.Categories, parsed.CustomCategories, out _, out _))
{
error = LuaResponseParseError.INVALID_CATEGORIES;
return false;
}
response = parsed; response = parsed;
return true; return true;
} }
@@ -90,6 +90,12 @@ internal sealed partial class LuaResponse
return false; return false;
} }
if (!AssistantBuilderCategories.TryRead(this.Plugin.Categories, this.Plugin.CustomCategories, out _, out _))
{
error = LuaResponseParseError.INVALID_CATEGORIES;
return false;
}
if (string.IsNullOrWhiteSpace(this.Assistant.Title) || if (string.IsNullOrWhiteSpace(this.Assistant.Title) ||
string.IsNullOrWhiteSpace(this.Assistant.Description) || string.IsNullOrWhiteSpace(this.Assistant.Description) ||
!IsValidAssistantMetadata(this.Assistant)) !IsValidAssistantMetadata(this.Assistant))
@@ -2,7 +2,7 @@ namespace AIStudio.Assistants.Builder;
internal sealed partial class LuaResponse internal sealed partial class LuaResponse
{ {
public const string SCHEMA_VERSION_VALUE = "assistant_builder_lua_response_v2"; public const string SCHEMA_VERSION_VALUE = "assistant_builder_lua_response_v3";
public string SchemaVersion { get; set; } = string.Empty; public string SchemaVersion { get; set; } = string.Empty;
public AssistantBuilderPluginMetadata? Plugin { get; set; } public AssistantBuilderPluginMetadata? Plugin { get; set; }
public AssistantBuilderAssistantMetadata? Assistant { get; set; } public AssistantBuilderAssistantMetadata? Assistant { get; set; }
@@ -10,6 +10,7 @@ public enum LuaResponseParseError
MISSING_PLUGIN_METADATA, MISSING_PLUGIN_METADATA,
MISSING_ASSISTANT_METADATA, MISSING_ASSISTANT_METADATA,
INCOMPLETE_PLUGIN_METADATA, INCOMPLETE_PLUGIN_METADATA,
INVALID_CATEGORIES,
INCOMPLETE_ASSISTANT_METADATA, INCOMPLETE_ASSISTANT_METADATA,
MISSING_LUA, MISSING_LUA,
LUA_MISSING_ID, LUA_MISSING_ID,
@@ -17,6 +17,7 @@ public static class LuaResponseParseErrorExtension
LuaResponseParseError.MISSING_PLUGIN_METADATA => TB("The model's answer is missing the plugin metadata."), LuaResponseParseError.MISSING_PLUGIN_METADATA => TB("The model's answer is missing the plugin metadata."),
LuaResponseParseError.MISSING_ASSISTANT_METADATA => TB("The model's answer is missing the assistant metadata."), LuaResponseParseError.MISSING_ASSISTANT_METADATA => TB("The model's answer is missing the assistant metadata."),
LuaResponseParseError.INCOMPLETE_PLUGIN_METADATA => TB("The model's answer contains incomplete plugin metadata."), LuaResponseParseError.INCOMPLETE_PLUGIN_METADATA => TB("The model's answer contains incomplete plugin metadata."),
LuaResponseParseError.INVALID_CATEGORIES => TB("The model's answer names a category AI Studio does not know, or a custom category without its name."),
LuaResponseParseError.INCOMPLETE_ASSISTANT_METADATA => TB("The model's answer contains incomplete assistant metadata."), LuaResponseParseError.INCOMPLETE_ASSISTANT_METADATA => TB("The model's answer contains incomplete assistant metadata."),
LuaResponseParseError.MISSING_LUA => TB("The model response does not contain the generated Lua plugin code."), LuaResponseParseError.MISSING_LUA => TB("The model response does not contain the generated Lua plugin code."),
LuaResponseParseError.LUA_MISSING_ID => TB("The generated Lua plugin code does not contain a readable plugin ID."), LuaResponseParseError.LUA_MISSING_ID => TB("The generated Lua plugin code does not contain a readable plugin ID."),
@@ -242,7 +242,7 @@ public partial class AssistantDynamic : AssistantBaseCore<NoSettingsPanel>
private PluginAssistants? ResolveAssistantPlugin() private PluginAssistants? ResolveAssistantPlugin()
{ {
var pluginAssistants = PluginFactory.RunningPlugins.OfType<PluginAssistants>() var pluginAssistants = PluginFactory.RunningPlugins.OfType<PluginAssistants>()
.Where(plugin => this.SettingsManager.IsPluginEnabled(plugin)) .Where(plugin => this.SettingsManager.IsAssistantPluginAvailable(plugin))
.ToList(); .ToList();
if (pluginAssistants.Count == 0) if (pluginAssistants.Count == 0)
return null; return null;
@@ -3160,6 +3160,9 @@ UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1696631610"]
-- (Optional) Output language -- (Optional) Output language
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1821434787"] = "(Optional) Output language" UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1821434787"] = "(Optional) Output language"
-- Other
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1849229205"] = "Other"
-- The installed assistant could not be loaded. -- The installed assistant could not be loaded.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1889523922"] = "The installed assistant could not be loaded." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1889523922"] = "The installed assistant could not be loaded."
@@ -3331,9 +3334,18 @@ UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4004589285::I
-- Assistant updated. -- Assistant updated.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T40397082"] = "Assistant updated." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T40397082"] = "Assistant updated."
-- Let the model choose
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4061595525"] = "Let the model choose"
-- Allow AI Studio profiles -- Allow AI Studio profiles
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4155351992"] = "Allow AI Studio profiles" UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4155351992"] = "Allow AI Studio profiles"
-- Your organization disabled this category. Please choose another one.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4162610995"] = "Your organization disabled this category. Please choose another one."
-- Your organization disabled this category. Please choose another one.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4162610995::INFORMAL"] = "Your organization disabled this category. Please choose another one."
-- Issue: {0} -- Issue: {0}
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4185028924"] = "Issue: {0}" UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4185028924"] = "Issue: {0}"
@@ -3424,6 +3436,9 @@ UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::
-- The model returned an empty JSON object. -- The model returned an empty JSON object.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2410202327"] = "The model returned an empty JSON object." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2410202327"] = "The model returned an empty JSON object."
-- The model's answer names a category AI Studio does not know, or a custom category without its name.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2704199301"] = "The model's answer names a category AI Studio does not know, or a custom category without its name."
-- The model returned an unusable JSON response. -- The model returned an unusable JSON response.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2967613975"] = "The model returned an unusable JSON response." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2967613975"] = "The model returned an unusable JSON response."
@@ -8128,6 +8143,42 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTBLOCK::T3571008422::INFORMAL"] =
-- The result is ready. -- The result is ready.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTBLOCK::T661906146"] = "The result is ready." UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTBLOCK::T661906146"] = "The result is ready."
-- Expand this category
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T1750778093"] = "Expand this category"
-- The assistants page will no longer show this category, and AI Studio will treat its assistants as if they did not exist, e.g., they will not appear in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2720183235"] = "The assistants page will no longer show this category, and AI Studio will treat its assistants as if they did not exist, e.g., they will not appear in the \"Send to ...\" menu."
-- The assistants page will no longer show this category, and AI Studio will treat its assistants as if they did not exist, e.g., they will not appear in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2720183235::INFORMAL"] = "The assistants page will no longer show this category, and AI Studio will treat its assistants as if they did not exist, e.g., they will not appear in the \"Send to ...\" menu."
-- The assistants page will no longer show this category. AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2725056496"] = "The assistants page will no longer show this category. AI Studio keeps offering its assistants elsewhere, e.g., in the \"Send to ...\" menu."
-- The assistants page will no longer show this category. AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2725056496::INFORMAL"] = "The assistants page will no longer show this category. AI Studio keeps offering its assistants elsewhere, e.g., in the \"Send to ...\" menu."
-- You can show the category again at any time in the assistant settings, which the gear next to the heading of the page opens.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2970234687"] = "You can show the category again at any time in the assistant settings, which the gear next to the heading of the page opens."
-- You can show the category again at any time in the assistant settings, which the gear next to the heading of the page opens.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2970234687::INFORMAL"] = "You can show the category again at any time in the assistant settings, which the gear next to the heading of the page opens."
-- Hide the category '{0}'?
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T3025364089"] = "Hide the category '{0}'?"
-- Hide this category
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T3438455681"] = "Hide this category"
-- If you only want a better overview, click the heading of the category instead: that collapses it.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T815674974"] = "If you only want a better overview, click the heading of the category instead: that collapses it."
-- If you only want a better overview, click the heading of the category instead: that collapses it.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T815674974::INFORMAL"] = "If you only want a better overview, click the heading of the category instead: that collapses it."
-- Collapse this category
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T941766518"] = "Collapse this category"
-- Show or hide the detailed security information. -- Show or hide the detailed security information.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTPLUGINSECURITYCARD::T1045105126"] = "Show or hide the detailed security information." UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTPLUGINSECURITYCARD::T1045105126"] = "Show or hide the detailed security information."
@@ -15499,6 +15550,48 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTBUILDER::T4
-- The language in which the assistants you build answer. -- The language in which the assistants you build answer.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTBUILDER::T42126731::INFORMAL"] = "The language in which the assistants you build answer." UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTBUILDER::T42126731::INFORMAL"] = "The language in which the assistants you build answer."
-- There are no categories to show or hide right now.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2279201345"] = "There are no categories to show or hide right now."
-- Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2321353169"] = "Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the \"Send to ...\" menu."
-- Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2321353169::INFORMAL"] = "Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the \"Send to ...\" menu."
-- What should happen to assistants of categories you hid?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2813197614"] = "What should happen to assistants of categories you hid?"
-- What should happen to assistants of categories you hid?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2813197614::INFORMAL"] = "What should happen to assistants of categories you hid?"
-- What should happen to assistants of categories you collapsed?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2994249650"] = "What should happen to assistants of categories you collapsed?"
-- What should happen to assistants of categories you collapsed?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2994249650::INFORMAL"] = "What should happen to assistants of categories you collapsed?"
-- The category is hidden
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T3228924424"] = "The category is hidden"
-- Close
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T3448155331"] = "Close"
-- The category is shown
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T3595686409"] = "The category is shown"
-- Categories
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T4034259341"] = "Categories"
-- Assistant Settings
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T4124037832"] = "Assistant Settings"
-- Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T786145170"] = "Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the \"Send to ...\" menu."
-- Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T786145170::INFORMAL"] = "Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the \"Send to ...\" menu."
-- Default minimum pause between files -- Default minimum pause between files
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGBATCHPROCESSING::T1008440099"] = "Default minimum pause between files" UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGBATCHPROCESSING::T1008440099"] = "Default minimum pause between files"
@@ -17677,18 +17770,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1271524187"] = "Analyze a documen
-- Analyze a document regarding defined rules and extract key information. -- Analyze a document regarding defined rules and extract key information.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1271524187::INFORMAL"] = "Analyze a document regarding defined rules and extract key information." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1271524187::INFORMAL"] = "Analyze a document regarding defined rules and extract key information."
-- Business
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T131837803"] = "Business"
-- Legal Check -- Legal Check
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1348190638"] = "Legal Check" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1348190638"] = "Legal Check"
-- Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information. -- Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1356376259"] = "Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1356376259"] = "Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information."
-- General
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1432485131"] = "General"
-- Grammar & Spelling -- Grammar & Spelling
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1514925962"] = "Grammar & Spelling" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1514925962"] = "Grammar & Spelling"
@@ -17773,18 +17860,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2770149758"] = "Document Analysis
-- Visual Briefing Assistant -- Visual Briefing Assistant
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T277804139"] = "Visual Briefing Assistant" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T277804139"] = "Visual Briefing Assistant"
-- AI Studio Development
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2830810750"] = "AI Studio Development"
-- Generate a job posting for a given job description. -- Generate a job posting for a given job description.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254"] = "Generate a job posting for a given job description." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254"] = "Generate a job posting for a given job description."
-- Generate a job posting for a given job description. -- Generate a job posting for a given job description.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254::INFORMAL"] = "Generate a job posting for a given job description." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254::INFORMAL"] = "Generate a job posting for a given job description."
-- Installed Assistants
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T295232966"] = "Installed Assistants"
-- My Tasks -- My Tasks
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3011450657"] = "My Tasks" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3011450657"] = "My Tasks"
@@ -17800,15 +17881,18 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T311775455::INFORMAL"] = "The auto
-- Translate AI Studio text content into other languages -- Translate AI Studio text content into other languages
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3181803840"] = "Translate AI Studio text content into other languages" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3181803840"] = "Translate AI Studio text content into other languages"
-- Software Engineering
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3260960011"] = "Software Engineering"
-- Assistant Builder -- Assistant Builder
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3303547904"] = "Assistant Builder" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3303547904"] = "Assistant Builder"
-- Rewrite & Improve -- Rewrite & Improve
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3309133329"] = "Rewrite & Improve" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3309133329"] = "Rewrite & Improve"
-- You hid all categories. You can show them again in the assistant settings, which the gear next to the heading opens.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3608690820"] = "You hid all categories. You can show them again in the assistant settings, which the gear next to the heading opens."
-- You hid all categories. You can show them again in the assistant settings, which the gear next to the heading opens.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3608690820::INFORMAL"] = "You hid all categories. You can show them again in the assistant settings, which the gear next to the heading opens."
-- Icon Finder -- Icon Finder
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3693102312"] = "Icon Finder" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3693102312"] = "Icon Finder"
@@ -17818,6 +17902,9 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3733831260"] = "Generate your own
-- Generate your own assistants. -- Generate your own assistants.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3733831260::INFORMAL"] = "Generate your own assistants." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3733831260::INFORMAL"] = "Generate your own assistants."
-- Open the assistant settings
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3745279719"] = "Open the assistant settings"
-- Generate an ERI server to integrate business systems. -- Generate an ERI server to integrate business systems.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3756213118"] = "Generate an ERI server to integrate business systems." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3756213118"] = "Generate an ERI server to integrate business systems."
@@ -17851,6 +17938,9 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3970214537"] = "Ask a question ab
-- Ask a question about a legal document. -- Ask a question about a legal document.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3970214537::INFORMAL"] = "Ask a question about a legal document." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3970214537::INFORMAL"] = "Ask a question about a legal document."
-- Assistant Settings
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T4124037832"] = "Assistant Settings"
-- Log Viewer -- Log Viewer
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T4130241777"] = "Log Viewer" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T4130241777"] = "Log Viewer"
@@ -17887,9 +17977,6 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T892147062"] = "View and filter AI
-- Localization -- Localization
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T897888480"] = "Localization" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T897888480"] = "Localization"
-- Learning & Reflecting
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T912918956"] = "Learning & Reflecting"
-- Turn texts and documents into slides, also as a PowerPoint file in the design of your template. -- Turn texts and documents into slides, also as a PowerPoint file in the design of your template.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T943132958"] = "Turn texts and documents into slides, also as a PowerPoint file in the design of your template." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T943132958"] = "Turn texts and documents into slides, also as a PowerPoint file in the design of your template."
@@ -19036,6 +19123,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2430906247::INFORMAL"] = "{0} Do you
-- The tile '{0}' has been updated. -- The tile '{0}' has been updated.
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2443911707"] = "The tile '{0}' has been updated." UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2443911707"] = "The tile '{0}' has been updated."
-- Your organization disabled all categories of this assistant: {0}
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2444737585"] = "Your organization disabled all categories of this assistant: {0}"
-- Your organization disabled all categories of this assistant: {0}
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2444737585::INFORMAL"] = "Your organization disabled all categories of this assistant: {0}"
-- Share dialog not available -- Share dialog not available
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2445896850"] = "Share dialog not available" UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2445896850"] = "Share dialog not available"
@@ -19129,6 +19222,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T659549952"] = "The plugin archive wa
-- An error occurred while exporting the plugin. -- An error occurred while exporting the plugin.
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T759681732"] = "An error occurred while exporting the plugin." UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T759681732"] = "An error occurred while exporting the plugin."
-- Your organization disabled the category '{0}' of this assistant
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T798759833"] = "Your organization disabled the category '{0}' of this assistant"
-- Your organization disabled the category '{0}' of this assistant
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T798759833::INFORMAL"] = "Your organization disabled the category '{0}' of this assistant"
-- The plugin could not be imported: {0} -- The plugin could not be imported: {0}
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T837269472"] = "The plugin could not be imported: {0}" UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T837269472"] = "The plugin could not be imported: {0}"
@@ -19639,6 +19738,9 @@ UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1245257804
-- Settings -- Settings
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1258653480"] = "Settings" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1258653480"] = "Settings"
-- Keep offering me the assistants, e.g., in the "Send to ..." menu
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1289869768"] = "Keep offering me the assistants, e.g., in the \"Send to ...\" menu"
-- No key is sending the input -- No key is sending the input
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1311973034"] = "No key is sending the input" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1311973034"] = "No key is sending the input"
@@ -19669,6 +19771,9 @@ UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1874928511
-- Always expand navigation -- Always expand navigation
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1991359958"] = "Always expand navigation" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1991359958"] = "Always expand navigation"
-- Treat the assistants as if they did not exist, e.g., not in the "Send to ..." menu
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T2049952564"] = "Treat the assistants as if they did not exist, e.g., not in the \"Send to ...\" menu"
-- Show also experimental features: these are experimental; expect bugs, missing features, many changes -- Show also experimental features: these are experimental; expect bugs, missing features, many changes
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T2091731959"] = "Show also experimental features: these are experimental; expect bugs, missing features, many changes" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T2091731959"] = "Show also experimental features: these are experimental; expect bugs, missing features, many changes"
@@ -20056,39 +20161,6 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::AIJOBS::AIJOBSERVICE::T373499115"] = "Your dat
-- Your data sources could not be used. This answer was created without them. -- Your data sources could not be used. This answer was created without them.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::AIJOBS::AIJOBSERVICE::T373499115::INFORMAL"] = "Your data sources could not be used. This answer was created without them." UI_TEXT_CONTENT["AISTUDIO::TOOLS::AIJOBS::AIJOBSERVICE::T373499115::INFORMAL"] = "Your data sources could not be used. This answer was created without them."
-- Software Development
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T1025369409"] = "Software Development"
-- Business
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T131837803"] = "Business"
-- General
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T1432485131"] = "General"
-- Other
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T1849229205"] = "Other"
-- Please select the assistant category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2552974770"] = "Please select the assistant category"
-- Please select the assistant category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2552974770::INFORMAL"] = "Please select the assistant category"
-- AI Studio Development
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2830810750"] = "AI Studio Development"
-- Productivity
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2887181245"] = "Productivity"
-- Scientific
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T3802462536"] = "Scientific"
-- Select the assistant category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T4193824894"] = "Select the assistant category"
-- Learning & Reflecting
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T912918956"] = "Learning & Reflecting"
-- This assistant is already running. AI Studio opens the running session instead. -- This assistant is already running. AI Studio opens the running session instead.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTLAUNCH::ASSISTANTLAUNCHSERVICE::T2575715765"] = "This assistant is already running. AI Studio opens the running session instead." UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTLAUNCH::ASSISTANTLAUNCHSERVICE::T2575715765"] = "This assistant is already running. AI Studio opens the running session instead."
@@ -21565,6 +21637,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::CONFIGURATIONSNIPPETPARSER::T949
-- The table AUTHORS does not exist or is using an invalid syntax. -- The table AUTHORS does not exist or is using an invalid syntax.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1068328139"] = "The table AUTHORS does not exist or is using an invalid syntax." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1068328139"] = "The table AUTHORS does not exist or is using an invalid syntax."
-- The table CUSTOM_CATEGORIES is using an invalid syntax. It must be a table of names.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T131394700"] = "The table CUSTOM_CATEGORIES is using an invalid syntax. It must be a table of names."
-- The field NAME does not exist or is not a valid string. -- The field NAME does not exist or is not a valid string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1340447036"] = "The field NAME does not exist or is not a valid string." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1340447036"] = "The field NAME does not exist or is not a valid string."
@@ -21595,6 +21670,12 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2262604281"] = "The
-- The field DESCRIPTION does not exist or is not a valid string. -- The field DESCRIPTION does not exist or is not a valid string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T229488255"] = "The field DESCRIPTION does not exist or is not a valid string." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T229488255"] = "The field DESCRIPTION does not exist or is not a valid string."
-- The table CUSTOM_CATEGORIES requires the category CUSTOM in the table CATEGORIES.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2426905758"] = "The table CUSTOM_CATEGORIES requires the category CUSTOM in the table CATEGORIES."
-- The category CUSTOM requires the table CUSTOM_CATEGORIES with at least one name.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2515975321"] = "The category CUSTOM requires the table CUSTOM_CATEGORIES with at least one name."
-- The field VERSION is not a valid version number. The version number must be formatted as string in the major.minor.patch format (X.X.X). -- The field VERSION is not a valid version number. The version number must be formatted as string in the major.minor.patch format (X.X.X).
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2538827536"] = "The field VERSION is not a valid version number. The version number must be formatted as string in the major.minor.patch format (X.X.X)." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2538827536"] = "The field VERSION is not a valid version number. The version number must be formatted as string in the major.minor.patch format (X.X.X)."
@@ -21616,6 +21697,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T3667396132"] = "The
-- The field NAME is empty. The name must be a non-empty string. -- The field NAME is empty. The name must be a non-empty string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T3763759727"] = "The field NAME is empty. The name must be a non-empty string." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T3763759727"] = "The field NAME is empty. The name must be a non-empty string."
-- The table CUSTOM_CATEGORIES contains an empty name or a value which is not a text.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T4089014619"] = "The table CUSTOM_CATEGORIES contains an empty name or a value which is not a text."
-- The field SUPPORT_CONTACT does not exist or is not a valid string. -- The field SUPPORT_CONTACT does not exist or is not a valid string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T4189964941"] = "The field SUPPORT_CONTACT does not exist or is not a valid string." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T4189964941"] = "The field SUPPORT_CONTACT does not exist or is not a valid string."
@@ -21646,6 +21730,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T10253
-- Business -- Business
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T131837803"] = "Business" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T131837803"] = "Business"
-- General
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1432485131"] = "General"
-- Music -- Music
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1481252212"] = "Music" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1481252212"] = "Music"
@@ -21655,6 +21742,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T15858
-- Weather -- Weather
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1726658099"] = "Weather" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1726658099"] = "Weather"
-- Custom category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1885949922"] = "Custom category"
-- Industry -- Industry
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T208409567"] = "Industry" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T208409567"] = "Industry"
@@ -21676,6 +21766,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T25870
-- Shopping -- Shopping
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2704337693"] = "Shopping" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2704337693"] = "Shopping"
-- AI Studio Development
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2830810750"] = "AI Studio Development"
-- Fitness -- Fitness
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2892517655"] = "Fitness" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2892517655"] = "Fitness"
@@ -21691,9 +21784,6 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T34217
-- Entertainment -- Entertainment
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T3562575449"] = "Entertainment" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T3562575449"] = "Entertainment"
-- Education
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T379048501"] = "Education"
-- AI Studio Core -- AI Studio Core
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T4005865962"] = "AI Studio Core" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T4005865962"] = "AI Studio Core"
@@ -21718,6 +21808,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T85056
-- Science -- Science
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T904504157"] = "Science" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T904504157"] = "Science"
-- Learning & Reflecting
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T912918956"] = "Learning & Reflecting"
-- Content Creation -- Content Creation
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T914642375"] = "Content Creation" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T914642375"] = "Content Creation"
@@ -23122,9 +23215,18 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1
-- The revision model did not return a usable answer. -- The revision model did not return a usable answer.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1411545143"] = "The revision model did not return a usable answer." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1411545143"] = "The revision model did not return a usable answer."
-- Your organization disabled these categories of your assistant: {0}. Please choose other categories.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1647997085"] = "Your organization disabled these categories of your assistant: {0}. Please choose other categories."
-- Your organization disabled these categories of your assistant: {0}. Please choose other categories.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1647997085::INFORMAL"] = "Your organization disabled these categories of your assistant: {0}. Please choose other categories."
-- Description -- Description
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1725856265"] = "Description" UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1725856265"] = "Description"
-- The categories of the revised assistant do not match the revised plugin.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1778095727"] = "The categories of the revised assistant do not match the revised plugin."
-- Please select a provider. -- Please select a provider.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1809312323"] = "Please select a provider." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1809312323"] = "Please select a provider."
@@ -23176,6 +23278,12 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3
-- Assistant Plugin Revision -- Assistant Plugin Revision
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3245954919"] = "Assistant Plugin Revision" UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3245954919"] = "Assistant Plugin Revision"
-- Your organization disabled the category '{0}'. Please choose another category for your assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3254953496"] = "Your organization disabled the category '{0}'. Please choose another category for your assistant."
-- Your organization disabled the category '{0}'. Please choose another category for your assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3254953496::INFORMAL"] = "Your organization disabled the category '{0}'. Please choose another category for your assistant."
-- The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now. -- The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3278037634"] = "The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3278037634"] = "The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now."
@@ -23242,6 +23350,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4
-- The draft model did not return a usable answer. -- The draft model did not return a usable answer.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4183375977"] = "The draft model did not return a usable answer." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4183375977"] = "The draft model did not return a usable answer."
-- The categories of the generated assistant do not match the generated plugin.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4224887725"] = "The categories of the generated assistant do not match the generated plugin."
-- The Assistant Builder response schema could not be loaded. -- The Assistant Builder response schema could not be loaded.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4235833611"] = "The Assistant Builder response schema could not be loaded." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4235833611"] = "The Assistant Builder response schema could not be loaded."
@@ -23386,6 +23497,12 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T2466659933"] = "
-- The assistant chat launcher references data source '{0}', but that data source does not exist. -- The assistant chat launcher references data source '{0}', but that data source does not exist.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T289191545"] = "The assistant chat launcher references data source '{0}', but that data source does not exist." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T289191545"] = "The assistant chat launcher references data source '{0}', but that data source does not exist."
-- Your organization disabled the categories of this assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T2988562427"] = "Your organization disabled the categories of this assistant."
-- Your organization disabled the categories of this assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T2988562427::INFORMAL"] = "Your organization disabled the categories of this assistant."
-- The chat template '{0}' selects data sources, but no provider is available for chats. Please choose a default provider for chats first. No chat was created. -- The chat template '{0}' selects data sources, but no provider is available for chats. Please choose a default provider for chats first. No chat was created.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T3082876173"] = "The chat template '{0}' selects data sources, but no provider is available for chats. Please choose a default provider for chats first. No chat was created." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T3082876173"] = "The chat template '{0}' selects data sources, but no provider is available for chats. Please choose a default provider for chats first. No chat was created."
@@ -2,6 +2,7 @@ using AIStudio.Dialogs.Settings;
using AIStudio.Settings.DataModel; using AIStudio.Settings.DataModel;
using AIStudio.Tools.AssistantSessions; using AIStudio.Tools.AssistantSessions;
using AIStudio.Tools.Media; using AIStudio.Tools.Media;
using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.Services; using AIStudio.Tools.Services;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
@@ -62,7 +63,10 @@ public partial class AssistantBlock<TSettings> : MSGComponentBase, IAssistantCat
/// Gets or sets the assistant category this block belongs to, if any. /// Gets or sets the assistant category this block belongs to, if any.
/// </summary> /// </summary>
[CascadingParameter] [CascadingParameter]
public AssistantCategoryBlock? Category { get; set; } public AssistantCategoryBlock? CategoryBlock { get; set; }
[Inject]
private ILogger<AssistantBlock<TSettings>> Logger { get; init; } = null!;
[Inject] [Inject]
private MudTheme ColorTheme { get; init; } = null!; private MudTheme ColorTheme { get; init; } = null!;
@@ -160,10 +164,30 @@ public partial class AssistantBlock<TSettings> : MSGComponentBase, IAssistantCat
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()
{ {
this.MediaTranscriptionService.StateChanged += this.OnMediaImportStateChanged; this.MediaTranscriptionService.StateChanged += this.OnMediaImportStateChanged;
this.Category?.RegisterAssistant(this); this.CategoryBlock?.RegisterAssistant(this);
this.WarnAboutAnotherCategory();
await base.OnInitializedAsync(); await base.OnInitializedAsync();
} }
/// <summary>
/// Reports a built-in assistant which the page shows in another section than its category.
/// </summary>
/// <remarks>
/// The category of a built-in assistant is stated in code, see Components.Category, and everything
/// which offers assistants outside the assistants page relies on it. The page, though, places the
/// assistant by its markup. Should both ever differ, a user would find the assistant in one category
/// and lose it with another one, so we make sure that a developer notices it.
/// </remarks>
private void WarnAboutAnotherCategory()
{
var category = this.Component.Category;
if (category is PluginCategory.NONE || this.CategoryBlock is null)
return;
if (new AssistantCategoryKey(category) != this.CategoryBlock.Category)
this.Logger.LogError("The assistants page shows the assistant '{Component}' under the category '{PageCategory}', but its category is '{Category}'. Please move it into the section of its category.", this.Component, this.CategoryBlock.Category.Category, category);
}
private void OnMediaImportStateChanged(MediaImportOwner owner) private void OnMediaImportStateChanged(MediaImportOwner owner)
{ {
if (this.OwnedByThisBlock(owner)) if (this.OwnedByThisBlock(owner))
@@ -173,7 +197,7 @@ public partial class AssistantBlock<TSettings> : MSGComponentBase, IAssistantCat
protected override void DisposeResources() protected override void DisposeResources()
{ {
this.MediaTranscriptionService.StateChanged -= this.OnMediaImportStateChanged; this.MediaTranscriptionService.StateChanged -= this.OnMediaImportStateChanged;
this.Category?.UnregisterAssistant(this); this.CategoryBlock?.UnregisterAssistant(this);
base.DisposeResources(); base.DisposeResources();
} }
@@ -1,11 +1,19 @@
@if (this.HasVisibleAssistant) @if (!this.IsHidden)
{ {
<MudText Typo="Typo.h4" Class="@this.HeaderClass"> if (this.HasVisibleAssistant)
@this.Title {
</MudText> <AssistantCategoryHeader Category="@this.Category" IsCollapsed="@this.IsCollapsed" OnToggleCollapsed="@this.ToggleCollapsedAsync" OnHide="@this.HideAsync" Class="@this.HeaderClass"/>
} }
<CascadingValue Value="this" IsFixed="@true">
<MudStack Row="@true" Wrap="@Wrap.Wrap" Class="@this.StackClass"> <CascadingValue Value="this" IsFixed="@true">
@this.ChildContent <div class="@this.CollapseClass">
</MudStack> <MudStack Row="@true" Wrap="@Wrap.Wrap" Class="@this.StackClass">
</CascadingValue> @this.ChildContent
@foreach (var plugin in this.Plugins)
{
<AssistantPluginBlock @key="@plugin.Id" Plugin="@plugin"/>
}
</MudStack>
</div>
</CascadingValue>
}
@@ -1,3 +1,7 @@
using AIStudio.Settings;
using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.PluginSystem.Assistants;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
namespace AIStudio.Components; namespace AIStudio.Components;
@@ -8,17 +12,36 @@ namespace AIStudio.Components;
/// <remarks> /// <remarks>
/// The heading is derived from the assistant blocks inside this category: it is rendered only when /// The heading is derived from the assistant blocks inside this category: it is rendered only when
/// at least one of them is visible. Thus, hiding assistants by configuration can never leave an /// at least one of them is visible. Thus, hiding assistants by configuration can never leave an
/// empty category heading behind. /// empty category heading behind. The built-in assistants of the category come as child content,
/// followed by the assistant plugins which name this category.<br/><br/>
/// A category the user hid renders nothing at all. One the user collapsed keeps rendering its blocks
/// and only hides them, so that its heading stays. Each block reports to the registry of the page
/// after rendering, so that the page knows which categories it shows.
/// </remarks> /// </remarks>
public partial class AssistantCategoryBlock : ComponentBase public partial class AssistantCategoryBlock : ComponentBase, IDisposable
{ {
private readonly HashSet<IAssistantCategoryMember> members = []; private readonly HashSet<IAssistantCategoryMember> members = [];
[Inject]
private SettingsManager SettingsManager { get; init; } = null!;
/// <summary> /// <summary>
/// The heading of this category. /// The registry of the assistants page, which learns which categories the page shows.
/// </summary>
[CascadingParameter]
public AssistantCategoryRegistry? Registry { get; set; }
/// <summary>
/// The category of this block. Its name is the heading.
/// </summary>
[Parameter, EditorRequired]
public AssistantCategoryKey Category { get; set; } = null!;
/// <summary>
/// The assistant plugins which name this category, in the order to show them.
/// </summary> /// </summary>
[Parameter] [Parameter]
public string Title { get; set; } = string.Empty; public IReadOnlyList<PluginAssistants> Plugins { get; set; } = [];
/// <summary> /// <summary>
/// The CSS classes used for the heading. /// The CSS classes used for the heading.
@@ -58,6 +81,42 @@ public partial class AssistantCategoryBlock : ComponentBase
/// </remarks> /// </remarks>
private bool HasVisibleAssistant => this.members.Any(member => member.IsVisible); private bool HasVisibleAssistant => this.members.Any(member => member.IsVisible);
/// <summary>
/// Gets whether this category shows at least one assistant right now, collapsed or not.
/// </summary>
internal bool IsShowingAssistants => !this.IsHidden && this.HasVisibleAssistant;
/// <summary>
/// Gets whether the user collapsed this category.
/// </summary>
private bool IsCollapsed => this.SettingsManager.ConfigurationData.AssistantsPage.IsCategoryCollapsed(this.Category);
/// <summary>
/// Gets whether the user hid this category.
/// </summary>
private bool IsHidden => this.SettingsManager.ConfigurationData.AssistantsPage.IsCategoryHidden(this.Category);
#region Overrides of ComponentBase
/// <inheritdoc />
protected override void OnInitialized()
{
this.Registry?.Register(this);
base.OnInitialized();
}
/// <inheritdoc />
protected override void OnAfterRender(bool firstRender)
{
this.Registry?.ReportChange();
base.OnAfterRender(firstRender);
}
#endregion
/// <inheritdoc />
public void Dispose() => this.Registry?.Unregister(this);
/// <summary> /// <summary>
/// Gets the CSS classes used for the assistant stack. /// Gets the CSS classes used for the assistant stack.
/// </summary> /// </summary>
@@ -67,4 +126,41 @@ public partial class AssistantCategoryBlock : ComponentBase
/// that a hidden category leaves no gap behind. /// that a hidden category leaves no gap behind.
/// </remarks> /// </remarks>
private string StackClass => this.HasVisibleAssistant ? "mb-3" : string.Empty; private string StackClass => this.HasVisibleAssistant ? "mb-3" : string.Empty;
/// <summary>
/// Gets the CSS classes of the element around the assistant stack, which hide a collapsed category.
/// </summary>
/// <remarks>
/// A collapsed category keeps rendering its blocks, since they register themselves while rendering,
/// and only hides them, so that its heading stays. The class sits on a plain element around the stack:
/// MudStack always carries the class d-flex, which MudBlazor declares after d-none and with the same
/// weight, so d-none on the stack itself has no effect.
/// </remarks>
private string CollapseClass => this.IsCollapsed ? "d-none" : string.Empty;
/// <summary>
/// Collapses this category or expands it again, and remembers that.
/// </summary>
/// <remarks>
/// The user clicks once, so storing the settings right away costs nothing noticeable.
/// </remarks>
private async Task ToggleCollapsedAsync()
{
this.SettingsManager.ConfigurationData.AssistantsPage.SetCategoryCollapsed(this.Category, !this.IsCollapsed);
await this.SettingsManager.StoreSettings();
}
/// <summary>
/// Hides this category and remembers that.
/// </summary>
/// <remarks>
/// The heading asked the user before, and told them how to get the category back. The whole app learns
/// about it, since a hidden category may also take its assistants out of the "Send to ..." menu.
/// </remarks>
private async Task HideAsync()
{
this.SettingsManager.ConfigurationData.AssistantsPage.SetCategoryHidden(this.Category, true);
await this.SettingsManager.StoreSettings();
await MessageBus.INSTANCE.SendMessage<bool>(this, Event.CONFIGURATION_CHANGED);
}
} }
@@ -0,0 +1,16 @@
@inherits MSGComponentBase
<MudStack Row="@true" AlignItems="AlignItems.Center" Spacing="1" Class="@this.Class">
<MudTooltip Text="@this.ToggleTooltip" Placement="Placement.Top">
<MudButton Variant="Variant.Text" Color="Color.Default" Class="px-1" Style="min-width:auto; text-transform:none;" OnClick="@this.OnToggleCollapsed">
<MudStack Row="@true" AlignItems="AlignItems.Center" Spacing="2">
<MudText Typo="Typo.h4">
@this.Category.Name
</MudText>
<MudIcon Icon="@(this.IsCollapsed ? AppIcons.EXPAND_MORE : AppIcons.EXPAND_LESS)"/>
</MudStack>
</MudButton>
</MudTooltip>
<MudTooltip Text="@T("Hide this category")" Placement="Placement.Top">
<MudIconButton Icon="@AppIcons.HIDDEN" Size="Size.Small" Color="Color.Default" OnClick="@this.ConfirmHideAsync"/>
</MudTooltip>
</MudStack>
@@ -0,0 +1,86 @@
using AIStudio.Dialogs;
using AIStudio.Settings.DataModel;
using AIStudio.Tools.PluginSystem;
using Microsoft.AspNetCore.Components;
using DialogOptions = AIStudio.Dialogs.DialogOptions;
namespace AIStudio.Components;
/// <summary>
/// The heading of a category on the assistants page, which collapses and expands the category, and hides it.
/// </summary>
/// <remarks>
/// The whole heading is the button which collapses the category, so that users find it where they look.
/// The eye next to it hides the category, after the user confirmed it. The category block keeps the state,
/// since it also decides what the category shows.
/// </remarks>
public partial class AssistantCategoryHeader : MSGComponentBase
{
[Inject]
private IDialogService DialogService { get; init; } = null!;
/// <summary>
/// The category whose name is the heading.
/// </summary>
[Parameter, EditorRequired]
public AssistantCategoryKey Category { get; set; } = null!;
/// <summary>
/// Whether the user collapsed the category.
/// </summary>
[Parameter]
public bool IsCollapsed { get; set; }
/// <summary>
/// Called when the user clicks the heading to collapse or expand the category.
/// </summary>
[Parameter]
public EventCallback OnToggleCollapsed { get; set; }
/// <summary>
/// Called when the user hides the category and confirmed it.
/// </summary>
[Parameter]
public EventCallback OnHide { get; set; }
/// <summary>
/// The CSS classes of the heading.
/// </summary>
[Parameter]
public string Class { get; set; } = string.Empty;
private string ToggleTooltip => this.IsCollapsed ? T("Expand this category") : T("Collapse this category");
/// <summary>
/// Asks the user whether to hide the category, and hides it on a yes.
/// </summary>
/// <remarks>
/// Many users click the eye just to see what it does. A category gone without a word would startle them,
/// so the dialog says what happens, where to show the category again, and that collapsing it might be all
/// they want. What happens to the assistants elsewhere depends on the option of the user, so the dialog
/// describes the one in effect.
/// </remarks>
private async Task ConfirmHideAsync()
{
var effect = this.SettingsManager.ConfigurationData.AssistantsPage.HiddenCategoryAssistants is AssistantOfferBehavior.KEEP_OFFERING
? TA("""The assistants page will no longer show this category. AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.""")
: TA("""The assistants page will no longer show this category, and AI Studio will treat its assistants as if they did not exist, e.g., they will not appear in the "Send to ..." menu.""");
var wayBack = TA("You can show the category again at any time in the assistant settings, which the gear next to the heading of the page opens.");
var alternative = TA("If you only want a better overview, click the heading of the category instead: that collapses it.");
var dialogParameters = new DialogParameters<ConfirmDialog>
{
{ x => x.MarkdownBody, $"{effect}\n\n{wayBack}\n\n{alternative}" },
};
var dialogReference = await this.DialogService.ShowAsync<ConfirmDialog>(string.Format(T("Hide the category '{0}'?"), this.Category.Name), dialogParameters, DialogOptions.FULLSCREEN);
var dialogResult = await dialogReference.Result;
if (dialogResult is null || dialogResult.Canceled)
return;
await this.OnHide.InvokeAsync();
}
}
@@ -0,0 +1,65 @@
using AIStudio.Tools.PluginSystem;
namespace AIStudio.Components;
/// <summary>
/// Knows which categories the assistants page shows right now.
/// </summary>
/// <remarks>
/// Whether a category shows any assistant is known only after its blocks rendered: the built-in assistants
/// come as markup and decide on their own whether they are visible. The category blocks therefore report
/// here after every rendering, just as the assistant blocks report to their category. The page asks which
/// categories its settings dialog offers, and whether it shows any category at all.
/// </remarks>
public sealed class AssistantCategoryRegistry
{
private readonly HashSet<AssistantCategoryBlock> blocks = [];
/// <summary>
/// Raised when the page went from showing no category to showing one, or the other way round.
/// </summary>
/// <remarks>
/// Only this change matters to the page itself, so it renders again only then, not whenever a block
/// reports.
/// </remarks>
public event Action? ShowsAnyCategoryChanged;
/// <summary>
/// Whether the page shows at least one category, or null until the first block reported.
/// </summary>
public bool? ShowsAnyCategory { get; private set; }
/// <summary>
/// Gets the categories which show at least one assistant right now.
/// </summary>
public IReadOnlyList<AssistantCategoryKey> ShownCategories => this.blocks
.Where(block => block.IsShowingAssistants)
.Select(block => block.Category)
.Distinct()
.ToList();
/// <summary>
/// Adds a category block of the page.
/// </summary>
/// <param name="block">The block which joins the page.</param>
internal void Register(AssistantCategoryBlock block) => this.blocks.Add(block);
/// <summary>
/// Removes a category block of the page, e.g., when the plugins of its category are gone.
/// </summary>
/// <param name="block">The block which leaves the page.</param>
internal void Unregister(AssistantCategoryBlock block) => this.blocks.Remove(block);
/// <summary>
/// Takes note that a block rendered and might show something else now.
/// </summary>
internal void ReportChange()
{
var showsAnyCategory = this.blocks.Any(block => block.IsShowingAssistants);
if (this.ShowsAnyCategory == showsAnyCategory)
return;
this.ShowsAnyCategory = showsAnyCategory;
this.ShowsAnyCategoryChanged?.Invoke();
}
}
@@ -0,0 +1,23 @@
@using AIStudio.Dialogs.Settings
@inherits MSGComponentBase
<AssistantBlock TSettings="NoSettingsPanel"
Component="Components.DYNAMIC_ASSISTANT"
Name="@this.Plugin.AssistantTitle"
Description="@this.Plugin.Description"
Icon="@AppIcons.ASSISTANT_PLUGIN"
Disabled="@(!this.SecurityState.CanStartAssistant)"
AssistantSessionInstanceId="@this.Plugin.Id.ToString()"
Link="@this.LaunchLink"
OnClick="@this.StartAsync">
<AdditionalActions>
<DirectChatLauncherSettingsAction Plugin="@this.Plugin" />
@if (this.AvailablePlugin is not null)
{
<PluginDeleteAction Plugin="@this.AvailablePlugin" />
}
</AdditionalActions>
<SecurityBadge>
<AssistantPluginSecurityCard Plugin="@this.Plugin" Compact="@true" />
</SecurityBadge>
</AssistantBlock>
@@ -0,0 +1,61 @@
using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.PluginSystem.Assistants;
using AIStudio.Tools.Services;
using Microsoft.AspNetCore.Components;
namespace AIStudio.Components;
/// <summary>
/// The tile of an assistant plugin on the assistants page.
/// </summary>
/// <remarks>
/// A plugin appears in each of its categories, so the page may show this tile more than once. A form
/// assistant opens its page, a direct chat launcher opens its chat right away. The plugin texts are shown
/// as the plugin states them: AI Studio does not translate them.
/// </remarks>
public partial class AssistantPluginBlock : MSGComponentBase
{
/// <summary>
/// The assistant plugin this tile starts.
/// </summary>
[Parameter, EditorRequired]
public PluginAssistants Plugin { get; set; } = null!;
[Inject]
private NavigationManager NavigationManager { get; init; } = null!;
[Inject]
private DirectChatService DirectChatService { get; init; } = null!;
private PluginAssistantSecurityState SecurityState => PluginAssistantSecurityResolver.Resolve(this.SettingsManager, this.Plugin);
private string LaunchLink => this.Plugin.StartsChatDirectly ? string.Empty : $"{Routes.ASSISTANT_DYNAMIC}?assistantId={this.Plugin.Id}";
/// <summary>
/// The plugin as the plugin factory lists it, which the delete action needs.
/// </summary>
private IAvailablePlugin? AvailablePlugin => PluginFactory.AvailablePlugins.OfType<IAvailablePlugin>().FirstOrDefault(plugin => plugin.Id == this.Plugin.Id);
private async Task StartAsync()
{
if (!this.SecurityState.CanStartAssistant)
return;
if (!this.Plugin.StartsChatDirectly)
{
this.NavigationManager.NavigateTo(this.LaunchLink);
return;
}
var result = await this.DirectChatService.TryCreateAssistantChatAsync(this.Plugin);
if (result.Request is null)
{
await this.MessageBus.SendError(new(AppIcons.ERROR, result.ErrorMessage));
return;
}
MessageBus.INSTANCE.DeferMessage(this, Event.SEND_TO_CHAT, result.Request);
this.NavigationManager.NavigateTo(Routes.CHAT);
}
}
@@ -3,7 +3,7 @@
<MudStack Row="@true" Class="mb-3"> <MudStack Row="@true" Class="mb-3">
<MudSelect T="@T" Value="@this.Value" ValueChanged="@this.SelectionChanged" AdornmentIcon="@this.Icon" Adornment="Adornment.Start" IconSize="@this.IconSize" Label="@this.Label" Variant="Variant.Outlined" Margin="Margin.Dense" Validation="@this.ValidateSelection" Disabled="@this.Disabled"> <MudSelect T="@T" Value="@this.Value" ValueChanged="@this.SelectionChanged" AdornmentIcon="@this.Icon" Adornment="Adornment.Start" IconSize="@this.IconSize" Label="@this.Label" Variant="Variant.Outlined" Margin="Margin.Dense" Validation="@this.ValidateSelection" Disabled="@this.Disabled">
@foreach (var value in Enum.GetValues<T>()) @foreach (var value in this.OfferedValues)
{ {
<MudSelectItem Value="@value"> <MudSelectItem Value="@value">
@this.NameFunc(value) @this.NameFunc(value)
@@ -59,7 +59,18 @@ public partial class EnumSelection<T> : EnumSelectionBase where T : struct, Enum
[Parameter] [Parameter]
public Func<T, Task> SelectionUpdated { get; set; } = _ => Task.CompletedTask; 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] [Inject]
private SettingsManager SettingsManager { get; set; } = null!; private SettingsManager SettingsManager { get; set; } = null!;
@@ -30,7 +30,10 @@ public partial class PluginInfoDialog : MSGComponentBase
private string AuthorsText => this.Plugin.Authors.Length > 0 ? string.Join(", ", this.Plugin.Authors) : this.T("No authors specified"); private string AuthorsText => this.Plugin.Authors.Length > 0 ? string.Join(", ", this.Plugin.Authors) : this.T("No authors specified");
private string CategoriesText => this.Plugin.Categories.Length > 0 ? string.Join(", ", this.Plugin.Categories.Select(category => category.Name)) : this.T("No categories specified"); /// <summary>
/// The categories of the plugin, with the names it gives its custom categories in place of CUSTOM.
/// </summary>
private string CategoriesText => this.Plugin.Categories.Length > 0 ? string.Join(", ", this.Plugin.Categories.SelectMany(category => category is PluginCategory.CUSTOM ? this.Plugin.CustomCategories : [category.Name])) : this.T("No categories specified");
private string TargetGroupsText => this.Plugin.TargetGroups.Length > 0 ? string.Join(", ", this.Plugin.TargetGroups.Select(targetGroup => targetGroup.Name)) : this.T("No target groups specified"); private string TargetGroupsText => this.Plugin.TargetGroups.Length > 0 ? string.Join(", ", this.Plugin.TargetGroups.Select(targetGroup => targetGroup.Name)) : this.T("No target groups specified");
@@ -0,0 +1,37 @@
@using AIStudio.Settings
@inherits SettingsDialogBase
<MudDialog>
<TitleContent>
<MudText Typo="Typo.h6" Class="d-flex align-center">
<MudIcon Icon="@AppIcons.SETTINGS" Class="mr-2" />
@T("Assistant Settings")
</MudText>
</TitleContent>
<DialogContent>
<ConfigurationSelect OptionDescription="@TA("What should happen to assistants of categories you collapsed?")" SelectedValue="@(() => this.SettingsManager.ConfigurationData.AssistantsPage.CollapsedCategoryAssistants)" Data="@ConfigurationSelectDataFactory.GetAssistantOfferBehaviorData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.AssistantsPage.CollapsedCategoryAssistants = selectedValue)" OptionHelp="@this.CollapsedCategoriesHelp" IsLocked="() => ManagedConfiguration.TryGet(x => x.AssistantsPage, x => x.CollapsedCategoryAssistants, out var meta) && meta.IsLocked"/>
<ConfigurationSelect OptionDescription="@TA("What should happen to assistants of categories you hid?")" SelectedValue="@(() => this.SettingsManager.ConfigurationData.AssistantsPage.HiddenCategoryAssistants)" Data="@ConfigurationSelectDataFactory.GetAssistantOfferBehaviorData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.AssistantsPage.HiddenCategoryAssistants = selectedValue)" OptionHelp="@this.HiddenCategoriesHelp" IsLocked="() => ManagedConfiguration.TryGet(x => x.AssistantsPage, x => x.HiddenCategoryAssistants, out var meta) && meta.IsLocked"/>
<MudText Typo="Typo.h6" Class="mt-6 mb-2">
@T("Categories")
</MudText>
@if (this.Categories.Count == 0)
{
<MudText Typo="Typo.body1">
@T("There are no categories to show or hide right now.")
</MudText>
}
else
{
@foreach (var category in this.Categories)
{
<ConfigurationOption @key="@category" OptionDescription="@category.Name" LabelOn="@T("The category is shown")" LabelOff="@T("The category is hidden")" State="@(() => !this.SettingsManager.ConfigurationData.AssistantsPage.IsCategoryHidden(category))" StateUpdate="@(isShown => this.SettingsManager.ConfigurationData.AssistantsPage.SetCategoryHidden(category, !isShown))"/>
}
}
</DialogContent>
<DialogActions>
<MudButton OnClick="@this.Close" Variant="Variant.Filled">
@T("Close")
</MudButton>
</DialogActions>
</MudDialog>
@@ -0,0 +1,26 @@
using AIStudio.Tools.PluginSystem;
using Microsoft.AspNetCore.Components;
namespace AIStudio.Dialogs.Settings;
/// <summary>
/// The settings of the assistants page: what happens to the assistants of collapsed and hidden categories,
/// and which categories the page shows.
/// </summary>
public partial class SettingsDialogAssistantsPage : SettingsDialogBase
{
/// <summary>
/// The categories the dialog offers to show or hide, in the order of the page.
/// </summary>
/// <remarks>
/// The caller selects them with AssistantPageSections.SelectForSettings. The list stays the same while
/// the dialog is open, so that a category the user hides here keeps its switch.
/// </remarks>
[Parameter]
public IReadOnlyList<AssistantCategoryKey> Categories { get; set; } = [];
private string CollapsedCategoriesHelp => TA("""Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.""");
private string HiddenCategoriesHelp => TA("""Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the "Send to ..." menu.""");
}
+56 -69
View File
@@ -1,88 +1,75 @@
@attribute [Route(Routes.ASSISTANTS)] @attribute [Route(Routes.ASSISTANTS)]
@using AIStudio.Dialogs.Settings @using AIStudio.Dialogs.Settings
@using AIStudio.Settings.DataModel @using AIStudio.Settings.DataModel
@using AIStudio.Tools.PluginSystem
@using AIStudio.Tools.PluginSystem.Assistants @using AIStudio.Tools.PluginSystem.Assistants
@inherits MSGComponentBase @inherits MSGComponentBase
<div class="inner-scrolling-context"> <div class="inner-scrolling-context">
<MudText Typo="Typo.h3" Class="mb-2 mr-3"> <MudStack Row="true" AlignItems="AlignItems.Center" Class="mb-2" StretchItems="StretchItems.Start">
@T("Assistants") <MudText Typo="Typo.h3">
</MudText> @T("Assistants")
</MudText>
<MudTooltip Text="@T("Open the assistant settings")" Placement="Placement.Bottom">
<MudIconButton Icon="@AppIcons.SETTINGS" Color="Color.Default" OnClick="@this.OpenSettingsDialogAsync"/>
</MudTooltip>
</MudStack>
<InnerScrolling> <InnerScrolling>
@{ var sections = this.CreateSections(); }
<AssistantCategoryBlock Title="@T("General")" HeaderClass="mb-2 mr-3"> @if (this.HidesEveryCategory)
<AssistantBlock TSettings="SettingsDialogTextSummarizer" Component="Components.TEXT_SUMMARIZER_ASSISTANT" Name="@T("Text Summarizer")" Description="@TA("Use an LLM to summarize a given text.")" Icon="@AppIcons.ASSISTANT_TEXT_SUMMARIZER" Link="@Routes.ASSISTANT_SUMMARIZER"/>
<AssistantBlock TSettings="SettingsDialogTranslation" Component="Components.TRANSLATION_ASSISTANT" Name="@T("Translation")" Description="@T("Translate text into another language.")" Icon="@AppIcons.TRANSLATION" Link="@Routes.ASSISTANT_TRANSLATION"/>
<AssistantBlock TSettings="SettingsDialogGrammarSpelling" Component="Components.GRAMMAR_SPELLING_ASSISTANT" Name="@T("Grammar & Spelling")" Description="@T("Check grammar and spelling of a given text.")" Icon="@AppIcons.ASSISTANT_GRAMMAR_SPELLING" Link="@Routes.ASSISTANT_GRAMMAR_SPELLING"/>
<AssistantBlock TSettings="SettingsDialogRewrite" Component="Components.REWRITE_ASSISTANT" Name="@T("Rewrite & Improve")" Description="@T("Rewrite and improve a given text for a chosen style.")" Icon="@AppIcons.ASSISTANT_REWRITE" Link="@Routes.ASSISTANT_REWRITE"/>
<AssistantBlock TSettings="SettingsDialogPromptOptimizer" Component="Components.PROMPT_OPTIMIZER_ASSISTANT" Name="@T("Prompt Optimizer")" Description="@TA("Optimize your prompt using a structured guideline.")" Icon="@AppIcons.ASSISTANT_PROMPT_OPTIMIZER" Link="@Routes.ASSISTANT_PROMPT_OPTIMIZER"/>
<AssistantBlock TSettings="SettingsDialogSynonyms" Component="Components.SYNONYMS_ASSISTANT" Name="@T("Synonyms")" Description="@TA("Find synonyms for a given word or phrase.")" Icon="@AppIcons.ASSISTANT_SYNONYMS" Link="@Routes.ASSISTANT_SYNONYMS"/>
<AssistantBlock TSettings="SettingsDialogModelComparison" Component="Components.MODEL_COMPARISON_ASSISTANT" Name="@T("Model Comparison")" Description="@TA("Compare two models in a blind test for how much their answers vary and how useful they are.")" Icon="@AppIcons.ASSISTANT_MODEL_COMPARISON" Link="@Routes.ASSISTANT_MODEL_COMPARISON"/>
<AssistantBlock TSettings="SettingsDialogAssistantBuilder" Component="Components.META_ASSISTANT" RequiredPreviewFeature="PreviewFeatures.PRE_META_ASSISTANT_V1" Name="@T("Assistant Builder")" Description="@TA("Generate your own assistants.")" Icon="@AppIcons.ASSISTANT_BUILDER" Link="@Routes.ASSISTANT_META_ASSISTANT"/>
</AssistantCategoryBlock>
@if (this.AssistantPlugins.Count > 0)
{ {
<AssistantCategoryBlock Title="@T("Installed Assistants")"> <MudAlert Severity="Severity.Info" Variant="Variant.Outlined" Class="mb-3">
@foreach (var assistantPlugin in this.AssistantPlugins) @TA("You hid all categories. You can show them again in the assistant settings, which the gear next to the heading opens.")
{ </MudAlert>
var securityState = PluginAssistantSecurityResolver.Resolve(this.SettingsManager, assistantPlugin);
var launchLink = assistantPlugin.StartsChatDirectly ? string.Empty : $"{Routes.ASSISTANT_DYNAMIC}?assistantId={assistantPlugin.Id}";
var availablePlugin = PluginFactory.AvailablePlugins.OfType<IAvailablePlugin>().FirstOrDefault(plugin => plugin.Id == assistantPlugin.Id);
<AssistantBlock TSettings="NoSettingsPanel"
Component="Components.DYNAMIC_ASSISTANT"
Name="@T(assistantPlugin.AssistantTitle)"
Description="@T(assistantPlugin.Description)"
Icon="@AppIcons.ASSISTANT_PLUGIN"
Disabled="@(!securityState.CanStartAssistant)"
AssistantSessionInstanceId="@assistantPlugin.Id.ToString()"
Link="@launchLink"
OnClick="@(() => this.StartAssistantPluginAsync(assistantPlugin))">
<AdditionalActions>
<DirectChatLauncherSettingsAction Plugin="@assistantPlugin" />
@if (availablePlugin is not null)
{
<PluginDeleteAction Plugin="@availablePlugin" />
}
</AdditionalActions>
<SecurityBadge>
<AssistantPluginSecurityCard Plugin="@assistantPlugin" Compact="@true" />
</SecurityBadge>
</AssistantBlock>
}
</AssistantCategoryBlock>
} }
<AssistantCategoryBlock Title="@T("Business")"> <CascadingValue Value="@this.categoryRegistry" IsFixed="@true">
<AssistantBlock TSettings="SettingsDialogWritingEMails" Component="Components.EMAIL_ASSISTANT" Name="@T("E-Mail")" Description="@TA("Generate an e-mail for a given context.")" Icon="@AppIcons.ASSISTANT_EMAIL" Link="@Routes.ASSISTANT_EMAIL"/> <AssistantCategoryBlock Category="@COMMON" Plugins="@sections.PluginsOf(COMMON)" HeaderClass="mb-2 mr-3">
<AssistantBlock TSettings="SettingsDialogSWOTAnalysis" Component="Components.SWOT_ANALYSIS_ASSISTANT" Name="@T("SWOT Analysis")" Description="@T("Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information.")" Icon="@AppIcons.ASSISTANT_SWOT_ANALYSIS" Link="@Routes.ASSISTANT_SWOT_ANALYSIS"/> <AssistantBlock TSettings="SettingsDialogTextSummarizer" Component="Components.TEXT_SUMMARIZER_ASSISTANT" Name="@T("Text Summarizer")" Description="@TA("Use an LLM to summarize a given text.")" Icon="@AppIcons.ASSISTANT_TEXT_SUMMARIZER" Link="@Routes.ASSISTANT_SUMMARIZER"/>
<AssistantBlock TSettings="NoSettingsPanel" Component="Components.DOCUMENT_ANALYSIS_ASSISTANT" Name="@T("Document Analysis")" Description="@TA("Analyze a document regarding defined rules and extract key information.")" Icon="@AppIcons.ASSISTANT_DOCUMENT_ANALYSIS" Link="@Routes.ASSISTANT_DOCUMENT_ANALYSIS"/> <AssistantBlock TSettings="SettingsDialogTranslation" Component="Components.TRANSLATION_ASSISTANT" Name="@T("Translation")" Description="@T("Translate text into another language.")" Icon="@AppIcons.TRANSLATION" Link="@Routes.ASSISTANT_TRANSLATION"/>
<AssistantBlock TSettings="SettingsDialogBatchProcessing" Component="Components.BATCH_PROCESSING_ASSISTANT" Name="@T("Batch Processing")" Description="@T("Process all documents of a folder in one batch run and collect the results.")" Icon="@AppIcons.ASSISTANT_BATCH_PROCESSING" Link="@Routes.ASSISTANT_BATCH_PROCESSING"/> <AssistantBlock TSettings="SettingsDialogGrammarSpelling" Component="Components.GRAMMAR_SPELLING_ASSISTANT" Name="@T("Grammar & Spelling")" Description="@T("Check grammar and spelling of a given text.")" Icon="@AppIcons.ASSISTANT_GRAMMAR_SPELLING" Link="@Routes.ASSISTANT_GRAMMAR_SPELLING"/>
<AssistantBlock TSettings="SettingsDialogMyTasks" Component="Components.MY_TASKS_ASSISTANT" Name="@T("My Tasks")" Description="@TA("Analyze a text or an email for tasks you need to complete.")" Icon="@AppIcons.ASSISTANT_MY_TASKS" Link="@Routes.ASSISTANT_MY_TASKS"/> <AssistantBlock TSettings="SettingsDialogRewrite" Component="Components.REWRITE_ASSISTANT" Name="@T("Rewrite & Improve")" Description="@T("Rewrite and improve a given text for a chosen style.")" Icon="@AppIcons.ASSISTANT_REWRITE" Link="@Routes.ASSISTANT_REWRITE"/>
<AssistantBlock TSettings="SettingsDialogAgenda" Component="Components.AGENDA_ASSISTANT" Name="@T("Agenda Planner")" Description="@TA("Generate an agenda for a given meeting, seminar, etc.")" Icon="@AppIcons.ASSISTANT_AGENDA" Link="@Routes.ASSISTANT_AGENDA"/> <AssistantBlock TSettings="SettingsDialogPromptOptimizer" Component="Components.PROMPT_OPTIMIZER_ASSISTANT" Name="@T("Prompt Optimizer")" Description="@TA("Optimize your prompt using a structured guideline.")" Icon="@AppIcons.ASSISTANT_PROMPT_OPTIMIZER" Link="@Routes.ASSISTANT_PROMPT_OPTIMIZER"/>
<AssistantBlock TSettings="SettingsDialogJobPostings" Component="Components.JOB_POSTING_ASSISTANT" Name="@T("Job Posting")" Description="@TA("Generate a job posting for a given job description.")" Icon="@AppIcons.ASSISTANT_JOB_POSTING" Link="@Routes.ASSISTANT_JOB_POSTING"/> <AssistantBlock TSettings="SettingsDialogSynonyms" Component="Components.SYNONYMS_ASSISTANT" Name="@T("Synonyms")" Description="@TA("Find synonyms for a given word or phrase.")" Icon="@AppIcons.ASSISTANT_SYNONYMS" Link="@Routes.ASSISTANT_SYNONYMS"/>
<AssistantBlock TSettings="SettingsDialogLegalCheck" Component="Components.LEGAL_CHECK_ASSISTANT" Name="@T("Legal Check")" Description="@TA("Ask a question about a legal document.")" Icon="@AppIcons.ASSISTANT_LEGAL_CHECK" Link="@Routes.ASSISTANT_LEGAL_CHECK"/> <AssistantBlock TSettings="SettingsDialogModelComparison" Component="Components.MODEL_COMPARISON_ASSISTANT" Name="@T("Model Comparison")" Description="@TA("Compare two models in a blind test for how much their answers vary and how useful they are.")" Icon="@AppIcons.ASSISTANT_MODEL_COMPARISON" Link="@Routes.ASSISTANT_MODEL_COMPARISON"/>
<AssistantBlock TSettings="SettingsDialogIconFinder" Component="Components.ICON_FINDER_ASSISTANT" Name="@T("Icon Finder")" Description="@TA("Use an LLM to find an icon for a given context.")" Icon="@AppIcons.ASSISTANT_ICON_FINDER" Link="@Routes.ASSISTANT_ICON_FINDER"/> <AssistantBlock TSettings="SettingsDialogAssistantBuilder" Component="Components.META_ASSISTANT" RequiredPreviewFeature="PreviewFeatures.PRE_META_ASSISTANT_V1" Name="@T("Assistant Builder")" Description="@TA("Generate your own assistants.")" Icon="@AppIcons.ASSISTANT_BUILDER" Link="@Routes.ASSISTANT_META_ASSISTANT"/>
<AssistantBlock TSettings="SettingsDialogSlideBuilder" Component="Components.SLIDE_BUILDER_ASSISTANT" Name="@T("Slide Assistant")" Description="@TA("Turn texts and documents into slides, also as a PowerPoint file in the design of your template.")" Icon="@AppIcons.ASSISTANT_SLIDES" Link="@Routes.ASSISTANT_SLIDE_BUILDER"/> </AssistantCategoryBlock>
<AssistantBlock TSettings="SettingsDialogVisualBriefing" Component="Components.VISUAL_BRIEFING_ASSISTANT" RequiredPreviewFeature="Components.VISUAL_BRIEFING_ASSISTANT.RequiredPreviewFeature" Name="@T("Visual Briefing Assistant")" Description="@TA("Turn documents, data, images, audio, and video into an audience-ready interactive briefing.")" Icon="@AppIcons.ASSISTANT_VISUAL_BRIEFING" Link="@Routes.ASSISTANT_VISUAL_BRIEFING" />
</AssistantCategoryBlock>
<AssistantCategoryBlock Title="@T("Learning & Reflecting")"> <AssistantCategoryBlock Category="@BUSINESS" Plugins="@sections.PluginsOf(BUSINESS)">
<AssistantBlock TSettings="SettingsDialogAssistantBias" Component="Components.BIAS_DAY_ASSISTANT" Name="@T("Bias of the Day")" Description="@TA("Learn about one cognitive bias every day.")" Icon="@AppIcons.ASSISTANT_BIAS_OF_THE_DAY" Link="@Routes.ASSISTANT_BIAS"/> <AssistantBlock TSettings="SettingsDialogWritingEMails" Component="Components.EMAIL_ASSISTANT" Name="@T("E-Mail")" Description="@TA("Generate an e-mail for a given context.")" Icon="@AppIcons.ASSISTANT_EMAIL" Link="@Routes.ASSISTANT_EMAIL"/>
<AssistantBlock TSettings="SettingsDialogBeyondFactsLab" Component="Components.BEYOND_FACTS_LAB_ASSISTANT" RequiredPreviewFeature="Components.BEYOND_FACTS_LAB_ASSISTANT.RequiredPreviewFeature" Name="@T("BeyondFacts Lab")" Description="@TA("Prepare step by step for a challenging appearance as a researcher, e.g., a panel discussion or an interview.")" Icon="@AppIcons.ASSISTANT_BEYOND_FACTS_LAB" Link="@Routes.ASSISTANT_BEYOND_FACTS_LAB"/> <AssistantBlock TSettings="SettingsDialogSWOTAnalysis" Component="Components.SWOT_ANALYSIS_ASSISTANT" Name="@T("SWOT Analysis")" Description="@T("Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information.")" Icon="@AppIcons.ASSISTANT_SWOT_ANALYSIS" Link="@Routes.ASSISTANT_SWOT_ANALYSIS"/>
</AssistantCategoryBlock> <AssistantBlock TSettings="NoSettingsPanel" Component="Components.DOCUMENT_ANALYSIS_ASSISTANT" Name="@T("Document Analysis")" Description="@TA("Analyze a document regarding defined rules and extract key information.")" Icon="@AppIcons.ASSISTANT_DOCUMENT_ANALYSIS" Link="@Routes.ASSISTANT_DOCUMENT_ANALYSIS"/>
<AssistantBlock TSettings="SettingsDialogBatchProcessing" Component="Components.BATCH_PROCESSING_ASSISTANT" Name="@T("Batch Processing")" Description="@T("Process all documents of a folder in one batch run and collect the results.")" Icon="@AppIcons.ASSISTANT_BATCH_PROCESSING" Link="@Routes.ASSISTANT_BATCH_PROCESSING"/>
<AssistantBlock TSettings="SettingsDialogMyTasks" Component="Components.MY_TASKS_ASSISTANT" Name="@T("My Tasks")" Description="@TA("Analyze a text or an email for tasks you need to complete.")" Icon="@AppIcons.ASSISTANT_MY_TASKS" Link="@Routes.ASSISTANT_MY_TASKS"/>
<AssistantBlock TSettings="SettingsDialogAgenda" Component="Components.AGENDA_ASSISTANT" Name="@T("Agenda Planner")" Description="@TA("Generate an agenda for a given meeting, seminar, etc.")" Icon="@AppIcons.ASSISTANT_AGENDA" Link="@Routes.ASSISTANT_AGENDA"/>
<AssistantBlock TSettings="SettingsDialogJobPostings" Component="Components.JOB_POSTING_ASSISTANT" Name="@T("Job Posting")" Description="@TA("Generate a job posting for a given job description.")" Icon="@AppIcons.ASSISTANT_JOB_POSTING" Link="@Routes.ASSISTANT_JOB_POSTING"/>
<AssistantBlock TSettings="SettingsDialogLegalCheck" Component="Components.LEGAL_CHECK_ASSISTANT" Name="@T("Legal Check")" Description="@TA("Ask a question about a legal document.")" Icon="@AppIcons.ASSISTANT_LEGAL_CHECK" Link="@Routes.ASSISTANT_LEGAL_CHECK"/>
<AssistantBlock TSettings="SettingsDialogIconFinder" Component="Components.ICON_FINDER_ASSISTANT" Name="@T("Icon Finder")" Description="@TA("Use an LLM to find an icon for a given context.")" Icon="@AppIcons.ASSISTANT_ICON_FINDER" Link="@Routes.ASSISTANT_ICON_FINDER"/>
<AssistantBlock TSettings="SettingsDialogSlideBuilder" Component="Components.SLIDE_BUILDER_ASSISTANT" Name="@T("Slide Assistant")" Description="@TA("Turn texts and documents into slides, also as a PowerPoint file in the design of your template.")" Icon="@AppIcons.ASSISTANT_SLIDES" Link="@Routes.ASSISTANT_SLIDE_BUILDER"/>
<AssistantBlock TSettings="SettingsDialogVisualBriefing" Component="Components.VISUAL_BRIEFING_ASSISTANT" RequiredPreviewFeature="Components.VISUAL_BRIEFING_ASSISTANT.RequiredPreviewFeature" Name="@T("Visual Briefing Assistant")" Description="@TA("Turn documents, data, images, audio, and video into an audience-ready interactive briefing.")" Icon="@AppIcons.ASSISTANT_VISUAL_BRIEFING" Link="@Routes.ASSISTANT_VISUAL_BRIEFING" />
</AssistantCategoryBlock>
<AssistantCategoryBlock Title="@T("Software Engineering")"> <AssistantCategoryBlock Category="@EDUCATION" Plugins="@sections.PluginsOf(EDUCATION)">
<AssistantBlock TSettings="SettingsDialogCoding" Component="Components.CODING_ASSISTANT" Name="@T("Coding")" Description="@TA("Get coding and debugging support from an LLM.")" Icon="@AppIcons.ASSISTANT_CODING" Link="@Routes.ASSISTANT_CODING"/> <AssistantBlock TSettings="SettingsDialogAssistantBias" Component="Components.BIAS_DAY_ASSISTANT" Name="@T("Bias of the Day")" Description="@TA("Learn about one cognitive bias every day.")" Icon="@AppIcons.ASSISTANT_BIAS_OF_THE_DAY" Link="@Routes.ASSISTANT_BIAS"/>
<AssistantBlock TSettings="SettingsDialogERIServer" Component="Components.ERI_ASSISTANT" RequiredPreviewFeature="PreviewFeatures.PRE_RAG_2024" Name="@T("ERI Server")" Description="@TA("Generate an ERI server to integrate business systems.")" Icon="@AppIcons.ERI" Link="@Routes.ASSISTANT_ERI"/> <AssistantBlock TSettings="SettingsDialogBeyondFactsLab" Component="Components.BEYOND_FACTS_LAB_ASSISTANT" RequiredPreviewFeature="Components.BEYOND_FACTS_LAB_ASSISTANT.RequiredPreviewFeature" Name="@T("BeyondFacts Lab")" Description="@TA("Prepare step by step for a challenging appearance as a researcher, e.g., a panel discussion or an interview.")" Icon="@AppIcons.ASSISTANT_BEYOND_FACTS_LAB" Link="@Routes.ASSISTANT_BEYOND_FACTS_LAB"/>
</AssistantCategoryBlock> </AssistantCategoryBlock>
<AssistantCategoryBlock Title="@T("AI Studio Development")"> <AssistantCategoryBlock Category="@SOFTWARE_DEVELOPMENT" Plugins="@sections.PluginsOf(SOFTWARE_DEVELOPMENT)">
<AssistantBlock TSettings="SettingsDialogI18N" Component="Components.I18N_ASSISTANT" Name="@T("Localization")" Description="@T("Translate AI Studio text content into other languages")" Icon="@AppIcons.ASSISTANT_LOCALIZATION" Link="@Routes.ASSISTANT_AI_STUDIO_I18N"/> <AssistantBlock TSettings="SettingsDialogCoding" Component="Components.CODING_ASSISTANT" Name="@T("Coding")" Description="@TA("Get coding and debugging support from an LLM.")" Icon="@AppIcons.ASSISTANT_CODING" Link="@Routes.ASSISTANT_CODING"/>
<AssistantBlock TSettings="NoSettingsPanel" Component="Components.LOG_VIEWER_ASSISTANT" Name="@T("Log Viewer")" Description="@T("View and filter AI Studio log files.")" Icon="@AppIcons.ASSISTANT_LOG_VIEWER" Link="@Routes.ASSISTANT_LOG_VIEWER"/> <AssistantBlock TSettings="SettingsDialogERIServer" Component="Components.ERI_ASSISTANT" RequiredPreviewFeature="PreviewFeatures.PRE_RAG_2024" Name="@T("ERI Server")" Description="@TA("Generate an ERI server to integrate business systems.")" Icon="@AppIcons.ERI" Link="@Routes.ASSISTANT_ERI"/>
</AssistantCategoryBlock> </AssistantCategoryBlock>
@foreach (var section in sections.Where(section => !AssistantPageSections.IsBuiltIn(section.Category)))
{
<AssistantCategoryBlock @key="@section.Category" Category="@section.Category" Plugins="@section.Assistants"/>
}
<AssistantCategoryBlock Category="@AssistantPageSections.TRAILING_CATEGORY" Plugins="@sections.PluginsOf(AssistantPageSections.TRAILING_CATEGORY)">
<AssistantBlock TSettings="SettingsDialogI18N" Component="Components.I18N_ASSISTANT" Name="@T("Localization")" Description="@T("Translate AI Studio text content into other languages")" Icon="@AppIcons.ASSISTANT_LOCALIZATION" Link="@Routes.ASSISTANT_AI_STUDIO_I18N"/>
<AssistantBlock TSettings="NoSettingsPanel" Component="Components.LOG_VIEWER_ASSISTANT" Name="@T("Log Viewer")" Description="@T("View and filter AI Studio log files.")" Icon="@AppIcons.ASSISTANT_LOG_VIEWER" Link="@Routes.ASSISTANT_LOG_VIEWER"/>
</AssistantCategoryBlock>
</CascadingValue>
</InnerScrolling> </InnerScrolling>
</div> </div>
@@ -1,31 +1,72 @@
using AIStudio.Components; using AIStudio.Components;
using AIStudio.Agents.AssistantAudit; using AIStudio.Agents.AssistantAudit;
using AIStudio.Dialogs.Settings;
using AIStudio.Tools.PluginSystem; using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.PluginSystem.Assistants; using AIStudio.Tools.PluginSystem.Assistants;
using AIStudio.Tools.Services;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
using DialogOptions = AIStudio.Dialogs.DialogOptions;
namespace AIStudio.Pages; namespace AIStudio.Pages;
public partial class Assistants : MSGComponentBase public partial class Assistants : MSGComponentBase
{ {
private static readonly AssistantCategoryKey COMMON = new(PluginCategory.COMMON);
private static readonly AssistantCategoryKey BUSINESS = new(PluginCategory.BUSINESS);
private static readonly AssistantCategoryKey EDUCATION = new(PluginCategory.EDUCATION);
private static readonly AssistantCategoryKey SOFTWARE_DEVELOPMENT = new(PluginCategory.SOFTWARE_DEVELOPMENT);
private readonly AssistantCategoryRegistry categoryRegistry = new();
private bool isAutoAuditing; private bool isAutoAuditing;
[Inject] [Inject]
private AssistantPluginAuditService AssistantPluginAuditService { get; init; } = null!; private AssistantPluginAuditService AssistantPluginAuditService { get; init; } = null!;
[Inject] [Inject]
private NavigationManager NavigationManager { get; init; } = null!; private IDialogService DialogService { get; init; } = null!;
[Inject]
private DirectChatService DirectChatService { get; init; } = null!;
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()
{ {
this.ApplyFilters([], [ Event.CONFIGURATION_CHANGED, Event.PLUGINS_RELOADED ]); this.ApplyFilters([], [ Event.CONFIGURATION_CHANGED, Event.PLUGINS_RELOADED ]);
this.categoryRegistry.ShowsAnyCategoryChanged += this.StateHasChanged;
await base.OnInitializedAsync(); await base.OnInitializedAsync();
} }
/// <inheritdoc />
protected override void DisposeResources()
{
this.categoryRegistry.ShowsAnyCategoryChanged -= this.StateHasChanged;
base.DisposeResources();
}
/// <summary>
/// Gets whether the user hid every category the page would show, so that it shows none.
/// </summary>
/// <remarks>
/// Without a hint, the page would look broken. When your organization hid or disabled every
/// assistant instead, the gear brings nothing back, so we keep quiet then.
/// </remarks>
private bool HidesEveryCategory
{
get
{
var page = this.SettingsManager.ConfigurationData.AssistantsPage;
return this.categoryRegistry.ShowsAnyCategory is false && (page.HiddenCategories.Count > 0 || page.HiddenCustomCategories.Count > 0);
}
}
private async Task OpenSettingsDialogAsync()
{
var categories = AssistantPageSections.SelectForSettings(this.categoryRegistry.ShownCategories, this.SettingsManager.ConfigurationData.App, this.SettingsManager.ConfigurationData.AssistantsPage);
var dialogParameters = new DialogParameters<SettingsDialogAssistantsPage>
{
{ x => x.Categories, categories },
};
await this.DialogService.ShowAsync<SettingsDialogAssistantsPage>(T("Assistant Settings"), dialogParameters, DialogOptions.FULLSCREEN);
}
protected override async Task OnAfterRenderAsync(bool firstRender) protected override async Task OnAfterRenderAsync(bool firstRender)
{ {
if (firstRender) if (firstRender)
@@ -34,9 +75,18 @@ public partial class Assistants : MSGComponentBase
private IReadOnlyCollection<PluginAssistants> AssistantPlugins => private IReadOnlyCollection<PluginAssistants> AssistantPlugins =>
PluginFactory.RunningPlugins.OfType<PluginAssistants>() PluginFactory.RunningPlugins.OfType<PluginAssistants>()
.Where(plugin => this.SettingsManager.IsPluginEnabled(plugin)) .Where(plugin => this.SettingsManager.IsAssistantPluginAvailable(plugin))
.ToList(); .ToList();
/// <summary>
/// Groups the enabled assistant plugins into the sections of the page.
/// </summary>
/// <remarks>
/// The page asks for the sections once per rendering, so that the plugins and their order stay the
/// same within one rendering.
/// </remarks>
private IReadOnlyList<AssistantPageSection<PluginAssistants>> CreateSections() => AssistantPageSections.Build(this.AssistantPlugins, plugin => plugin.AssistantTitle);
private async Task TryAutoAuditAssistantsAsync() private async Task TryAutoAuditAssistantsAsync()
{ {
if (this.isAutoAuditing || !this.SettingsManager.ConfigurationData.AssistantPluginAudit.AutomaticallyAuditAssistants) if (this.isAutoAuditing || !this.SettingsManager.ConfigurationData.AssistantPluginAudit.AutomaticallyAuditAssistants)
@@ -88,29 +138,6 @@ public partial class Assistants : MSGComponentBase
audits.Add(audit); audits.Add(audit);
} }
private async Task StartAssistantPluginAsync(PluginAssistants assistantPlugin)
{
var securityState = PluginAssistantSecurityResolver.Resolve(this.SettingsManager, assistantPlugin);
if (!securityState.CanStartAssistant)
return;
if (!assistantPlugin.StartsChatDirectly)
{
this.NavigationManager.NavigateTo($"{Routes.ASSISTANT_DYNAMIC}?assistantId={assistantPlugin.Id}");
return;
}
var result = await this.DirectChatService.TryCreateAssistantChatAsync(assistantPlugin);
if (result.Request is null)
{
await this.MessageBus.SendError(new(AppIcons.ERROR, result.ErrorMessage));
return;
}
MessageBus.INSTANCE.DeferMessage(this, Event.SEND_TO_CHAT, result.Request);
this.NavigationManager.NavigateTo(Routes.CHAT);
}
protected override async Task ProcessIncomingMessage<T>(ComponentBase? sendingComponent, Event triggeredEvent, T? data) where T : default protected override async Task ProcessIncomingMessage<T>(ComponentBase? sendingComponent, Event triggeredEvent, T? data) where T : default
{ {
if (triggeredEvent is Event.PLUGINS_RELOADED) if (triggeredEvent is Event.PLUGINS_RELOADED)
+1 -1
View File
@@ -108,7 +108,7 @@
@* A model plugin runs like a configuration plugin, without anybody switching it on: *@ @* A model plugin runs like a configuration plugin, without anybody switching it on: *@
@if (context is { IsInternal: false, Type: not (PluginType.CONFIGURATION or PluginType.MODEL) }) @if (context is { IsInternal: false, Type: not (PluginType.CONFIGURATION or PluginType.MODEL) })
{ {
var isEnabled = this.SettingsManager.IsPluginEnabled(context); var isEnabled = this.IsPluginWorking(context);
var activationSwitchDisabled = this.IsActivationSwitchDisabled(context, isEnabled); var activationSwitchDisabled = this.IsActivationSwitchDisabled(context, isEnabled);
<MudTooltip Text="@this.GetActivationTooltip(context, isEnabled)"> <MudTooltip Text="@this.GetActivationTooltip(context, isEnabled)">
<MudSwitch T="bool" Value="@isEnabled" ValueChanged="@(_ => this.PluginActivationStateChanged(context))" Disabled="@activationSwitchDisabled"/> <MudSwitch T="bool" Value="@isEnabled" ValueChanged="@(_ => this.PluginActivationStateChanged(context))" Disabled="@activationSwitchDisabled"/>
+30 -4
View File
@@ -57,7 +57,7 @@ public partial class Plugins : MSGComponentBase
if (pluginMeta.IsInternal) if (pluginMeta.IsInternal)
return GROUP_INTERNAL; return GROUP_INTERNAL;
return this.SettingsManager.IsPluginEnabled(pluginMeta) return this.IsPluginWorking(pluginMeta)
? GROUP_ENABLED ? GROUP_ENABLED
: GROUP_DISABLED; : GROUP_DISABLED;
} }
@@ -82,7 +82,7 @@ public partial class Plugins : MSGComponentBase
// activation is decided live, but it would leave the settings in a state which claims the // activation is decided live, but it would leave the settings in a state which claims the
// opposite of what the user sees: // opposite of what the user sees:
// //
if (PluginFactory.IsAssistantActivationEnforced(pluginMeta.Id)) if (PluginFactory.IsAssistantActivationEnforced(pluginMeta.Id) || this.IsDisabledByItsCategories(pluginMeta))
return; return;
if (this.SettingsManager.IsPluginEnabled(pluginMeta)) if (this.SettingsManager.IsPluginEnabled(pluginMeta))
@@ -172,10 +172,28 @@ public partial class Plugins : MSGComponentBase
return dialogResult is not null && !dialogResult.Canceled; return dialogResult is not null && !dialogResult.Canceled;
} }
/// <summary>
/// Whether your organization disabled this assistant plugin through its categories.
/// </summary>
private bool IsDisabledByItsCategories(IPluginMetadata pluginMeta) =>
pluginMeta.Type is PluginType.ASSISTANT &&
this.TryGetAssistantPlugin(pluginMeta.Id) is { } assistantPlugin &&
this.SettingsManager.IsDisabledByItsCategories(assistantPlugin);
/// <summary>
/// Whether a plugin works: it is enabled, and your organization did not disable it through its categories.
/// </summary>
/// <remarks>
/// The switch shows this instead of the stored activation. The activation stays stored, so the plugin
/// works again as soon as your organization enables one of its categories again.
/// </remarks>
private bool IsPluginWorking(IPluginMetadata pluginMeta) => this.SettingsManager.IsPluginEnabled(pluginMeta) && !this.IsDisabledByItsCategories(pluginMeta);
private bool IsActivationSwitchDisabled(IPluginMetadata pluginMeta, bool isEnabled) private bool IsActivationSwitchDisabled(IPluginMetadata pluginMeta, bool isEnabled)
{ {
// An assistant plugin your organization requires to stay enabled has no switch to offer: // An assistant plugin your organization requires to stay enabled, or disabled through its
if (PluginFactory.IsAssistantActivationEnforced(pluginMeta.Id)) // categories, has no switch to offer:
if (PluginFactory.IsAssistantActivationEnforced(pluginMeta.Id) || this.IsDisabledByItsCategories(pluginMeta))
return true; return true;
if (isEnabled || pluginMeta.Type is not PluginType.ASSISTANT) if (isEnabled || pluginMeta.Type is not PluginType.ASSISTANT)
@@ -194,6 +212,14 @@ public partial class Plugins : MSGComponentBase
if (PluginFactory.IsAssistantActivationEnforced(pluginMeta.Id)) if (PluginFactory.IsAssistantActivationEnforced(pluginMeta.Id))
return this.TA("Your organization requires this assistant to stay enabled"); return this.TA("Your organization requires this assistant to stay enabled");
if (this.IsDisabledByItsCategories(pluginMeta))
{
var categoryNames = AssistantCategoryKey.AllOf(pluginMeta).Select(category => category.Name).ToList();
return categoryNames.Count == 1
? string.Format(TA("Your organization disabled the category '{0}' of this assistant"), categoryNames[0])
: string.Format(TA("Your organization disabled all categories of this assistant: {0}"), string.Join(", ", categoryNames));
}
if (isEnabled) if (isEnabled)
return this.T("Disable plugin"); return this.T("Disable plugin");
@@ -8,6 +8,9 @@ This folder keeps the Lua manifest (`plugin.lua`) that defines a custom assistan
- [Directory Structure](#directory-structure) - [Directory Structure](#directory-structure)
- [Structure](#structure) - [Structure](#structure)
- [Minimal Requirements Assistant Table](#example-minimal-requirements-assistant-table) - [Minimal Requirements Assistant Table](#example-minimal-requirements-assistant-table)
- [Categories](#categories)
- [Custom categories](#custom-categories)
- [Categories your organization disabled](#categories-your-organization-disabled)
- [Continuing in a Chat](#continuing-in-a-chat) - [Continuing in a Chat](#continuing-in-a-chat)
- [Supported types (matching the Blazor UI components):](#supported-types-matching-the-blazor-ui-components) - [Supported types (matching the Blazor UI components):](#supported-types-matching-the-blazor-ui-components)
- [Component References](#component-references) - [Component References](#component-references)
@@ -112,6 +115,64 @@ ASSISTANT = {
} }
``` ```
## Categories
`CATEGORIES` decides where the assistants page shows your assistant: under the heading of each category it names, next to the built-in assistants of the same category. An assistant with `CATEGORIES = { "BUSINESS", "SCIENCE" }` appears under "Business" and under "Science", but only once under each heading. Name at least one category, and name only categories which fit your assistant: users and organizations decide by the categories what they see.
| Key | Heading on the assistants page |
|---|---|
| `COMMON` | General |
| `BUSINESS` | Business |
| `EDUCATION` | Learning & Reflecting |
| `SOFTWARE_DEVELOPMENT` | Software Development |
| `ART` | Art |
| `CONTENT_CREATION` | Content Creation |
| `ENTERTAINMENT` | Entertainment |
| `FICTION` | Fiction |
| `FITNESS` | Fitness |
| `FOOD` | Food |
| `GAMING` | Gaming |
| `HEALTH` | Health |
| `INDUSTRY` | Industry |
| `MUSIC` | Music |
| `NEWS` | News |
| `PARTY` | Party |
| `POLITICAL` | Political |
| `SCIENCE` | Science |
| `SHOPPING` | Shopping |
| `SOCIAL` | Social |
| `SPORTS` | Sports |
| `TECHNOLOGY` | Technology |
| `TRAVEL` | Travel |
| `UTILITY` | Utility |
| `WEATHER` | Weather |
| `WRITING` | Writing |
| `AI_STUDIO_DEVELOPMENT` | AI Studio Development |
| `CUSTOM` | Your own categories, see below |
- AI Studio shows the headings in the language of the user. The page starts with "General", "Business", "Learning & Reflecting", and "Software Development", continues with the other categories in alphabetical order, then with custom categories, and ends with "AI Studio Development".
- `CORE` belongs to configuration and language plugins. An assistant which names it appears under "General", just like one with `COMMON`.
- Write the keys exactly as listed. AI Studio skips an unknown key, and a plugin without any known key does not load.
- Users can collapse a category or hide it on the assistants page. They also decide whether the "Send to ..." menu keeps offering the assistants of such a category.
- Requires AI Studio v26.11.2 or newer. Older versions do not know `COMMON`, `AI_STUDIO_DEVELOPMENT`, and `CUSTOM`, skip them, and refuse a plugin which names no other key. To reach older versions as well, add a key they know, e.g., `CATEGORIES = { "COMMON", "CORE" }`: both stand for "General", so the assistant appears there once.
### Custom categories
When no category fits, name your own: add `CUSTOM` to `CATEGORIES` and the names to `CUSTOM_CATEGORIES`.
```lua
CATEGORIES = { "SCIENCE", "CUSTOM" }
CUSTOM_CATEGORIES = { "Space Travel" }
```
- AI Studio shows the names as you write them, in every language, so write them in the language of your users.
- Names which differ only in case share one heading, also when they come from different plugins.
- `CUSTOM` needs `CUSTOM_CATEGORIES` with at least one name, and `CUSTOM_CATEGORIES` needs `CUSTOM`. A name must not be empty. Otherwise, AI Studio does not load the plugin.
### Categories your organization disabled
Organizations can disable categories on their devices, e.g., `ENTERTAINMENT`, through the settings `DataApp.DisabledAssistantCategories` and `DataApp.DisabledCustomAssistantCategories` of a configuration plugin. An assistant of a disabled category disappears: from the assistants page, from links, and from the Assistant Builder. Users cannot switch it on.
- An assistant with several categories stays available while one of them is not disabled.
- Assistant plugins the organization deployed itself are never disabled by their categories: a plugin stored below the directory of a configuration plugin, or one which declares `DEPLOYED_USING_CONFIG_SERVER = true` and whose code the organization approved.
## Continuing in a Chat ## Continuing in a Chat
Users can continue the result of a form assistant in a chat: "Send to ..." → "New Chat" opens a chat with the conversation of the assistant. Which system prompt that chat gets is your decision, made in the optional field `ChatSystemPrompt`: Users can continue the result of a form assistant in a chat: "Send to ..." → "New Chat" opens a chat with the conversation of the assistant. Which system prompt that chat gets is your decision, made in the optional field `ChatSystemPrompt`:
@@ -7,7 +7,8 @@ TYPE = "ASSISTANT"
AUTHORS = {"MindWork AI"} AUTHORS = {"MindWork AI"}
SUPPORT_CONTACT = "mailto:info@mindwork.ai" SUPPORT_CONTACT = "mailto:info@mindwork.ai"
SOURCE_URL = "https://github.com/MindWorkAI/AI-Studio/tree/main/app/MindWork%20AI%20Studio/Plugins/assistants/examples/translation" SOURCE_URL = "https://github.com/MindWorkAI/AI-Studio/tree/main/app/MindWork%20AI%20Studio/Plugins/assistants/examples/translation"
CATEGORIES = {"CORE"} -- The assistants page shows the example under "General", next to the built-in Translation assistant:
CATEGORIES = {"COMMON"}
TARGET_GROUPS = {"EVERYONE"} TARGET_GROUPS = {"EVERYONE"}
IS_MAINTAINED = true IS_MAINTAINED = true
DEPRECATION_MESSAGE = "" DEPRECATION_MESSAGE = ""
@@ -37,8 +37,14 @@ SUPPORT_CONTACT = "<IT Department of Company Name>"
-- The source URL for the plugin: -- The source URL for the plugin:
SOURCE_URL = "<Any internal Git repository>" SOURCE_URL = "<Any internal Git repository>"
-- The categories for the plugin: -- The categories for the plugin. The assistants page shows the assistant under each of them,
CATEGORIES = { "CORE" } -- e.g., COMMON for "General" or BUSINESS for "Business". See "Categories" in README.md for all keys.
-- Requires AI Studio v26.11.2 or newer; older versions do not know COMMON:
CATEGORIES = { "COMMON" }
-- Your own categories, when none of AI Studio fits. They need CUSTOM in CATEGORIES:
-- CATEGORIES = { "CUSTOM" }
-- CUSTOM_CATEGORIES = { "<Name of your category>" }
-- The target groups for the plugin: -- The target groups for the plugin:
TARGET_GROUPS = { "EVERYONE" } TARGET_GROUPS = { "EVERYONE" }
@@ -929,6 +929,51 @@ CONFIG["SETTINGS"] = {}
-- assistant that is supposed to stay hidden, otherwise those become visible too. -- assistant that is supposed to stay hidden, otherwise those become visible too.
-- CONFIG["SETTINGS"]["DataApp.HiddenAssistants"] = { "ERI_ASSISTANT", "I18N_ASSISTANT" } -- CONFIG["SETTINGS"]["DataApp.HiddenAssistants"] = { "ERI_ASSISTANT", "I18N_ASSISTANT" }
-- Configure which categories of assistants are disabled. Requires AI Studio v26.11.2 or newer.
-- Unlike DataApp.HiddenAssistants above, this also covers assistant plugins, e.g., plugins users
-- imported from the internet. An assistant of a disabled category disappears everywhere: from the
-- assistants page, from the "Send to" menu, from links, from direct chat launchers, and from the
-- category selection of the Assistant Builder. Users cannot show it again.
--
-- An assistant plugin with several categories stays available while one of its categories is not
-- disabled. Assistant plugins your organization deployed itself are never disabled by their
-- categories: a plugin stored below the directory of a configuration plugin, or a plugin which
-- declares DEPLOYED_USING_CONFIG_SERVER = true and whose code you approved in
-- CONFIG["SETTINGS"]["DataAssistantPluginAudit.EnterpriseApprovedPlugins"].
--
-- Allowed values are:
-- COMMON, BUSINESS, EDUCATION, SOFTWARE_DEVELOPMENT, AI_STUDIO_DEVELOPMENT, INDUSTRY,
-- UTILITY, GAMING, ENTERTAINMENT, SOCIAL, SHOPPING, TRAVEL, HEALTH, FITNESS, FOOD, PARTY,
-- SPORTS, NEWS, WEATHER, MUSIC, POLITICAL, SCIENCE, TECHNOLOGY, ART, FICTION, WRITING,
-- CONTENT_CREATION, CUSTOM
--
-- COMMON is the category "General"; disabling it disables CORE as well, because both share that
-- heading. CUSTOM disables every custom category of a plugin. To disable single custom
-- categories, list their names in DataApp.DisabledCustomAssistantCategories instead; the names
-- are compared without regard to case.
--
-- Replaces, does not merge: a configuration with a higher priority replaces these lists
-- completely, just like DataApp.HiddenAssistants.
-- CONFIG["SETTINGS"]["DataApp.DisabledAssistantCategories"] = { "ENTERTAINMENT", "GAMING" }
-- CONFIG["SETTINGS"]["DataApp.DisabledCustomAssistantCategories"] = { "Fun & Games" }
-- Users may collapse categories on the assistants page, and hide categories they do not need.
-- Both are their own choices, which your organization cannot preset. You can preset, though,
-- what happens to the assistants of such categories outside of the assistants page, e.g., in
-- the "Send to ..." menu. Requires AI Studio v26.11.2 or newer. Allowed values are:
-- KEEP_OFFERING: AI Studio keeps offering the assistants.
-- TREAT_AS_ABSENT: AI Studio treats the assistants as if they did not exist.
--
-- For collapsed categories; the default is KEEP_OFFERING:
-- CONFIG["SETTINGS"]["DataAssistantsPage.CollapsedCategoryAssistants"] = "TREAT_AS_ABSENT"
--
-- For hidden categories; the default is TREAT_AS_ABSENT:
-- CONFIG["SETTINGS"]["DataAssistantsPage.HiddenCategoryAssistants"] = "TREAT_AS_ABSENT"
--
-- Allow users to change these options even though your organization set them above:
-- CONFIG["SETTINGS"]["DataAssistantsPage.CollapsedCategoryAssistants.AllowUserOverride"] = true
-- CONFIG["SETTINGS"]["DataAssistantsPage.HiddenCategoryAssistants.AllowUserOverride"] = true
-- Configure organization defaults for the Visual Briefing Assistant. -- Configure organization defaults for the Visual Briefing Assistant.
-- The assistant turns documents, images, audio, and video into a self-contained interactive -- The assistant turns documents, images, audio, and video into a self-contained interactive
-- briefing. All settings below are defaults for new briefings; users can change them per briefing. -- briefing. All settings below are defaults for new briefings; users can change them per briefing.
@@ -3162,6 +3162,9 @@ UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1696631610"]
-- (Optional) Output language -- (Optional) Output language
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1821434787"] = "Ausgabesprache (optional)" UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1821434787"] = "Ausgabesprache (optional)"
-- Other
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1849229205"] = "Sonstiges"
-- The installed assistant could not be loaded. -- The installed assistant could not be loaded.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1889523922"] = "Der installierte Assistent konnte nicht geladen werden." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1889523922"] = "Der installierte Assistent konnte nicht geladen werden."
@@ -3333,9 +3336,18 @@ UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4004589285::I
-- Assistant updated. -- Assistant updated.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T40397082"] = "Assistent aktualisiert." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T40397082"] = "Assistent aktualisiert."
-- Let the model choose
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4061595525"] = "Das Modell entscheiden lassen"
-- Allow AI Studio profiles -- Allow AI Studio profiles
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4155351992"] = "AI-Studio-Profile zulassen" UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4155351992"] = "AI-Studio-Profile zulassen"
-- Your organization disabled this category. Please choose another one.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4162610995"] = "Ihre Organisation hat diese Kategorie deaktiviert. Bitte wählen Sie eine andere aus."
-- Your organization disabled this category. Please choose another one.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4162610995::INFORMAL"] = "Deine Organisation hat diese Kategorie deaktiviert. Bitte wähle eine andere aus."
-- Issue: {0} -- Issue: {0}
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4185028924"] = "Problem: {0}" UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4185028924"] = "Problem: {0}"
@@ -3426,6 +3438,9 @@ UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::
-- The model returned an empty JSON object. -- The model returned an empty JSON object.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2410202327"] = "Das Modell hat ein leeres JSON-Objekt zurückgegeben." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2410202327"] = "Das Modell hat ein leeres JSON-Objekt zurückgegeben."
-- The model's answer names a category AI Studio does not know, or a custom category without its name.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2704199301"] = "Die Antwort des Modells nennt eine Kategorie, die AI Studio nicht kennt, oder eine eigene Kategorie ohne Namen."
-- The model returned an unusable JSON response. -- The model returned an unusable JSON response.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2967613975"] = "Das Modell hat eine unbrauchbare JSON-Antwort zurückgegeben." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2967613975"] = "Das Modell hat eine unbrauchbare JSON-Antwort zurückgegeben."
@@ -8130,6 +8145,42 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTBLOCK::T3571008422::INFORMAL"] =
-- The result is ready. -- The result is ready.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTBLOCK::T661906146"] = "Das Ergebnis ist fertig." UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTBLOCK::T661906146"] = "Das Ergebnis ist fertig."
-- Expand this category
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T1750778093"] = "Diese Kategorie ausklappen"
-- The assistants page will no longer show this category, and AI Studio will treat its assistants as if they did not exist, e.g., they will not appear in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2720183235"] = "Die Seite „Assistenten“ zeigt diese Kategorie künftig nicht mehr an. Außerdem behandelt AI Studio die zugehörigen Assistenten so, als wären sie nicht vorhanden; sie erscheinen z. B. nicht im Menü „Senden an …“."
-- The assistants page will no longer show this category, and AI Studio will treat its assistants as if they did not exist, e.g., they will not appear in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2720183235::INFORMAL"] = "Die Seite „Assistenten“ zeigt diese Kategorie künftig nicht mehr an. Außerdem behandelt AI Studio die zugehörigen Assistenten so, als wären sie nicht vorhanden; sie erscheinen z. B. nicht im Menü „Senden an …“."
-- The assistants page will no longer show this category. AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2725056496"] = "Die Seite „Assistenten“ zeigt diese Kategorie künftig nicht mehr an. AI Studio bietet die zugehörigen Assistenten weiterhin an anderer Stelle an, z. B. im Menü „Senden an …“."
-- The assistants page will no longer show this category. AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2725056496::INFORMAL"] = "Die Seite „Assistenten“ zeigt diese Kategorie künftig nicht mehr an. AI Studio bietet die zugehörigen Assistenten weiterhin an anderer Stelle an, z. B. im Menü „Senden an …“."
-- You can show the category again at any time in the assistant settings, which the gear next to the heading of the page opens.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2970234687"] = "Sie können die Kategorie jederzeit in den Assistenten-Einstellungen wieder einblenden. Diese öffnen Sie über das Zahnradsymbol neben der Seitenüberschrift."
-- You can show the category again at any time in the assistant settings, which the gear next to the heading of the page opens.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2970234687::INFORMAL"] = "Du kannst die Kategorie jederzeit in den Assistenten-Einstellungen wieder einblenden. Diese öffnest du über das Zahnradsymbol neben der Seitenüberschrift."
-- Hide the category '{0}'?
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T3025364089"] = "Kategorie „{0}“ ausblenden?"
-- Hide this category
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T3438455681"] = "Diese Kategorie ausblenden"
-- If you only want a better overview, click the heading of the category instead: that collapses it.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T815674974"] = "Wenn Sie nur einen besseren Überblick möchten, klicken Sie stattdessen auf die Überschrift der Kategorie: Das klappt sie ein."
-- If you only want a better overview, click the heading of the category instead: that collapses it.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T815674974::INFORMAL"] = "Wenn du nur einen besseren Überblick möchtest, klicke stattdessen auf die Überschrift der Kategorie: Das klappt sie ein."
-- Collapse this category
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T941766518"] = "Diese Kategorie einklappen"
-- Show or hide the detailed security information. -- Show or hide the detailed security information.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTPLUGINSECURITYCARD::T1045105126"] = "Detaillierte Sicherheitsinformationen anzeigen oder ausblenden." UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTPLUGINSECURITYCARD::T1045105126"] = "Detaillierte Sicherheitsinformationen anzeigen oder ausblenden."
@@ -15501,6 +15552,48 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTBUILDER::T4
-- The language in which the assistants you build answer. -- The language in which the assistants you build answer.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTBUILDER::T42126731::INFORMAL"] = "Die Sprache, in der die von dir erstellten Assistenten antworten." UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTBUILDER::T42126731::INFORMAL"] = "Die Sprache, in der die von dir erstellten Assistenten antworten."
-- There are no categories to show or hide right now.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2279201345"] = "Derzeit gibt es keine Kategorien zum Ein- oder Ausblenden."
-- Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2321353169"] = "Das Ausblenden einer Kategorie bedeutet, dass Sie die Assistenten dieser Kategorie nicht benötigen. Wählen Sie aus, ob AI Studio sie weiterhin an anderer Stelle anbietet, z. B. im Menü „Senden an …“."
-- Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2321353169::INFORMAL"] = "Das Ausblenden einer Kategorie bedeutet, dass du die Assistenten dieser Kategorie nicht benötigst. Wähle aus, ob AI Studio sie weiterhin an anderer Stelle anbietet, z. B. im Menü „Senden an …“."
-- What should happen to assistants of categories you hid?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2813197614"] = "Was soll mit den Assistenten aus Kategorien geschehen, die Sie ausgeblendet haben?"
-- What should happen to assistants of categories you hid?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2813197614::INFORMAL"] = "Was soll mit den Assistenten aus Kategorien geschehen, die du ausgeblendet hast?"
-- What should happen to assistants of categories you collapsed?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2994249650"] = "Was soll mit den Assistenten aus Kategorien geschehen, die Sie eingeklappt haben?"
-- What should happen to assistants of categories you collapsed?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2994249650::INFORMAL"] = "Was soll mit den Assistenten aus Kategorien geschehen, die du eingeklappt hast?"
-- The category is hidden
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T3228924424"] = "Die Kategorie ist ausgeblendet."
-- Close
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T3448155331"] = "Schließen"
-- The category is shown
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T3595686409"] = "Die Kategorie wird angezeigt."
-- Categories
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T4034259341"] = "Kategorien"
-- Assistant Settings
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T4124037832"] = "Assistenten-Einstellungen"
-- Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T786145170"] = "Durch das Einklappen einer Kategorie bleibt die Assistentenseite übersichtlich. Legen Sie fest, ob AI Studio ihre Assistenten weiterhin an anderer Stelle anbietet, z. B. im Menü „Senden an …“."
-- Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T786145170::INFORMAL"] = "Durch das Einklappen einer Kategorie bleibt die Assistentenseite übersichtlich. Leg fest, ob AI Studio ihre Assistenten weiterhin an anderer Stelle anbietet, z. B. im Menü „Senden an …“."
-- Default minimum pause between files -- Default minimum pause between files
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGBATCHPROCESSING::T1008440099"] = "Standardmäßige Mindestpause zwischen Dateien" UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGBATCHPROCESSING::T1008440099"] = "Standardmäßige Mindestpause zwischen Dateien"
@@ -17679,18 +17772,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1271524187"] = "Analysieren Sie e
-- Analyze a document regarding defined rules and extract key information. -- Analyze a document regarding defined rules and extract key information.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1271524187::INFORMAL"] = "Analysiere ein Dokument hinsichtlich festgelegter Regeln und extrahiere wichtige Informationen." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1271524187::INFORMAL"] = "Analysiere ein Dokument hinsichtlich festgelegter Regeln und extrahiere wichtige Informationen."
-- Business
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T131837803"] = "Business"
-- Legal Check -- Legal Check
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1348190638"] = "Rechtliche Prüfung" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1348190638"] = "Rechtliche Prüfung"
-- Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information. -- Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1356376259"] = "Stärken, Schwächen, Chancen, Risiken und praktische nächste Schritte aus den bereitgestellten Informationen identifizieren." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1356376259"] = "Stärken, Schwächen, Chancen, Risiken und praktische nächste Schritte aus den bereitgestellten Informationen identifizieren."
-- General
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1432485131"] = "Allgemein"
-- Grammar & Spelling -- Grammar & Spelling
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1514925962"] = "Grammatik & Rechtschreibung" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1514925962"] = "Grammatik & Rechtschreibung"
@@ -17775,18 +17862,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2770149758"] = "Dokumentenanalyse
-- Visual Briefing Assistant -- Visual Briefing Assistant
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T277804139"] = "Assistent für visuelle Briefings" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T277804139"] = "Assistent für visuelle Briefings"
-- AI Studio Development
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2830810750"] = "AI-Studio-Entwicklung"
-- Generate a job posting for a given job description. -- Generate a job posting for a given job description.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254"] = "Erstellen Sie eine Stellenanzeige anhand einer vorgegebenen Stellenbeschreibung." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254"] = "Erstellen Sie eine Stellenanzeige anhand einer vorgegebenen Stellenbeschreibung."
-- Generate a job posting for a given job description. -- Generate a job posting for a given job description.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254::INFORMAL"] = "Erstelle eine Stellenanzeige anhand einer vorgegebenen Stellenbeschreibung." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254::INFORMAL"] = "Erstelle eine Stellenanzeige anhand einer vorgegebenen Stellenbeschreibung."
-- Installed Assistants
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T295232966"] = "Installierte Assistenten"
-- My Tasks -- My Tasks
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3011450657"] = "Meine Aufgaben" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3011450657"] = "Meine Aufgaben"
@@ -17802,15 +17883,18 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T311775455::INFORMAL"] = "Die auto
-- Translate AI Studio text content into other languages -- Translate AI Studio text content into other languages
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3181803840"] = "Textinhalte von AI Studio in andere Sprachen übersetzen." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3181803840"] = "Textinhalte von AI Studio in andere Sprachen übersetzen."
-- Software Engineering
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3260960011"] = "Software-Entwicklung"
-- Assistant Builder -- Assistant Builder
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3303547904"] = "Assistenten-Builder" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3303547904"] = "Assistenten-Builder"
-- Rewrite & Improve -- Rewrite & Improve
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3309133329"] = "Umformulieren & Verbessern" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3309133329"] = "Umformulieren & Verbessern"
-- You hid all categories. You can show them again in the assistant settings, which the gear next to the heading opens.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3608690820"] = "Sie haben alle Kategorien ausgeblendet. Sie können sie in den Assistenten-Einstellungen wieder einblenden, die das Zahnradsymbol neben der Überschrift öffnet."
-- You hid all categories. You can show them again in the assistant settings, which the gear next to the heading opens.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3608690820::INFORMAL"] = "Du hast alle Kategorien ausgeblendet. Du kannst sie in den Assistenten-Einstellungen wieder einblenden, die das Zahnradsymbol neben der Überschrift öffnet."
-- Icon Finder -- Icon Finder
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3693102312"] = "Icon Finder" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3693102312"] = "Icon Finder"
@@ -17820,6 +17904,9 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3733831260"] = "Erstellen Sie Ihr
-- Generate your own assistants. -- Generate your own assistants.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3733831260::INFORMAL"] = "Erstelle deine eigenen Assistenten." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3733831260::INFORMAL"] = "Erstelle deine eigenen Assistenten."
-- Open the assistant settings
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3745279719"] = "Assistenten-Einstellungen öffnen"
-- Generate an ERI server to integrate business systems. -- Generate an ERI server to integrate business systems.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3756213118"] = "Erstellen Sie einen ERI-Server zur Integration von Geschäftssystemen." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3756213118"] = "Erstellen Sie einen ERI-Server zur Integration von Geschäftssystemen."
@@ -17853,6 +17940,9 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3970214537"] = "Stellen Sie Frage
-- Ask a question about a legal document. -- Ask a question about a legal document.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3970214537::INFORMAL"] = "Stelle Fragen zu einem juristischen Dokument." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3970214537::INFORMAL"] = "Stelle Fragen zu einem juristischen Dokument."
-- Assistant Settings
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T4124037832"] = "Assistenten-Einstellungen"
-- Log Viewer -- Log Viewer
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T4130241777"] = "Protokollanzeige" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T4130241777"] = "Protokollanzeige"
@@ -17889,9 +17979,6 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T892147062"] = "AI-Studio-Protokol
-- Localization -- Localization
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T897888480"] = "Lokalisierung" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T897888480"] = "Lokalisierung"
-- Learning & Reflecting
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T912918956"] = "Lernen & Reflektieren"
-- Turn texts and documents into slides, also as a PowerPoint file in the design of your template. -- Turn texts and documents into slides, also as a PowerPoint file in the design of your template.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T943132958"] = "Verwandeln Sie Texte und Dokumente in Folien, auch als PowerPoint-Datei im Design Ihrer Vorlage." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T943132958"] = "Verwandeln Sie Texte und Dokumente in Folien, auch als PowerPoint-Datei im Design Ihrer Vorlage."
@@ -19038,6 +19125,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2430906247::INFORMAL"] = "{0} Möcht
-- The tile '{0}' has been updated. -- The tile '{0}' has been updated.
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2443911707"] = "Die Kachel „{0}“ wurde aktualisiert." UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2443911707"] = "Die Kachel „{0}“ wurde aktualisiert."
-- Your organization disabled all categories of this assistant: {0}
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2444737585"] = "Ihre Organisation hat alle Kategorien dieses Assistenten deaktiviert: {0}."
-- Your organization disabled all categories of this assistant: {0}
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2444737585::INFORMAL"] = "Deine Organisation hat alle Kategorien dieses Assistenten deaktiviert: {0}."
-- Share dialog not available -- Share dialog not available
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2445896850"] = "Dialog zum Teilen nicht verfügbar" UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2445896850"] = "Dialog zum Teilen nicht verfügbar"
@@ -19131,6 +19224,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T659549952"] = "Das Plugin-Archiv wur
-- An error occurred while exporting the plugin. -- An error occurred while exporting the plugin.
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T759681732"] = "Beim Exportieren des Plugins ist ein Fehler aufgetreten." UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T759681732"] = "Beim Exportieren des Plugins ist ein Fehler aufgetreten."
-- Your organization disabled the category '{0}' of this assistant
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T798759833"] = "Ihre Organisation hat die Kategorie „{0}“ dieses Assistenten deaktiviert."
-- Your organization disabled the category '{0}' of this assistant
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T798759833::INFORMAL"] = "Deine Organisation hat die Kategorie „{0}“ dieses Assistenten deaktiviert."
-- The plugin could not be imported: {0} -- The plugin could not be imported: {0}
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T837269472"] = "Das Plugin konnte nicht importiert werden: {0}" UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T837269472"] = "Das Plugin konnte nicht importiert werden: {0}"
@@ -19641,6 +19740,9 @@ UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1245257804
-- Settings -- Settings
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1258653480"] = "Einstellungen" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1258653480"] = "Einstellungen"
-- Keep offering me the assistants, e.g., in the "Send to ..." menu
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1289869768"] = "Biete mir die Assistenten weiterhin an, z. B. im Menü „Senden an …“"
-- No key is sending the input -- No key is sending the input
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1311973034"] = "Keine Taste sendet die Eingabe; Sie müssen auf die Schaltfläche klicken, um zu senden" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1311973034"] = "Keine Taste sendet die Eingabe; Sie müssen auf die Schaltfläche klicken, um zu senden"
@@ -19671,6 +19773,9 @@ UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1874928511
-- Always expand navigation -- Always expand navigation
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1991359958"] = "Navigationsleiste immer ausklappen" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1991359958"] = "Navigationsleiste immer ausklappen"
-- Treat the assistants as if they did not exist, e.g., not in the "Send to ..." menu
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T2049952564"] = "Behandle die Assistenten so, als wären sie nicht vorhanden, z. B. nicht im Menü „Senden an …“"
-- Show also experimental features: these are experimental; expect bugs, missing features, many changes -- Show also experimental features: these are experimental; expect bugs, missing features, many changes
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T2091731959"] = "Auch experimentelle Funktionen anzeigen: Diese Funktionen sind experimentell; Fehler, fehlende Funktionen und viele Änderungen sind zu erwarten" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T2091731959"] = "Auch experimentelle Funktionen anzeigen: Diese Funktionen sind experimentell; Fehler, fehlende Funktionen und viele Änderungen sind zu erwarten"
@@ -20058,39 +20163,6 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::AIJOBS::AIJOBSERVICE::T373499115"] = "Ihre Dat
-- Your data sources could not be used. This answer was created without them. -- Your data sources could not be used. This answer was created without them.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::AIJOBS::AIJOBSERVICE::T373499115::INFORMAL"] = "Deine Datenquellen konnten nicht verwendet werden. Diese Antwort wurde ohne sie erstellt." UI_TEXT_CONTENT["AISTUDIO::TOOLS::AIJOBS::AIJOBSERVICE::T373499115::INFORMAL"] = "Deine Datenquellen konnten nicht verwendet werden. Diese Antwort wurde ohne sie erstellt."
-- Software Development
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T1025369409"] = "Softwareentwicklung"
-- Business
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T131837803"] = "Business"
-- General
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T1432485131"] = "Allgemein"
-- Other
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T1849229205"] = "Sonstiges"
-- Please select the assistant category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2552974770"] = "Bitte wählen Sie die Assistentenkategorie aus"
-- Please select the assistant category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2552974770::INFORMAL"] = "Bitte wähle die Assistentenkategorie aus"
-- AI Studio Development
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2830810750"] = "AI-Studio-Entwicklung"
-- Productivity
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2887181245"] = "Produktivität"
-- Scientific
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T3802462536"] = "Wissenschaftlich"
-- Select the assistant category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T4193824894"] = "Assistentenkategorie auswählen"
-- Learning & Reflecting
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T912918956"] = "Lernen & Reflektieren"
-- This assistant is already running. AI Studio opens the running session instead. -- This assistant is already running. AI Studio opens the running session instead.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTLAUNCH::ASSISTANTLAUNCHSERVICE::T2575715765"] = "Dieser Assistent läuft bereits. AI Studio öffnet stattdessen die laufende Sitzung." UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTLAUNCH::ASSISTANTLAUNCHSERVICE::T2575715765"] = "Dieser Assistent läuft bereits. AI Studio öffnet stattdessen die laufende Sitzung."
@@ -21567,6 +21639,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::CONFIGURATIONSNIPPETPARSER::T949
-- The table AUTHORS does not exist or is using an invalid syntax. -- The table AUTHORS does not exist or is using an invalid syntax.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1068328139"] = "Die Tabelle AUTHORS existiert nicht oder verwendet eine ungültige Syntax." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1068328139"] = "Die Tabelle AUTHORS existiert nicht oder verwendet eine ungültige Syntax."
-- The table CUSTOM_CATEGORIES is using an invalid syntax. It must be a table of names.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T131394700"] = "Die Tabelle CUSTOM_CATEGORIES verwendet eine ungültige Syntax. Sie muss eine Tabelle mit Namen sein."
-- The field NAME does not exist or is not a valid string. -- The field NAME does not exist or is not a valid string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1340447036"] = "Das Feld NAME existiert nicht oder ist keine gültige Zeichenkette." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1340447036"] = "Das Feld NAME existiert nicht oder ist keine gültige Zeichenkette."
@@ -21597,6 +21672,12 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2262604281"] = "Das
-- The field DESCRIPTION does not exist or is not a valid string. -- The field DESCRIPTION does not exist or is not a valid string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T229488255"] = "Das Feld DESCRIPTION existiert nicht oder ist keine gültige Zeichenkette." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T229488255"] = "Das Feld DESCRIPTION existiert nicht oder ist keine gültige Zeichenkette."
-- The table CUSTOM_CATEGORIES requires the category CUSTOM in the table CATEGORIES.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2426905758"] = "Die Tabelle CUSTOM_CATEGORIES benötigt die Kategorie CUSTOM in der Tabelle CATEGORIES."
-- The category CUSTOM requires the table CUSTOM_CATEGORIES with at least one name.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2515975321"] = "Die Kategorie CUSTOM erfordert die Tabelle CUSTOM_CATEGORIES mit mindestens einem Namen."
-- The field VERSION is not a valid version number. The version number must be formatted as string in the major.minor.patch format (X.X.X). -- The field VERSION is not a valid version number. The version number must be formatted as string in the major.minor.patch format (X.X.X).
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2538827536"] = "Das Feld VERSION ist keine gültige Versionsnummer. Die Versionsnummer muss als Zeichenkette im Format Hauptversion.Nebenversion.Patch (X.X.X) angegeben werden." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2538827536"] = "Das Feld VERSION ist keine gültige Versionsnummer. Die Versionsnummer muss als Zeichenkette im Format Hauptversion.Nebenversion.Patch (X.X.X) angegeben werden."
@@ -21618,6 +21699,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T3667396132"] = "Die
-- The field NAME is empty. The name must be a non-empty string. -- The field NAME is empty. The name must be a non-empty string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T3763759727"] = "Das Feld NAME ist leer. Der Name darf nicht leer sein." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T3763759727"] = "Das Feld NAME ist leer. Der Name darf nicht leer sein."
-- The table CUSTOM_CATEGORIES contains an empty name or a value which is not a text.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T4089014619"] = "Die Tabelle CUSTOM_CATEGORIES enthält einen leeren Namen oder einen Wert, der kein Text ist."
-- The field SUPPORT_CONTACT does not exist or is not a valid string. -- The field SUPPORT_CONTACT does not exist or is not a valid string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T4189964941"] = "Das Feld SUPPORT_CONTACT existiert nicht oder ist keine gültige Zeichenkette." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T4189964941"] = "Das Feld SUPPORT_CONTACT existiert nicht oder ist keine gültige Zeichenkette."
@@ -21648,6 +21732,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T10253
-- Business -- Business
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T131837803"] = "Business" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T131837803"] = "Business"
-- General
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1432485131"] = "Allgemein"
-- Music -- Music
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1481252212"] = "Musik" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1481252212"] = "Musik"
@@ -21657,6 +21744,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T15858
-- Weather -- Weather
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1726658099"] = "Wetter" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1726658099"] = "Wetter"
-- Custom category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1885949922"] = "Eigene Kategorie"
-- Industry -- Industry
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T208409567"] = "Industrie" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T208409567"] = "Industrie"
@@ -21678,6 +21768,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T25870
-- Shopping -- Shopping
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2704337693"] = "Einkaufen" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2704337693"] = "Einkaufen"
-- AI Studio Development
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2830810750"] = "AI-Studio-Entwicklung"
-- Fitness -- Fitness
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2892517655"] = "Fitness" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2892517655"] = "Fitness"
@@ -21693,9 +21786,6 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T34217
-- Entertainment -- Entertainment
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T3562575449"] = "Unterhaltung" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T3562575449"] = "Unterhaltung"
-- Education
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T379048501"] = "Bildung"
-- AI Studio Core -- AI Studio Core
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T4005865962"] = "AI-Studio-Kern" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T4005865962"] = "AI-Studio-Kern"
@@ -21720,6 +21810,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T85056
-- Science -- Science
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T904504157"] = "Wissenschaft" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T904504157"] = "Wissenschaft"
-- Learning & Reflecting
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T912918956"] = "Lernen & Reflektieren"
-- Content Creation -- Content Creation
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T914642375"] = "Inhalte erstellen" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T914642375"] = "Inhalte erstellen"
@@ -23124,9 +23217,18 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1
-- The revision model did not return a usable answer. -- The revision model did not return a usable answer.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1411545143"] = "Das Überarbeitungsmodell hat keine brauchbare Antwort zurückgegeben." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1411545143"] = "Das Überarbeitungsmodell hat keine brauchbare Antwort zurückgegeben."
-- Your organization disabled these categories of your assistant: {0}. Please choose other categories.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1647997085"] = "Ihre Organisation hat diese Kategorien Ihres Assistenten deaktiviert: {0}. Bitte wählen Sie andere Kategorien aus."
-- Your organization disabled these categories of your assistant: {0}. Please choose other categories.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1647997085::INFORMAL"] = "Deine Organisation hat diese Kategorien deines Assistenten deaktiviert: {0}. Bitte wähle andere Kategorien aus."
-- Description -- Description
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1725856265"] = "Beschreibung" UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1725856265"] = "Beschreibung"
-- The categories of the revised assistant do not match the revised plugin.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1778095727"] = "Die Kategorien des überarbeiteten Assistenten stimmen nicht mit denen des überarbeiteten Plugins überein."
-- Please select a provider. -- Please select a provider.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1809312323"] = "Bitte wählen Sie einen Anbieter aus." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1809312323"] = "Bitte wählen Sie einen Anbieter aus."
@@ -23178,6 +23280,12 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3
-- Assistant Plugin Revision -- Assistant Plugin Revision
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3245954919"] = "Revision des Assistenten-Plugins" UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3245954919"] = "Revision des Assistenten-Plugins"
-- Your organization disabled the category '{0}'. Please choose another category for your assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3254953496"] = "Ihre Organisation hat die Kategorie „{0}“ deaktiviert. Bitte wählen Sie eine andere Kategorie für Ihren Assistenten aus."
-- Your organization disabled the category '{0}'. Please choose another category for your assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3254953496::INFORMAL"] = "Deine Organisation hat die Kategorie „{0}“ deaktiviert. Bitte wähle eine andere Kategorie für deinen Assistenten aus."
-- The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now. -- The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3278037634"] = "Der Assistenten-Builder konnte das Plugin-Manifest nicht lesen und kann Ihren Assistenten daher derzeit nicht sicher erstellen." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3278037634"] = "Der Assistenten-Builder konnte das Plugin-Manifest nicht lesen und kann Ihren Assistenten daher derzeit nicht sicher erstellen."
@@ -23244,6 +23352,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4
-- The draft model did not return a usable answer. -- The draft model did not return a usable answer.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4183375977"] = "Das Entwurfsmodell hat keine brauchbare Antwort zurückgegeben." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4183375977"] = "Das Entwurfsmodell hat keine brauchbare Antwort zurückgegeben."
-- The categories of the generated assistant do not match the generated plugin.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4224887725"] = "Die Kategorien des generierten Assistenten stimmen nicht mit denen des generierten Plugins überein."
-- The Assistant Builder response schema could not be loaded. -- The Assistant Builder response schema could not be loaded.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4235833611"] = "Das Antwortschema des Assistenten-Builders konnte nicht geladen werden." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4235833611"] = "Das Antwortschema des Assistenten-Builders konnte nicht geladen werden."
@@ -23388,6 +23499,12 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T2466659933"] = "
-- The assistant chat launcher references data source '{0}', but that data source does not exist. -- The assistant chat launcher references data source '{0}', but that data source does not exist.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T289191545"] = "Der Chat-Schnellstart-Assistent verweist auf die Datenquelle „{0}“, aber diese Datenquelle existiert nicht." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T289191545"] = "Der Chat-Schnellstart-Assistent verweist auf die Datenquelle „{0}“, aber diese Datenquelle existiert nicht."
-- Your organization disabled the categories of this assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T2988562427"] = "Ihre Organisation hat die Kategorien dieses Assistenten deaktiviert."
-- Your organization disabled the categories of this assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T2988562427::INFORMAL"] = "Deine Organisation hat die Kategorien dieses Assistenten deaktiviert."
-- The chat template '{0}' selects data sources, but no provider is available for chats. Please choose a default provider for chats first. No chat was created. -- The chat template '{0}' selects data sources, but no provider is available for chats. Please choose a default provider for chats first. No chat was created.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T3082876173"] = "Die Chat-Vorlage „{0}“ wählt Datenquellen aus, aber für Chats ist kein Anbieter verfügbar. Bitte wählen Sie zuerst einen Standardanbieter für Chats aus. Es wurde kein Chat erstellt." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T3082876173"] = "Die Chat-Vorlage „{0}“ wählt Datenquellen aus, aber für Chats ist kein Anbieter verfügbar. Bitte wählen Sie zuerst einen Standardanbieter für Chats aus. Es wurde kein Chat erstellt."
@@ -3162,6 +3162,9 @@ UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1696631610"]
-- (Optional) Output language -- (Optional) Output language
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1821434787"] = "(Optional) Output language" UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1821434787"] = "(Optional) Output language"
-- Other
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1849229205"] = "Other"
-- The installed assistant could not be loaded. -- The installed assistant could not be loaded.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1889523922"] = "The installed assistant could not be loaded." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T1889523922"] = "The installed assistant could not be loaded."
@@ -3333,9 +3336,18 @@ UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4004589285::I
-- Assistant updated. -- Assistant updated.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T40397082"] = "Assistant updated." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T40397082"] = "Assistant updated."
-- Let the model choose
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4061595525"] = "Let the model choose"
-- Allow AI Studio profiles -- Allow AI Studio profiles
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4155351992"] = "Allow AI Studio profiles" UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4155351992"] = "Allow AI Studio profiles"
-- Your organization disabled this category. Please choose another one.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4162610995"] = "Your organization disabled this category. Please choose another one."
-- Your organization disabled this category. Please choose another one.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4162610995::INFORMAL"] = "Your organization disabled this category. Please choose another one."
-- Issue: {0} -- Issue: {0}
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4185028924"] = "Issue: {0}" UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::ASSISTANTBUILDER::T4185028924"] = "Issue: {0}"
@@ -3426,6 +3438,9 @@ UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::
-- The model returned an empty JSON object. -- The model returned an empty JSON object.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2410202327"] = "The model returned an empty JSON object." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2410202327"] = "The model returned an empty JSON object."
-- The model's answer names a category AI Studio does not know, or a custom category without its name.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2704199301"] = "The model's answer names a category AI Studio does not know, or a custom category without its name."
-- The model returned an unusable JSON response. -- The model returned an unusable JSON response.
UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2967613975"] = "The model returned an unusable JSON response." UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::BUILDER::LUARESPONSEPARSEERROREXTENSION::T2967613975"] = "The model returned an unusable JSON response."
@@ -8130,6 +8145,42 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTBLOCK::T3571008422::INFORMAL"] =
-- The result is ready. -- The result is ready.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTBLOCK::T661906146"] = "The result is ready." UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTBLOCK::T661906146"] = "The result is ready."
-- Expand this category
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T1750778093"] = "Expand this category"
-- The assistants page will no longer show this category, and AI Studio will treat its assistants as if they did not exist, e.g., they will not appear in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2720183235"] = "The assistants page will no longer show this category, and AI Studio will treat its assistants as if they did not exist, e.g., they will not appear in the \"Send to ...\" menu."
-- The assistants page will no longer show this category, and AI Studio will treat its assistants as if they did not exist, e.g., they will not appear in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2720183235::INFORMAL"] = "The assistants page will no longer show this category, and AI Studio will treat its assistants as if they did not exist, e.g., they will not appear in the \"Send to ...\" menu."
-- The assistants page will no longer show this category. AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2725056496"] = "The assistants page will no longer show this category. AI Studio keeps offering its assistants elsewhere, e.g., in the \"Send to ...\" menu."
-- The assistants page will no longer show this category. AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2725056496::INFORMAL"] = "The assistants page will no longer show this category. AI Studio keeps offering its assistants elsewhere, e.g., in the \"Send to ...\" menu."
-- You can show the category again at any time in the assistant settings, which the gear next to the heading of the page opens.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2970234687"] = "You can show the category again at any time in the assistant settings, which the gear next to the heading of the page opens."
-- You can show the category again at any time in the assistant settings, which the gear next to the heading of the page opens.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T2970234687::INFORMAL"] = "You can show the category again at any time in the assistant settings, which the gear next to the heading of the page opens."
-- Hide the category '{0}'?
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T3025364089"] = "Hide the category '{0}'?"
-- Hide this category
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T3438455681"] = "Hide this category"
-- If you only want a better overview, click the heading of the category instead: that collapses it.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T815674974"] = "If you only want a better overview, click the heading of the category instead: that collapses it."
-- If you only want a better overview, click the heading of the category instead: that collapses it.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T815674974::INFORMAL"] = "If you only want a better overview, click the heading of the category instead: that collapses it."
-- Collapse this category
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTCATEGORYHEADER::T941766518"] = "Collapse this category"
-- Show or hide the detailed security information. -- Show or hide the detailed security information.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTPLUGINSECURITYCARD::T1045105126"] = "Show or hide the detailed security information." UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ASSISTANTPLUGINSECURITYCARD::T1045105126"] = "Show or hide the detailed security information."
@@ -15501,6 +15552,48 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTBUILDER::T4
-- The language in which the assistants you build answer. -- The language in which the assistants you build answer.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTBUILDER::T42126731::INFORMAL"] = "The language in which the assistants you build answer." UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTBUILDER::T42126731::INFORMAL"] = "The language in which the assistants you build answer."
-- There are no categories to show or hide right now.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2279201345"] = "There are no categories to show or hide right now."
-- Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2321353169"] = "Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the \"Send to ...\" menu."
-- Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2321353169::INFORMAL"] = "Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the \"Send to ...\" menu."
-- What should happen to assistants of categories you hid?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2813197614"] = "What should happen to assistants of categories you hid?"
-- What should happen to assistants of categories you hid?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2813197614::INFORMAL"] = "What should happen to assistants of categories you hid?"
-- What should happen to assistants of categories you collapsed?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2994249650"] = "What should happen to assistants of categories you collapsed?"
-- What should happen to assistants of categories you collapsed?
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T2994249650::INFORMAL"] = "What should happen to assistants of categories you collapsed?"
-- The category is hidden
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T3228924424"] = "The category is hidden"
-- Close
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T3448155331"] = "Close"
-- The category is shown
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T3595686409"] = "The category is shown"
-- Categories
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T4034259341"] = "Categories"
-- Assistant Settings
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T4124037832"] = "Assistant Settings"
-- Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T786145170"] = "Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the \"Send to ...\" menu."
-- Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGASSISTANTSPAGE::T786145170::INFORMAL"] = "Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the \"Send to ...\" menu."
-- Default minimum pause between files -- Default minimum pause between files
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGBATCHPROCESSING::T1008440099"] = "Default minimum pause between files" UI_TEXT_CONTENT["AISTUDIO::DIALOGS::SETTINGS::SETTINGSDIALOGBATCHPROCESSING::T1008440099"] = "Default minimum pause between files"
@@ -17679,18 +17772,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1271524187"] = "Analyze a documen
-- Analyze a document regarding defined rules and extract key information. -- Analyze a document regarding defined rules and extract key information.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1271524187::INFORMAL"] = "Analyze a document regarding defined rules and extract key information." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1271524187::INFORMAL"] = "Analyze a document regarding defined rules and extract key information."
-- Business
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T131837803"] = "Business"
-- Legal Check -- Legal Check
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1348190638"] = "Legal Check" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1348190638"] = "Legal Check"
-- Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information. -- Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1356376259"] = "Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1356376259"] = "Identify strengths, weaknesses, opportunities, threats, and practical next steps from provided information."
-- General
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1432485131"] = "General"
-- Grammar & Spelling -- Grammar & Spelling
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1514925962"] = "Grammar & Spelling" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T1514925962"] = "Grammar & Spelling"
@@ -17775,18 +17862,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2770149758"] = "Document Analysis
-- Visual Briefing Assistant -- Visual Briefing Assistant
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T277804139"] = "Visual Briefing Assistant" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T277804139"] = "Visual Briefing Assistant"
-- AI Studio Development
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2830810750"] = "AI Studio Development"
-- Generate a job posting for a given job description. -- Generate a job posting for a given job description.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254"] = "Generate a job posting for a given job description." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254"] = "Generate a job posting for a given job description."
-- Generate a job posting for a given job description. -- Generate a job posting for a given job description.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254::INFORMAL"] = "Generate a job posting for a given job description." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254::INFORMAL"] = "Generate a job posting for a given job description."
-- Installed Assistants
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T295232966"] = "Installed Assistants"
-- My Tasks -- My Tasks
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3011450657"] = "My Tasks" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3011450657"] = "My Tasks"
@@ -17802,15 +17883,18 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T311775455::INFORMAL"] = "The auto
-- Translate AI Studio text content into other languages -- Translate AI Studio text content into other languages
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3181803840"] = "Translate AI Studio text content into other languages" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3181803840"] = "Translate AI Studio text content into other languages"
-- Software Engineering
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3260960011"] = "Software Engineering"
-- Assistant Builder -- Assistant Builder
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3303547904"] = "Assistant Builder" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3303547904"] = "Assistant Builder"
-- Rewrite & Improve -- Rewrite & Improve
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3309133329"] = "Rewrite & Improve" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3309133329"] = "Rewrite & Improve"
-- You hid all categories. You can show them again in the assistant settings, which the gear next to the heading opens.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3608690820"] = "You hid all categories. You can show them again in the assistant settings, which the gear next to the heading opens."
-- You hid all categories. You can show them again in the assistant settings, which the gear next to the heading opens.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3608690820::INFORMAL"] = "You hid all categories. You can show them again in the assistant settings, which the gear next to the heading opens."
-- Icon Finder -- Icon Finder
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3693102312"] = "Icon Finder" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3693102312"] = "Icon Finder"
@@ -17820,6 +17904,9 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3733831260"] = "Generate your own
-- Generate your own assistants. -- Generate your own assistants.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3733831260::INFORMAL"] = "Generate your own assistants." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3733831260::INFORMAL"] = "Generate your own assistants."
-- Open the assistant settings
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3745279719"] = "Open the assistant settings"
-- Generate an ERI server to integrate business systems. -- Generate an ERI server to integrate business systems.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3756213118"] = "Generate an ERI server to integrate business systems." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3756213118"] = "Generate an ERI server to integrate business systems."
@@ -17853,6 +17940,9 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3970214537"] = "Ask a question ab
-- Ask a question about a legal document. -- Ask a question about a legal document.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3970214537::INFORMAL"] = "Ask a question about a legal document." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3970214537::INFORMAL"] = "Ask a question about a legal document."
-- Assistant Settings
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T4124037832"] = "Assistant Settings"
-- Log Viewer -- Log Viewer
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T4130241777"] = "Log Viewer" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T4130241777"] = "Log Viewer"
@@ -17889,9 +17979,6 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T892147062"] = "View and filter AI
-- Localization -- Localization
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T897888480"] = "Localization" UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T897888480"] = "Localization"
-- Learning & Reflecting
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T912918956"] = "Learning & Reflecting"
-- Turn texts and documents into slides, also as a PowerPoint file in the design of your template. -- Turn texts and documents into slides, also as a PowerPoint file in the design of your template.
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T943132958"] = "Turn texts and documents into slides, also as a PowerPoint file in the design of your template." UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T943132958"] = "Turn texts and documents into slides, also as a PowerPoint file in the design of your template."
@@ -19038,6 +19125,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2430906247::INFORMAL"] = "{0} Do you
-- The tile '{0}' has been updated. -- The tile '{0}' has been updated.
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2443911707"] = "The tile '{0}' has been updated." UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2443911707"] = "The tile '{0}' has been updated."
-- Your organization disabled all categories of this assistant: {0}
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2444737585"] = "Your organization disabled all categories of this assistant: {0}"
-- Your organization disabled all categories of this assistant: {0}
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2444737585::INFORMAL"] = "Your organization disabled all categories of this assistant: {0}"
-- Share dialog not available -- Share dialog not available
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2445896850"] = "Share dialog not available" UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T2445896850"] = "Share dialog not available"
@@ -19131,6 +19224,12 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T659549952"] = "The plugin archive wa
-- An error occurred while exporting the plugin. -- An error occurred while exporting the plugin.
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T759681732"] = "An error occurred while exporting the plugin." UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T759681732"] = "An error occurred while exporting the plugin."
-- Your organization disabled the category '{0}' of this assistant
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T798759833"] = "Your organization disabled the category '{0}' of this assistant"
-- Your organization disabled the category '{0}' of this assistant
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T798759833::INFORMAL"] = "Your organization disabled the category '{0}' of this assistant"
-- The plugin could not be imported: {0} -- The plugin could not be imported: {0}
UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T837269472"] = "The plugin could not be imported: {0}" UI_TEXT_CONTENT["AISTUDIO::PAGES::PLUGINS::T837269472"] = "The plugin could not be imported: {0}"
@@ -19641,6 +19740,9 @@ UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1245257804
-- Settings -- Settings
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1258653480"] = "Settings" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1258653480"] = "Settings"
-- Keep offering me the assistants, e.g., in the "Send to ..." menu
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1289869768"] = "Keep offering me the assistants, e.g., in the \"Send to ...\" menu"
-- No key is sending the input -- No key is sending the input
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1311973034"] = "No key is sending the input; you have to click the send button" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1311973034"] = "No key is sending the input; you have to click the send button"
@@ -19671,6 +19773,9 @@ UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1874928511
-- Always expand navigation -- Always expand navigation
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1991359958"] = "Always expand navigation" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T1991359958"] = "Always expand navigation"
-- Treat the assistants as if they did not exist, e.g., not in the "Send to ..." menu
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T2049952564"] = "Treat the assistants as if they did not exist, e.g., not in the \"Send to ...\" menu"
-- Show also experimental features: these are experimental; expect bugs, missing features, many changes -- Show also experimental features: these are experimental; expect bugs, missing features, many changes
UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T2091731959"] = "Show also experimental features: these are experimental; expect bugs, missing features, many changes" UI_TEXT_CONTENT["AISTUDIO::SETTINGS::CONFIGURATIONSELECTDATAFACTORY::T2091731959"] = "Show also experimental features: these are experimental; expect bugs, missing features, many changes"
@@ -20058,39 +20163,6 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::AIJOBS::AIJOBSERVICE::T373499115"] = "Your dat
-- Your data sources could not be used. This answer was created without them. -- Your data sources could not be used. This answer was created without them.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::AIJOBS::AIJOBSERVICE::T373499115::INFORMAL"] = "Your data sources could not be used. This answer was created without them." UI_TEXT_CONTENT["AISTUDIO::TOOLS::AIJOBS::AIJOBSERVICE::T373499115::INFORMAL"] = "Your data sources could not be used. This answer was created without them."
-- Software Development
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T1025369409"] = "Software Development"
-- Business
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T131837803"] = "Business"
-- General
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T1432485131"] = "General"
-- Other
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T1849229205"] = "Other"
-- Please select the assistant category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2552974770"] = "Please select the assistant category"
-- Please select the assistant category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2552974770::INFORMAL"] = "Please select the assistant category"
-- AI Studio Development
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2830810750"] = "AI Studio Development"
-- Productivity
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T2887181245"] = "Productivity"
-- Scientific
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T3802462536"] = "Scientific"
-- Select the assistant category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T4193824894"] = "Select the assistant category"
-- Learning & Reflecting
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTCATEGORYEXTENSIONS::T912918956"] = "Learning & Reflecting"
-- This assistant is already running. AI Studio opens the running session instead. -- This assistant is already running. AI Studio opens the running session instead.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTLAUNCH::ASSISTANTLAUNCHSERVICE::T2575715765"] = "This assistant is already running. AI Studio opens the running session instead." UI_TEXT_CONTENT["AISTUDIO::TOOLS::ASSISTANTLAUNCH::ASSISTANTLAUNCHSERVICE::T2575715765"] = "This assistant is already running. AI Studio opens the running session instead."
@@ -21567,6 +21639,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::CONFIGURATIONSNIPPETPARSER::T949
-- The table AUTHORS does not exist or is using an invalid syntax. -- The table AUTHORS does not exist or is using an invalid syntax.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1068328139"] = "The table AUTHORS does not exist or is using an invalid syntax." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1068328139"] = "The table AUTHORS does not exist or is using an invalid syntax."
-- The table CUSTOM_CATEGORIES is using an invalid syntax. It must be a table of names.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T131394700"] = "The table CUSTOM_CATEGORIES is using an invalid syntax. It must be a table of names."
-- The field NAME does not exist or is not a valid string. -- The field NAME does not exist or is not a valid string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1340447036"] = "The field NAME does not exist or is not a valid string." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T1340447036"] = "The field NAME does not exist or is not a valid string."
@@ -21597,6 +21672,12 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2262604281"] = "The
-- The field DESCRIPTION does not exist or is not a valid string. -- The field DESCRIPTION does not exist or is not a valid string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T229488255"] = "The field DESCRIPTION does not exist or is not a valid string." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T229488255"] = "The field DESCRIPTION does not exist or is not a valid string."
-- The table CUSTOM_CATEGORIES requires the category CUSTOM in the table CATEGORIES.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2426905758"] = "The table CUSTOM_CATEGORIES requires the category CUSTOM in the table CATEGORIES."
-- The category CUSTOM requires the table CUSTOM_CATEGORIES with at least one name.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2515975321"] = "The category CUSTOM requires the table CUSTOM_CATEGORIES with at least one name."
-- The field VERSION is not a valid version number. The version number must be formatted as string in the major.minor.patch format (X.X.X). -- The field VERSION is not a valid version number. The version number must be formatted as string in the major.minor.patch format (X.X.X).
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2538827536"] = "The field VERSION is not a valid version number. The version number must be formatted as string in the major.minor.patch format (X.X.X)." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T2538827536"] = "The field VERSION is not a valid version number. The version number must be formatted as string in the major.minor.patch format (X.X.X)."
@@ -21618,6 +21699,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T3667396132"] = "The
-- The field NAME is empty. The name must be a non-empty string. -- The field NAME is empty. The name must be a non-empty string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T3763759727"] = "The field NAME is empty. The name must be a non-empty string." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T3763759727"] = "The field NAME is empty. The name must be a non-empty string."
-- The table CUSTOM_CATEGORIES contains an empty name or a value which is not a text.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T4089014619"] = "The table CUSTOM_CATEGORIES contains an empty name or a value which is not a text."
-- The field SUPPORT_CONTACT does not exist or is not a valid string. -- The field SUPPORT_CONTACT does not exist or is not a valid string.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T4189964941"] = "The field SUPPORT_CONTACT does not exist or is not a valid string." UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINBASE::T4189964941"] = "The field SUPPORT_CONTACT does not exist or is not a valid string."
@@ -21648,6 +21732,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T10253
-- Business -- Business
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T131837803"] = "Business" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T131837803"] = "Business"
-- General
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1432485131"] = "General"
-- Music -- Music
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1481252212"] = "Music" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1481252212"] = "Music"
@@ -21657,6 +21744,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T15858
-- Weather -- Weather
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1726658099"] = "Weather" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1726658099"] = "Weather"
-- Custom category
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T1885949922"] = "Custom category"
-- Industry -- Industry
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T208409567"] = "Industry" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T208409567"] = "Industry"
@@ -21678,6 +21768,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T25870
-- Shopping -- Shopping
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2704337693"] = "Shopping" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2704337693"] = "Shopping"
-- AI Studio Development
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2830810750"] = "AI Studio Development"
-- Fitness -- Fitness
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2892517655"] = "Fitness" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T2892517655"] = "Fitness"
@@ -21693,9 +21786,6 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T34217
-- Entertainment -- Entertainment
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T3562575449"] = "Entertainment" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T3562575449"] = "Entertainment"
-- Education
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T379048501"] = "Education"
-- AI Studio Core -- AI Studio Core
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T4005865962"] = "AI Studio Core" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T4005865962"] = "AI Studio Core"
@@ -21720,6 +21810,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T85056
-- Science -- Science
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T904504157"] = "Science" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T904504157"] = "Science"
-- Learning & Reflecting
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T912918956"] = "Learning & Reflecting"
-- Content Creation -- Content Creation
UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T914642375"] = "Content Creation" UI_TEXT_CONTENT["AISTUDIO::TOOLS::PLUGINSYSTEM::PLUGINCATEGORYEXTENSIONS::T914642375"] = "Content Creation"
@@ -23124,9 +23217,18 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1
-- The revision model did not return a usable answer. -- The revision model did not return a usable answer.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1411545143"] = "The revision model did not return a usable answer." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1411545143"] = "The revision model did not return a usable answer."
-- Your organization disabled these categories of your assistant: {0}. Please choose other categories.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1647997085"] = "Your organization disabled these categories of your assistant: {0}. Please choose other categories."
-- Your organization disabled these categories of your assistant: {0}. Please choose other categories.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1647997085::INFORMAL"] = "Your organization disabled these categories of your assistant: {0}. Please choose other categories."
-- Description -- Description
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1725856265"] = "Description" UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1725856265"] = "Description"
-- The categories of the revised assistant do not match the revised plugin.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1778095727"] = "The categories of the revised assistant do not match the revised plugin."
-- Please select a provider. -- Please select a provider.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1809312323"] = "Please select a provider." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T1809312323"] = "Please select a provider."
@@ -23178,6 +23280,12 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3
-- Assistant Plugin Revision -- Assistant Plugin Revision
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3245954919"] = "Assistant Plugin Revision" UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3245954919"] = "Assistant Plugin Revision"
-- Your organization disabled the category '{0}'. Please choose another category for your assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3254953496"] = "Your organization disabled the category '{0}'. Please choose another category for your assistant."
-- Your organization disabled the category '{0}'. Please choose another category for your assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3254953496::INFORMAL"] = "Your organization disabled the category '{0}'. Please choose another category for your assistant."
-- The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now. -- The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3278037634"] = "The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T3278037634"] = "The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now."
@@ -23244,6 +23352,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4
-- The draft model did not return a usable answer. -- The draft model did not return a usable answer.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4183375977"] = "The draft model did not return a usable answer." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4183375977"] = "The draft model did not return a usable answer."
-- The categories of the generated assistant do not match the generated plugin.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4224887725"] = "The categories of the generated assistant do not match the generated plugin."
-- The Assistant Builder response schema could not be loaded. -- The Assistant Builder response schema could not be loaded.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4235833611"] = "The Assistant Builder response schema could not be loaded." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::ASSISTANTPLUGINGENERATIONSERVICE::T4235833611"] = "The Assistant Builder response schema could not be loaded."
@@ -23388,6 +23499,12 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T2466659933"] = "
-- The assistant chat launcher references data source '{0}', but that data source does not exist. -- The assistant chat launcher references data source '{0}', but that data source does not exist.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T289191545"] = "The assistant chat launcher references data source '{0}', but that data source does not exist." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T289191545"] = "The assistant chat launcher references data source '{0}', but that data source does not exist."
-- Your organization disabled the categories of this assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T2988562427"] = "Your organization disabled the categories of this assistant."
-- Your organization disabled the categories of this assistant.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T2988562427::INFORMAL"] = "Your organization disabled the categories of this assistant."
-- The chat template '{0}' selects data sources, but no provider is available for chats. Please choose a default provider for chats first. No chat was created. -- The chat template '{0}' selects data sources, but no provider is available for chats. Please choose a default provider for chats first. No chat was created.
UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T3082876173"] = "The chat template '{0}' selects data sources, but no provider is available for chats. Please choose a default provider for chats first. No chat was created." UI_TEXT_CONTENT["AISTUDIO::TOOLS::SERVICES::DIRECTCHATSERVICE::T3082876173"] = "The chat template '{0}' selects data sources, but no provider is available for chats. Please choose a default provider for chats first. No chat was created."
@@ -39,6 +39,12 @@ public static class ConfigurationSelectDataFactory
} }
} }
public static IEnumerable<ConfigurationSelectData<AssistantOfferBehavior>> GetAssistantOfferBehaviorData()
{
yield return new(TB("""Keep offering me the assistants, e.g., in the "Send to ..." menu"""), AssistantOfferBehavior.KEEP_OFFERING);
yield return new(TB("""Treat the assistants as if they did not exist, e.g., not in the "Send to ..." menu"""), AssistantOfferBehavior.TREAT_AS_ABSENT);
}
public static IEnumerable<ConfigurationSelectData<LoadingChatProviderBehavior>> GetLoadingChatProviderBehavior() public static IEnumerable<ConfigurationSelectData<LoadingChatProviderBehavior>> GetLoadingChatProviderBehavior()
{ {
yield return new(TB("When possible, use the LLM provider which was used for each chat in the first place"), LoadingChatProviderBehavior.USE_CHAT_PROVIDER_IF_AVAILABLE); yield return new(TB("When possible, use the LLM provider which was used for each chat in the first place"), LoadingChatProviderBehavior.USE_CHAT_PROVIDER_IF_AVAILABLE);
@@ -0,0 +1,17 @@
namespace AIStudio.Settings.DataModel;
/// <summary>
/// What happens to the assistants of a category the user collapsed or hid on the assistants page.
/// </summary>
public enum AssistantOfferBehavior
{
/// <summary>
/// AI Studio keeps offering the assistants outside of the assistants page, e.g., in the "Send to ..." menu.
/// </summary>
KEEP_OFFERING,
/// <summary>
/// AI Studio treats the assistants as if they did not exist, e.g., the "Send to ..." menu leaves them out.
/// </summary>
TREAT_AS_ABSENT,
}
@@ -165,6 +165,11 @@ public sealed class Data
public DataChat Chat { get; set; } = new(x => x.Chat); public DataChat Chat { get; set; } = new(x => x.Chat);
/// <summary>
/// Gets the settings of the assistants page: collapsed and hidden categories.
/// </summary>
public DataAssistantsPage AssistantsPage { get; set; } = new(x => x.AssistantsPage);
public DataWorkspace Workspace { get; set; } = new(); public DataWorkspace Workspace { get; set; } = new();
public DataIconFinder IconFinder { get; set; } = new(); public DataIconFinder IconFinder { get; set; } = new();
@@ -410,4 +410,25 @@ public sealed class DataApp(Expression<Func<Data, DataApp>>? configSelection = n
/// List of assistants that should be hidden from the UI. /// List of assistants that should be hidden from the UI.
/// </summary> /// </summary>
public HashSet<ConfigurableAssistant> HiddenAssistants { get; set; } = ManagedConfiguration.Register(configSelection, n => n.HiddenAssistants, []); public HashSet<ConfigurableAssistant> HiddenAssistants { get; set; } = ManagedConfiguration.Register(configSelection, n => n.HiddenAssistants, []);
/// <summary>
/// The categories of assistants your organization disabled.
/// </summary>
/// <remarks>
/// Only a configuration plugin fills this. Unlike HiddenAssistants, it covers assistant plugins as
/// well, e.g., entertainment plugins on the devices of an organization. Ask AssistantCategoryRules
/// instead of reading it: CORE counts as COMMON there, CUSTOM stands for every custom category, a
/// plugin with several categories stays available while one of them is free, and a plugin your
/// organization deployed itself is never disabled by its categories.
/// </remarks>
public HashSet<PluginCategory> DisabledAssistantCategories { get; set; } = ManagedConfiguration.Register(configSelection, n => n.DisabledAssistantCategories, []);
/// <summary>
/// The custom categories of assistant plugins your organization disabled, by their names.
/// </summary>
/// <remarks>
/// Only a configuration plugin fills this. The names are compared without regard to case, like the
/// headings of the assistants page. See DisabledAssistantCategories.
/// </remarks>
public HashSet<string> DisabledCustomAssistantCategories { get; set; } = ManagedConfiguration.Register(configSelection, n => n.DisabledCustomAssistantCategories, []);
} }
@@ -0,0 +1,65 @@
using System.Linq.Expressions;
using AIStudio.Tools.PluginSystem;
namespace AIStudio.Settings.DataModel;
/// <summary>
/// The settings of the assistants page: the categories the user collapsed or hid, and what that means for
/// their assistants.
/// </summary>
/// <remarks>
/// Collapsing and hiding are choices of the user alone and never managed: both only take something out of
/// sight. Your organization disables categories elsewhere, see DataApp.DisabledAssistantCategories. It may,
/// however, preset or lock the two options which decide whether AI Studio keeps offering the assistants of
/// collapsed and hidden categories, e.g., in the "Send to ..." menu.<br/><br/>
/// Ask AssistantCategoryRules instead of reading the categories: CORE counts as COMMON there, and custom
/// categories are compared without regard to case.
/// </remarks>
/// <param name="configSelection">The managed-configuration selector.</param>
public sealed class DataAssistantsPage(Expression<Func<Data, DataAssistantsPage>>? configSelection = null)
{
/// <summary>
/// The default constructor for the JSON deserializer.
/// </summary>
public DataAssistantsPage() : this(null)
{
}
/// <summary>
/// The categories of AI Studio the user collapsed on the assistants page.
/// </summary>
public HashSet<PluginCategory> CollapsedCategories { get; set; } = [];
/// <summary>
/// The custom categories the user collapsed on the assistants page, by their names.
/// </summary>
public HashSet<string> CollapsedCustomCategories { get; set; } = [];
/// <summary>
/// The categories of AI Studio the user hid on the assistants page.
/// </summary>
public HashSet<PluginCategory> HiddenCategories { get; set; } = [];
/// <summary>
/// The custom categories the user hid on the assistants page, by their names.
/// </summary>
public HashSet<string> HiddenCustomCategories { get; set; } = [];
/// <summary>
/// What happens to the assistants of collapsed categories outside of the assistants page.
/// </summary>
/// <remarks>
/// Collapsing a category is about a tidy page, so AI Studio keeps offering its assistants by default.
/// </remarks>
public AssistantOfferBehavior CollapsedCategoryAssistants { get; set; } = ManagedConfiguration.Register(configSelection, n => n.CollapsedCategoryAssistants, AssistantOfferBehavior.KEEP_OFFERING);
/// <summary>
/// What happens to the assistants of hidden categories outside of the assistants page.
/// </summary>
/// <remarks>
/// Hiding a category says that its assistants do not matter to the user, so AI Studio treats them as if
/// they did not exist by default.
/// </remarks>
public AssistantOfferBehavior HiddenCategoryAssistants { get; set; } = ManagedConfiguration.Register(configSelection, n => n.HiddenCategoryAssistants, AssistantOfferBehavior.TREAT_AS_ABSENT);
}
@@ -3,6 +3,7 @@ using System.Text.Json.Serialization;
using AIStudio.Provider; using AIStudio.Provider;
using AIStudio.Settings.DataModel; using AIStudio.Settings.DataModel;
using AIStudio.Settings.DataModel.PreviousModels; using AIStudio.Settings.DataModel.PreviousModels;
using AIStudio.Tools.PluginSystem;
using EMailWritingStyles = AIStudio.Assistants.EMail.WritingStyles; using EMailWritingStyles = AIStudio.Assistants.EMail.WritingStyles;
using ERIContentType = AIStudio.Tools.ERIClient.DataModel.ContentType; using ERIContentType = AIStudio.Tools.ERIClient.DataModel.ContentType;
@@ -32,6 +33,7 @@ namespace AIStudio.Settings;
[JsonSerializable(typeof(ISet<PreviewFeatures>))] [JsonSerializable(typeof(ISet<PreviewFeatures>))]
[JsonSerializable(typeof(ISet<LLMProviders>))] [JsonSerializable(typeof(ISet<LLMProviders>))]
[JsonSerializable(typeof(ISet<ConfigurableAssistant>))] [JsonSerializable(typeof(ISet<ConfigurableAssistant>))]
[JsonSerializable(typeof(ISet<PluginCategory>))]
[JsonSerializable(typeof(IList<string>))] [JsonSerializable(typeof(IList<string>))]
[JsonSerializable(typeof(IList<DataAssistantPluginEnterpriseApproval>))] [JsonSerializable(typeof(IList<DataAssistantPluginEnterpriseApproval>))]
[JsonSerializable(typeof(IDictionary<string, string>))] [JsonSerializable(typeof(IDictionary<string, string>))]
@@ -1,15 +0,0 @@
namespace AIStudio.Tools;
public enum AssistantCategory
{
AS_IS,
GENERAL,
SCIENTIFIC,
PRODUCTIVITY,
BUSINESS,
LEARNING,
DEVELOPMENT,
AI_STUDIO,
OTHER,
}
@@ -1,39 +0,0 @@
using AIStudio.Tools.PluginSystem;
namespace AIStudio.Tools;
public static class AssistantCategoryExtensions
{
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(AssistantCategoryExtensions).Namespace, nameof(AssistantCategoryExtensions));
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(AssistantCategoryExtensions).Namespace, nameof(AssistantCategoryExtensions));
extension(AssistantCategory category)
{
public string Name => category switch
{
AssistantCategory.AS_IS => TB("Select the assistant category"),
AssistantCategory.GENERAL => TB("General"),
AssistantCategory.SCIENTIFIC => TB("Scientific"),
AssistantCategory.BUSINESS => TB("Business"),
AssistantCategory.PRODUCTIVITY => TB("Productivity"),
AssistantCategory.DEVELOPMENT => TB("Software Development"),
AssistantCategory.LEARNING => TB("Learning & Reflecting"),
AssistantCategory.AI_STUDIO => TB("AI Studio Development"),
AssistantCategory.OTHER => TB("Other"),
_ => string.Empty,
};
public string NameSelecting
{
get
{
if(category is AssistantCategory.AS_IS)
return TA("Please select the assistant category");
return category.Name;
}
}
}
}
@@ -0,0 +1,187 @@
using AIStudio.Settings;
using AIStudio.Settings.DataModel;
using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.PluginSystem.Assistants;
namespace AIStudio.Tools;
/// <summary>
/// Decides what the categories of an assistant allow, built-in assistants and plugins alike: whether your
/// organization disabled them, and whether the user collapsed or hid them on the assistants page.
/// </summary>
/// <remarks>
/// An organization disables categories through DataApp.DisabledAssistantCategories and
/// DataApp.DisabledCustomAssistantCategories, e.g., to keep entertainment plugins off its devices. An
/// assistant of a disabled category is gone everywhere: from the assistants page, from "Send to …", from
/// links, from direct chat launchers, and from the Assistant Builder. Ask these rules instead of reading the
/// settings: a check of your own would miss CORE, which counts as COMMON, or a custom category spelled
/// differently.<br/><br/>
/// Built-in assistants have exactly one category, see ComponentsExtensions.Category; IsAssistantVisible
/// checks it. A plugin may have several, and it stays available while one of them is not disabled. A plugin
/// your organization deployed itself is never disabled by its categories, see
/// PluginFactory.IsAssistantDeployedByOrganization.
/// </remarks>
public static class AssistantCategoryRules
{
/// <param name="app">The app settings which hold the categories your organization disabled.</param>
extension(DataApp app)
{
/// <summary>
/// Whether your organization disabled this category.
/// </summary>
/// <remarks>
/// CORE and COMMON are one category, because both share the heading "General". Disabling CUSTOM
/// disables every custom category.
/// </remarks>
/// <param name="category">The category in question.</param>
/// <returns>True when your organization disabled the category.</returns>
public bool IsAssistantCategoryDisabled(AssistantCategoryKey category)
{
if (category.Category is PluginCategory.CUSTOM)
return app.DisabledAssistantCategories.Contains(PluginCategory.CUSTOM)
|| app.DisabledCustomAssistantCategories.Any(name => category.Equals(new AssistantCategoryKey(PluginCategory.CUSTOM, name)));
return app.DisabledAssistantCategories.Any(disabledCategory => category.Equals(new AssistantCategoryKey(disabledCategory)));
}
/// <summary>
/// Whether your organization disabled an assistant plugin through its categories.
/// </summary>
/// <param name="plugin">The plugin in question.</param>
/// <param name="isDeployedByOrganization">Whether your organization deployed the plugin itself, see PluginFactory.IsAssistantDeployedByOrganization.</param>
/// <returns>True when every category of the plugin is disabled and your organization did not deploy it.</returns>
public bool DisablesAssistantPlugin(IPluginMetadata plugin, bool isDeployedByOrganization)
{
if (isDeployedByOrganization)
return false;
var categories = AssistantCategoryKey.AllOf(plugin);
return categories.Count > 0 && categories.All(category => app.IsAssistantCategoryDisabled(category));
}
}
/// <param name="page">The settings of the assistants page, which hold the categories the user collapsed or hid.</param>
extension(DataAssistantsPage page)
{
/// <summary>
/// Whether the user collapsed this category on the assistants page.
/// </summary>
/// <param name="category">The category in question.</param>
/// <returns>True when the category is collapsed.</returns>
public bool IsCategoryCollapsed(AssistantCategoryKey category) => Contains(page.CollapsedCategories, page.CollapsedCustomCategories, category);
/// <summary>
/// Whether the user hid this category on the assistants page.
/// </summary>
/// <param name="category">The category in question.</param>
/// <returns>True when the category is hidden.</returns>
public bool IsCategoryHidden(AssistantCategoryKey category) => Contains(page.HiddenCategories, page.HiddenCustomCategories, category);
/// <summary>
/// Collapses a category on the assistants page or expands it again.
/// </summary>
/// <param name="category">The category in question.</param>
/// <param name="isCollapsed">True to collapse the category, false to expand it.</param>
public void SetCategoryCollapsed(AssistantCategoryKey category, bool isCollapsed) => Set(page.CollapsedCategories, page.CollapsedCustomCategories, category, isCollapsed);
/// <summary>
/// Hides a category on the assistants page or shows it again.
/// </summary>
/// <param name="category">The category in question.</param>
/// <param name="isHidden">True to hide the category, false to show it.</param>
public void SetCategoryHidden(AssistantCategoryKey category, bool isHidden) => Set(page.HiddenCategories, page.HiddenCustomCategories, category, isHidden);
/// <summary>
/// Whether AI Studio offers the assistants of this category outside of the assistants page, e.g.,
/// in the "Send to ..." menu.
/// </summary>
/// <remarks>
/// A hidden category follows the option for hidden categories, also when it is collapsed as well;
/// a collapsed one follows the option for collapsed categories; any other category offers its
/// assistants. An assistant with several categories is offered as soon as one of them offers it.
/// Whether your organization disabled the category is a question of its own, see
/// IsAssistantCategoryDisabled.
/// </remarks>
/// <param name="category">The category in question.</param>
/// <returns>True when AI Studio offers the assistants of the category.</returns>
public bool IsCategoryOffering(AssistantCategoryKey category)
{
if (page.IsCategoryHidden(category))
return page.HiddenCategoryAssistants is AssistantOfferBehavior.KEEP_OFFERING;
if (page.IsCategoryCollapsed(category))
return page.CollapsedCategoryAssistants is AssistantOfferBehavior.KEEP_OFFERING;
return true;
}
/// <summary>
/// Whether AI Studio offers a built-in assistant outside of the assistants page, e.g., in the
/// "Send to ..." menu, as far as its category on the page is concerned.
/// </summary>
/// <remarks>
/// A component without a category, such as the chat, is always offered.
/// </remarks>
/// <param name="component">The assistant in question.</param>
/// <returns>True when the category of the assistant offers it.</returns>
public bool IsOfferingAssistant(Components component) => component.Category is PluginCategory.NONE || page.IsCategoryOffering(new AssistantCategoryKey(component.Category));
}
/// <summary>
/// Whether a category is among those stored in a pair of sets, one for the categories of AI Studio and
/// one for the names of custom categories.
/// </summary>
private static bool Contains(HashSet<PluginCategory> categories, HashSet<string> customNames, AssistantCategoryKey category) => category.Category is PluginCategory.CUSTOM
? customNames.Any(name => category.Equals(new AssistantCategoryKey(PluginCategory.CUSTOM, name)))
: categories.Any(storedCategory => category.Equals(new AssistantCategoryKey(storedCategory)));
/// <summary>
/// Adds a category to a pair of sets or removes it, see Contains.
/// </summary>
/// <remarks>
/// Removing a category removes every spelling of it, e.g., CORE together with COMMON, or a custom
/// name in another case. Adding it stores the spelling of the key, so a set never holds CORE.
/// </remarks>
private static void Set(HashSet<PluginCategory> categories, HashSet<string> customNames, AssistantCategoryKey category, bool isContained)
{
if (category.Category is PluginCategory.CUSTOM)
{
customNames.RemoveWhere(name => category.Equals(new AssistantCategoryKey(PluginCategory.CUSTOM, name)));
if (isContained)
customNames.Add(category.CustomName);
return;
}
categories.RemoveWhere(storedCategory => category.Equals(new AssistantCategoryKey(storedCategory)));
if (isContained)
categories.Add(category.Category);
}
/// <param name="settingsManager">The settings manager which holds the rules of your organization.</param>
extension(SettingsManager settingsManager)
{
/// <summary>
/// Whether your organization disabled an assistant plugin through its categories.
/// </summary>
/// <param name="plugin">The plugin in question.</param>
/// <returns>True when every category of the plugin is disabled and your organization did not deploy it.</returns>
public bool IsDisabledByItsCategories(PluginAssistants plugin)
{
var configuration = settingsManager.ConfigurationData;
var isDeployedByOrganization = PluginFactory.IsAssistantDeployedByOrganization(plugin, configuration.AssistantPluginAudit.EnterpriseApprovedPlugins);
return configuration.App.DisablesAssistantPlugin(plugin, isDeployedByOrganization);
}
/// <summary>
/// Whether an assistant plugin may be offered and started.
/// </summary>
/// <remarks>
/// Check this wherever an assistant plugin enters the app: on the assistants page, when a link
/// names it, and when a direct chat launcher starts its chat.
/// </remarks>
/// <param name="plugin">The plugin in question.</param>
/// <returns>True when the plugin is enabled and your organization did not disable it through its categories.</returns>
public bool IsAssistantPluginAvailable(PluginAssistants plugin) => settingsManager.IsPluginEnabled(plugin) && !settingsManager.IsDisabledByItsCategories(plugin);
}
}
@@ -152,5 +152,11 @@ public sealed class AssistantLaunchService(SettingsManager settingsManager, Assi
.OrderBy(destination => destination.Name.Length) .OrderBy(destination => destination.Name.Length)
.ToArray(); .ToArray();
private bool IsVisible(Components destination) => settingsManager.IsAssistantVisible(destination, withLogging: false, requiredPreviewFeature: destination.RequiredPreviewFeature); /// <summary>
/// Whether the menu offers a destination: the user sees the assistant at all, and its category on the
/// assistants page, collapsed or hidden, still offers it.
/// </summary>
private bool IsVisible(Components destination) =>
settingsManager.IsAssistantVisible(destination, withLogging: false, requiredPreviewFeature: destination.RequiredPreviewFeature) &&
settingsManager.ConfigurationData.AssistantsPage.IsOfferingAssistant(destination);
} }
@@ -1,5 +1,6 @@
using AIStudio.Settings; using AIStudio.Settings;
using AIStudio.Settings.DataModel; using AIStudio.Settings.DataModel;
using AIStudio.Tools.PluginSystem;
namespace AIStudio.Tools; namespace AIStudio.Tools;
@@ -43,6 +44,17 @@ public static class AssistantVisibilityExtensions
return true; return true;
} }
// Your organization may disable whole categories of assistants. Plugins bring their categories
// along, so AssistantCategoryRules.IsAssistantPluginAvailable checks them instead:
var category = component.Category;
if (category is not PluginCategory.NONE && settingsManager.ConfigurationData.App.IsAssistantCategoryDisabled(new AssistantCategoryKey(category)))
{
if(withLogging)
LOGGER.LogInformation("Assistant '{AssistantName}' is not visible because your organization disabled its category '{Category}'.", assistantName, category);
return false;
}
// Dynamic assistants are controlled through plugin activation and their security state. // Dynamic assistants are controlled through plugin activation and their security state.
// The Assistant Builder is controlled through its preview feature. Neither belongs to the // The Assistant Builder is controlled through its preview feature. Neither belongs to the
// built-in assistant visibility list, so both are expected to be visible at this point. // built-in assistant visibility list, so both are expected to be visible at this point.
@@ -27,6 +27,51 @@ public static class ComponentsExtensions
_ => PreviewFeatures.NONE, _ => PreviewFeatures.NONE,
}; };
/// <summary>
/// Gets the category a built-in assistant belongs to, the same categories assistant plugins name.
/// </summary>
/// <remarks>
/// This is the single place that maps a built-in assistant to its category. The assistants page
/// shows the assistant in the section of this category, and whatever offers assistants elsewhere
/// asks it, too. Components which are no assistant of their own, such as the chat or the agents,
/// return PluginCategory.NONE.
/// </remarks>
/// <value>The category of the assistant.</value>
public PluginCategory Category => component switch
{
Components.TEXT_SUMMARIZER_ASSISTANT => PluginCategory.COMMON,
Components.TRANSLATION_ASSISTANT => PluginCategory.COMMON,
Components.GRAMMAR_SPELLING_ASSISTANT => PluginCategory.COMMON,
Components.REWRITE_ASSISTANT => PluginCategory.COMMON,
Components.PROMPT_OPTIMIZER_ASSISTANT => PluginCategory.COMMON,
Components.SYNONYMS_ASSISTANT => PluginCategory.COMMON,
Components.MODEL_COMPARISON_ASSISTANT => PluginCategory.COMMON,
Components.META_ASSISTANT => PluginCategory.COMMON,
Components.EMAIL_ASSISTANT => PluginCategory.BUSINESS,
Components.SWOT_ANALYSIS_ASSISTANT => PluginCategory.BUSINESS,
Components.DOCUMENT_ANALYSIS_ASSISTANT => PluginCategory.BUSINESS,
Components.BATCH_PROCESSING_ASSISTANT => PluginCategory.BUSINESS,
Components.MY_TASKS_ASSISTANT => PluginCategory.BUSINESS,
Components.AGENDA_ASSISTANT => PluginCategory.BUSINESS,
Components.JOB_POSTING_ASSISTANT => PluginCategory.BUSINESS,
Components.LEGAL_CHECK_ASSISTANT => PluginCategory.BUSINESS,
Components.ICON_FINDER_ASSISTANT => PluginCategory.BUSINESS,
Components.SLIDE_BUILDER_ASSISTANT => PluginCategory.BUSINESS,
Components.VISUAL_BRIEFING_ASSISTANT => PluginCategory.BUSINESS,
Components.BIAS_DAY_ASSISTANT => PluginCategory.EDUCATION,
Components.BEYOND_FACTS_LAB_ASSISTANT => PluginCategory.EDUCATION,
Components.CODING_ASSISTANT => PluginCategory.SOFTWARE_DEVELOPMENT,
Components.ERI_ASSISTANT => PluginCategory.SOFTWARE_DEVELOPMENT,
Components.I18N_ASSISTANT => PluginCategory.AI_STUDIO_DEVELOPMENT,
Components.LOG_VIEWER_ASSISTANT => PluginCategory.AI_STUDIO_DEVELOPMENT,
_ => PluginCategory.NONE,
};
/// <summary> /// <summary>
/// Gets whether a component owns exactly one assistant session slot, so that a running session /// Gets whether a component owns exactly one assistant session slot, so that a running session
/// blocks starting another one and inactive sessions can be cleared as a group. /// blocks starting another one and inactive sessions can be cleared as a group.
@@ -0,0 +1,71 @@
namespace AIStudio.Tools.PluginSystem;
/// <summary>
/// One category of assistants, as the assistants page groups them: a category of AI Studio, or a
/// custom category a plugin names itself.
/// </summary>
/// <remarks>
/// Two rules decide when two categories are the same. CORE belongs to configuration and language
/// plugins; an assistant plugin which names it nevertheless appears under "General", so CORE becomes
/// COMMON. Custom categories come in the language of their authors, so two plugins may well spell one
/// category differently: their names are compared without regard to case.
/// </remarks>
public sealed record AssistantCategoryKey
{
/// <param name="category">The category of AI Studio.</param>
/// <param name="customName">The name of the custom category, when the category is CUSTOM.</param>
public AssistantCategoryKey(PluginCategory category, string customName = "")
{
this.Category = category is PluginCategory.CORE ? PluginCategory.COMMON : category;
this.CustomName = this.Category is PluginCategory.CUSTOM ? customName.Trim() : string.Empty;
}
/// <summary>
/// The category of AI Studio, never CORE.
/// </summary>
public PluginCategory Category { get; }
/// <summary>
/// The name of the custom category, or an empty string for any other category.
/// </summary>
public string CustomName { get; }
/// <summary>
/// The name of the category as the user reads it: localized for a category of AI Studio, as the
/// plugin wrote it for a custom one.
/// </summary>
public string Name => this.Category is PluginCategory.CUSTOM ? this.CustomName : this.Category.Name;
/// <summary>
/// Gets the categories a plugin names, its custom ones included.
/// </summary>
/// <remarks>
/// CUSTOM stands for all names of CUSTOM_CATEGORIES. Each category appears once, also when a plugin
/// names CORE and COMMON at the same time.
/// </remarks>
/// <param name="plugin">The plugin in question.</param>
/// <returns>The categories of the plugin, in the order the plugin names them.</returns>
public static IReadOnlyList<AssistantCategoryKey> AllOf(IPluginMetadata plugin) => AllOf(plugin.Categories, plugin.CustomCategories);
/// <summary>
/// Gets the categories which CATEGORIES and CUSTOM_CATEGORIES name together.
/// </summary>
/// <remarks>
/// For categories which are not loaded yet, e.g., those of a model answer. See the overload for a plugin.
/// </remarks>
/// <param name="categories">The categories of AI Studio.</param>
/// <param name="customCategories">The names of the custom categories.</param>
/// <returns>The categories, each once, in the order they are named.</returns>
public static IReadOnlyList<AssistantCategoryKey> AllOf(IEnumerable<PluginCategory> categories, IEnumerable<string> customCategories) => categories
.SelectMany(category => category is PluginCategory.CUSTOM
? customCategories.Select(name => new AssistantCategoryKey(PluginCategory.CUSTOM, name))
: [new AssistantCategoryKey(category)])
.Distinct()
.ToList();
/// <inheritdoc />
public bool Equals(AssistantCategoryKey? other) => other is not null && this.Category == other.Category && string.Equals(this.CustomName, other.CustomName, StringComparison.OrdinalIgnoreCase);
/// <inheritdoc />
public override int GetHashCode() => HashCode.Combine(this.Category, StringComparer.OrdinalIgnoreCase.GetHashCode(this.CustomName));
}
@@ -0,0 +1,9 @@
namespace AIStudio.Tools.PluginSystem.Assistants;
/// <summary>
/// One section of the assistants page, with the assistant plugins it shows.
/// </summary>
/// <param name="Category">The category of the section.</param>
/// <param name="Assistants">The assistant plugins of this category, sorted by their title.</param>
/// <typeparam name="TPlugin">The type of the plugins.</typeparam>
public sealed record AssistantPageSection<TPlugin>(AssistantCategoryKey Category, IReadOnlyList<TPlugin> Assistants);
@@ -0,0 +1,163 @@
using AIStudio.Settings.DataModel;
namespace AIStudio.Tools.PluginSystem.Assistants;
/// <summary>
/// Decides which sections the assistants page shows and in which order.
/// </summary>
/// <remarks>
/// The built-in assistants and the assistant plugins share one set of categories, see
/// AssistantCategoryKey. The page shows the sections of its built-in assistants first, in
/// the order users know: "General", "Business", "Learning &amp; Reflecting", and "Software Development".
/// The categories which only plugins name follow, the ones of AI Studio before the custom ones, each
/// group sorted by its name. "AI Studio Development" comes last, since it concerns the development of
/// AI Studio itself.
/// </remarks>
public static class AssistantPageSections
{
/// <summary>
/// The groups of sections, in the order of the page.
/// </summary>
private enum PageGroup
{
LEADING,
OTHER,
CUSTOM,
TRAILING,
}
/// <summary>
/// A plugin in one of its categories.
/// </summary>
/// <param name="Category">One category of the plugin.</param>
/// <param name="Plugin">The plugin.</param>
/// <typeparam name="TPlugin">The type of the plugin.</typeparam>
private sealed record SectionMember<TPlugin>(AssistantCategoryKey Category, TPlugin Plugin);
/// <summary>
/// The categories of the built-in assistants, which lead the page, in their order.
/// </summary>
public static readonly IReadOnlyList<AssistantCategoryKey> LEADING_CATEGORIES =
[
new(PluginCategory.COMMON),
new(PluginCategory.BUSINESS),
new(PluginCategory.EDUCATION),
new(PluginCategory.SOFTWARE_DEVELOPMENT),
];
/// <summary>
/// The category of the built-in assistants which ends the page.
/// </summary>
public static readonly AssistantCategoryKey TRAILING_CATEGORY = new(PluginCategory.AI_STUDIO_DEVELOPMENT);
/// <summary>
/// Whether the page shows a section of this category for its built-in assistants anyway.
/// </summary>
/// <param name="category">The category in question.</param>
/// <returns>True for the categories of the built-in assistants.</returns>
public static bool IsBuiltIn(AssistantCategoryKey category) => LEADING_CATEGORIES.Contains(category) || category == TRAILING_CATEGORY;
/// <summary>
/// Compares two categories by their place on the assistants page.
/// </summary>
/// <param name="left">The first category.</param>
/// <param name="right">The second category.</param>
/// <returns>Less than zero when the first category comes first, zero when both are the same, otherwise more than zero.</returns>
public static int Compare(AssistantCategoryKey left, AssistantCategoryKey right)
{
var byGroup = Group(left).CompareTo(Group(right));
if (byGroup != 0)
return byGroup;
var leftIndex = IndexOfLeading(left);
if (leftIndex >= 0)
return leftIndex.CompareTo(IndexOfLeading(right));
return NameComparer.Compare(left.Name, right.Name);
}
/// <summary>
/// Selects the categories the settings dialog of the assistants page offers, in the order of the page.
/// </summary>
/// <remarks>
/// The dialog offers the categories the page shows right now, so that every switch changes something
/// the user sees, and every category the user hid, so that each one can come back. Categories your
/// organization disabled are missing: no switch of the user brings them back.
/// </remarks>
/// <param name="shownCategories">The categories which show at least one assistant right now.</param>
/// <param name="app">The app settings which hold the categories your organization disabled.</param>
/// <param name="page">The settings of the assistants page, which hold the categories the user hid.</param>
/// <returns>The categories for the dialog, each once.</returns>
public static IReadOnlyList<AssistantCategoryKey> SelectForSettings(IEnumerable<AssistantCategoryKey> shownCategories, DataApp app, DataAssistantsPage page)
{
var hiddenCategories = page.HiddenCategories
.Select(category => new AssistantCategoryKey(category))
.Concat(page.HiddenCustomCategories.Select(name => new AssistantCategoryKey(PluginCategory.CUSTOM, name)));
return shownCategories
.Concat(hiddenCategories)
.Distinct()
.Where(category => !app.IsAssistantCategoryDisabled(category))
.Order(Comparer<AssistantCategoryKey>.Create(Compare))
.ToList();
}
/// <summary>
/// Groups the assistant plugins into the sections of the assistants page.
/// </summary>
/// <remarks>
/// A plugin appears in each of its categories, but only once per section. The sections come in the
/// order of the page, and their plugins sorted by title.
/// </remarks>
/// <param name="plugins">The assistant plugins to show.</param>
/// <param name="titleOf">Gets the title under which a plugin appears.</param>
/// <typeparam name="TPlugin">The type of the plugins.</typeparam>
/// <returns>One section per category any of the plugins names.</returns>
public static IReadOnlyList<AssistantPageSection<TPlugin>> Build<TPlugin>(IEnumerable<TPlugin> plugins, Func<TPlugin, string> titleOf) where TPlugin : IPluginMetadata
{
var titleComparer = NameComparer;
return plugins
.SelectMany(plugin => AssistantCategoryKey.AllOf(plugin).Select(category => new SectionMember<TPlugin>(category, plugin)))
.GroupBy(member => member.Category)
.Order(Comparer<IGrouping<AssistantCategoryKey, SectionMember<TPlugin>>>.Create((left, right) => Compare(left.Key, right.Key)))
.Select(group => new AssistantPageSection<TPlugin>(group.Key, group.Select(member => member.Plugin).OrderBy(titleOf, titleComparer).ToList()))
.ToList();
}
/// <param name="sections">The sections of the assistants page.</param>
/// <typeparam name="TPlugin">The type of the plugins.</typeparam>
extension<TPlugin>(IReadOnlyList<AssistantPageSection<TPlugin>> sections)
{
/// <summary>
/// Gets the assistant plugins of one category.
/// </summary>
/// <param name="category">The category in question.</param>
/// <returns>The plugins of the category, or none when no plugin names it.</returns>
public IReadOnlyList<TPlugin> PluginsOf(AssistantCategoryKey category) => sections.FirstOrDefault(section => section.Category == category)?.Assistants ?? [];
}
/// <summary>
/// Compares names the way the user reads them: in the culture of the active language, without regard to case.
/// </summary>
private static StringComparer NameComparer => StringComparer.Create(I18N.I.Culture, ignoreCase: true);
private static int IndexOfLeading(AssistantCategoryKey category)
{
for (var index = 0; index < LEADING_CATEGORIES.Count; index++)
if (LEADING_CATEGORIES[index] == category)
return index;
return -1;
}
private static PageGroup Group(AssistantCategoryKey category)
{
if (IndexOfLeading(category) >= 0)
return PageGroup.LEADING;
if (category == TRAILING_CATEGORY)
return PageGroup.TRAILING;
return category.Category is PluginCategory.CUSTOM ? PageGroup.CUSTOM : PageGroup.OTHER;
}
}
@@ -35,7 +35,7 @@ public static class DirectChatLauncherLuaWriter
private const string FALLBACK_AUTHOR = "MindWork AI - Assistant Builder"; private const string FALLBACK_AUTHOR = "MindWork AI - Assistant Builder";
private const string FALLBACK_SUPPORT_CONTACT = "mailto:info@mindwork.ai"; private const string FALLBACK_SUPPORT_CONTACT = "mailto:info@mindwork.ai";
private const string FALLBACK_SOURCE_URL = "https://github.com/MindWorkAI/AI-Studio"; private const string FALLBACK_SOURCE_URL = "https://github.com/MindWorkAI/AI-Studio";
private const string FALLBACK_CATEGORY = nameof(PluginCategory.CORE); private const string FALLBACK_CATEGORY = nameof(PluginCategory.COMMON);
private const string FALLBACK_TARGET_GROUP = nameof(PluginTargetGroup.EVERYONE); private const string FALLBACK_TARGET_GROUP = nameof(PluginTargetGroup.EVERYONE);
// //
@@ -141,10 +141,23 @@ public static class DirectChatLauncherLuaWriter
builder.AppendLineLF($"SOURCE_URL = \"{Escape(ValueOrFallback(plugin.SourceURL, FALLBACK_SOURCE_URL))}\""); builder.AppendLineLF($"SOURCE_URL = \"{Escape(ValueOrFallback(plugin.SourceURL, FALLBACK_SOURCE_URL))}\"");
builder.AppendLineLF(); builder.AppendLineLF();
//
// CUSTOM needs its names, and the loader refuses it without them. A defective launcher which
// lost its names thus keeps its other categories, or falls back like any other:
//
var customCategories = plugin.CustomCategories.Where(name => !string.IsNullOrWhiteSpace(name)).ToList();
var categories = customCategories.Count > 0 ? plugin.Categories : plugin.Categories.Where(category => category is not PluginCategory.CUSTOM).ToList();
builder.AppendLineLF("-- The categories for the plugin:"); builder.AppendLineLF("-- The categories for the plugin:");
builder.AppendLineLF($"CATEGORIES = {WriteEnumList(plugin.Categories, FALLBACK_CATEGORY)}"); builder.AppendLineLF($"CATEGORIES = {WriteEnumList(categories, FALLBACK_CATEGORY)}");
builder.AppendLineLF(); builder.AppendLineLF();
if (customCategories.Count > 0 && categories.Contains(PluginCategory.CUSTOM))
{
builder.AppendLineLF("-- The names of the custom categories for the plugin:");
builder.AppendLineLF($"CUSTOM_CATEGORIES = {WriteStringList(customCategories, string.Empty)}");
builder.AppendLineLF();
}
builder.AppendLineLF("-- The target groups for the plugin:"); builder.AppendLineLF("-- The target groups for the plugin:");
builder.AppendLineLF($"TARGET_GROUPS = {WriteEnumList(plugin.TargetGroups, FALLBACK_TARGET_GROUP)}"); builder.AppendLineLF($"TARGET_GROUPS = {WriteEnumList(plugin.TargetGroups, FALLBACK_TARGET_GROUP)}");
builder.AppendLineLF(); builder.AppendLineLF();
@@ -15,16 +15,17 @@ namespace AIStudio.Tools.PluginSystem.Assistants;
/// <param name="SupportContact">Where users turn with questions about this plugin.</param> /// <param name="SupportContact">Where users turn with questions about this plugin.</param>
/// <param name="SourceURL">Where the plugin comes from.</param> /// <param name="SourceURL">Where the plugin comes from.</param>
/// <param name="Categories">The categories this plugin belongs to.</param> /// <param name="Categories">The categories this plugin belongs to.</param>
/// <param name="CustomCategories">The names of the custom categories, when the categories contain CUSTOM.</param>
/// <param name="TargetGroups">The target groups this plugin is meant for.</param> /// <param name="TargetGroups">The target groups this plugin is meant for.</param>
/// <param name="IsMaintained">Whether the plugin is still maintained.</param> /// <param name="IsMaintained">Whether the plugin is still maintained.</param>
/// <param name="DeprecationMessage">What users are told when the plugin is deprecated.</param> /// <param name="DeprecationMessage">What users are told when the plugin is deprecated.</param>
/// <param name="IsAssistantBuilderGenerated">Whether the Assistant Builder created this plugin.</param> /// <param name="IsAssistantBuilderGenerated">Whether the Assistant Builder created this plugin.</param>
public sealed record DirectChatLauncherPluginMetadata(Guid Id, string Version, DateTimeOffset? LastChanged, IReadOnlyList<string> Authors, string SupportContact, string SourceURL, public sealed record DirectChatLauncherPluginMetadata(Guid Id, string Version, DateTimeOffset? LastChanged, IReadOnlyList<string> Authors, string SupportContact, string SourceURL,
IReadOnlyList<PluginCategory> Categories, IReadOnlyList<PluginTargetGroup> TargetGroups, bool IsMaintained, string DeprecationMessage, bool IsAssistantBuilderGenerated) IReadOnlyList<PluginCategory> Categories, IReadOnlyList<string> CustomCategories, IReadOnlyList<PluginTargetGroup> TargetGroups, bool IsMaintained, string DeprecationMessage, bool IsAssistantBuilderGenerated)
{ {
/// <summary> /// <summary>
/// Takes the metadata of an installed launcher for the case where one is edited. /// Takes the metadata of an installed launcher for the case where one is edited.
/// </summary> /// </summary>
public static DirectChatLauncherPluginMetadata FromPlugin(PluginAssistants plugin) => new(plugin.Id, plugin.Version.ToString(), plugin.LastChanged, plugin.Authors, public static DirectChatLauncherPluginMetadata FromPlugin(PluginAssistants plugin) => new(plugin.Id, plugin.Version.ToString(), plugin.LastChanged, plugin.Authors,
plugin.SupportContact, plugin.SourceURL, plugin.Categories, plugin.TargetGroups, plugin.IsMaintained, plugin.DeprecationMessage, plugin.IsAssistantBuilderGenerated); plugin.SupportContact, plugin.SourceURL, plugin.Categories, plugin.CustomCategories, plugin.TargetGroups, plugin.IsMaintained, plugin.DeprecationMessage, plugin.IsAssistantBuilderGenerated);
} }
@@ -61,7 +61,15 @@ public interface IPluginMetadata
/// The categories of this plugin. /// The categories of this plugin.
/// </summary> /// </summary>
public PluginCategory[] Categories { get; } public PluginCategory[] Categories { get; }
/// <summary>
/// The names of the categories this plugin names itself, when its categories contain CUSTOM.
/// </summary>
/// <remarks>
/// These names come in the language of the plugin's authors, so AI Studio shows them as they are.
/// </remarks>
public string[] CustomCategories { get; }
/// <summary> /// <summary>
/// The target groups of this plugin. /// The target groups of this plugin.
/// </summary> /// </summary>
@@ -1,5 +1,7 @@
using System.Globalization; using System.Globalization;
using AIStudio.Settings;
using Lua; using Lua;
// ReSharper disable MemberCanBePrivate.Global // ReSharper disable MemberCanBePrivate.Global
@@ -74,7 +76,10 @@ public abstract partial class PluginBase : IPluginMetadata, IDisposable
/// <inheritdoc /> /// <inheritdoc />
public PluginCategory[] Categories { get; } = []; public PluginCategory[] Categories { get; } = [];
/// <inheritdoc />
public string[] CustomCategories { get; } = [];
/// <inheritdoc /> /// <inheritdoc />
public PluginTargetGroup[] TargetGroups { get; } = []; public PluginTargetGroup[] TargetGroups { get; } = [];
@@ -168,10 +173,16 @@ public abstract partial class PluginBase : IPluginMetadata, IDisposable
issues.Add(issue); issues.Add(issue);
if(this.TryInitCategories(out issue, out var categories)) if(this.TryInitCategories(out issue, out var categories))
{
this.Categories = categories; this.Categories = categories;
if(this.TryInitCustomCategories(categories, out issue, out var customCategories))
this.CustomCategories = customCategories;
else
issues.Add(issue);
}
else if(this is not NoPlugin) else if(this is not NoPlugin)
issues.Add(issue); issues.Add(issue);
if(this.TryInitTargetGroups(out issue, out var targetGroups)) if(this.TryInitTargetGroups(out issue, out var targetGroups))
this.TargetGroups = targetGroups; this.TargetGroups = targetGroups;
else if(this is not NoPlugin) else if(this is not NoPlugin)
@@ -432,10 +443,14 @@ public abstract partial class PluginBase : IPluginMetadata, IDisposable
return false; return false;
} }
//
// Only the names of categories count. Enum.TryParse would also take a number such as "1", or
// "BUSINESS, SCIENCE" as a combination of both, and turn them into some category nobody named:
//
var categoryList = new List<PluginCategory>(); var categoryList = new List<PluginCategory>();
foreach(var luaCategory in categoriesTable.GetArraySpan()) foreach(var luaCategory in categoriesTable.GetArraySpan())
if(luaCategory.TryRead<string>(out var categoryName)) if(luaCategory.TryRead<string>(out var categoryName))
if(Enum.TryParse<PluginCategory>(categoryName, out var category) && category != PluginCategory.NONE) if(PluginCategory.TryParseName(categoryName, out var category) && category != PluginCategory.NONE)
categoryList.Add(category); categoryList.Add(category);
categories = categoryList.ToArray(); categories = categoryList.ToArray();
@@ -444,7 +459,79 @@ public abstract partial class PluginBase : IPluginMetadata, IDisposable
message = string.Format(TB("The table CATEGORIES is empty. At least one category is necessary. Valid categories are: {0}."), CommonTools.GetAllEnumValues(PluginCategory.NONE)); message = string.Format(TB("The table CATEGORIES is empty. At least one category is necessary. Valid categories are: {0}."), CommonTools.GetAllEnumValues(PluginCategory.NONE));
return false; return false;
} }
message = string.Empty;
return true;
}
/// <summary>
/// Tries to read the names of the categories the plugin names itself.
/// </summary>
/// <remarks>
/// The table CUSTOM_CATEGORIES belongs to the category CUSTOM, in both directions: CUSTOM without
/// a name could not be shown anywhere, and names without CUSTOM would be a category the plugin did
/// not declare. Either way, the plugin is invalid, so that its authors notice it right away.
/// Names are trimmed, and a name which differs from an earlier one only in its case is dropped,
/// because both would end up under the same heading anyway.
/// </remarks>
/// <param name="categories">The categories the plugin declared in CATEGORIES.</param>
/// <param name="message">The error message, when the names could not be read.</param>
/// <param name="customCategories">The read names, or an empty array without CUSTOM.</param>
/// <returns>True, when the names could be read successfully.</returns>
private bool TryInitCustomCategories(PluginCategory[] categories, out string message, out string[] customCategories)
{
customCategories = [];
var isCustomDeclared = categories.Contains(PluginCategory.CUSTOM);
var customCategoriesValue = this.State.Environment["CUSTOM_CATEGORIES"];
if (customCategoriesValue.Type is LuaValueType.Nil)
{
if (isCustomDeclared)
{
message = TB("The category CUSTOM requires the table CUSTOM_CATEGORIES with at least one name.");
return false;
}
message = string.Empty;
return true;
}
if (!customCategoriesValue.TryRead<LuaTable>(out var customCategoriesTable))
{
message = TB("The table CUSTOM_CATEGORIES is using an invalid syntax. It must be a table of names.");
return false;
}
//
// We read the table by its length rather than by GetArraySpan: the span may hold empty slots
// beyond the last entry, which would read as names which are no text:
//
var names = new List<string>();
for (var index = 1; index <= customCategoriesTable.ArrayLength; index++)
{
if (!customCategoriesTable[index].TryRead<string>(out var name) || string.IsNullOrWhiteSpace(name))
{
message = TB("The table CUSTOM_CATEGORIES contains an empty name or a value which is not a text.");
return false;
}
name = name.Trim();
if (!names.Contains(name, StringComparer.OrdinalIgnoreCase))
names.Add(name);
}
if (isCustomDeclared && names.Count == 0)
{
message = TB("The category CUSTOM requires the table CUSTOM_CATEGORIES with at least one name.");
return false;
}
if (!isCustomDeclared && names.Count > 0)
{
message = TB("The table CUSTOM_CATEGORIES requires the category CUSTOM in the table CATEGORIES.");
return false;
}
customCategories = names.ToArray();
message = string.Empty; message = string.Empty;
return true; return true;
} }
@@ -464,10 +551,11 @@ public abstract partial class PluginBase : IPluginMetadata, IDisposable
return false; return false;
} }
// Only the names of target groups count, as for the categories:
var targetGroupList = new List<PluginTargetGroup>(); var targetGroupList = new List<PluginTargetGroup>();
foreach(var luaTargetGroup in targetGroupsTable.GetArraySpan()) foreach(var luaTargetGroup in targetGroupsTable.GetArraySpan())
if(luaTargetGroup.TryRead<string>(out var targetGroupName)) if(luaTargetGroup.TryRead<string>(out var targetGroupName))
if(Enum.TryParse<PluginTargetGroup>(targetGroupName, out var targetGroup) && targetGroup != PluginTargetGroup.NONE) if(PluginTargetGroup.TryParseName(targetGroupName, out var targetGroup) && targetGroup != PluginTargetGroup.NONE)
targetGroupList.Add(targetGroup); targetGroupList.Add(targetGroup);
targetGroups = targetGroupList.ToArray(); targetGroups = targetGroupList.ToArray();
@@ -30,4 +30,26 @@ public enum PluginCategory
FICTION, FICTION,
WRITING, WRITING,
CONTENT_CREATION, CONTENT_CREATION,
/// <summary>
/// Assistants for everyday tasks, which the assistants page shows under "General".
/// </summary>
/// <remarks>
/// CORE stays the category of configuration and language plugins. An assistant plugin which
/// names CORE nevertheless appears under "General" as well.
/// </remarks>
COMMON,
/// <summary>
/// Assistants which help to develop AI Studio itself, e.g., its localization.
/// </summary>
AI_STUDIO_DEVELOPMENT,
/// <summary>
/// A category the plugin names itself, see CUSTOM_CATEGORIES.
/// </summary>
/// <remarks>
/// Plugins name such categories in the language of their authors, so AI Studio cannot translate them.
/// </remarks>
CUSTOM,
} }
@@ -16,7 +16,7 @@ public static class PluginCategoryExtensions
PluginCategory.UTILITY => TB("Utility"), PluginCategory.UTILITY => TB("Utility"),
PluginCategory.SOFTWARE_DEVELOPMENT => TB("Software Development"), PluginCategory.SOFTWARE_DEVELOPMENT => TB("Software Development"),
PluginCategory.GAMING => TB("Gaming"), PluginCategory.GAMING => TB("Gaming"),
PluginCategory.EDUCATION => TB("Education"), PluginCategory.EDUCATION => TB("Learning & Reflecting"),
PluginCategory.ENTERTAINMENT => TB("Entertainment"), PluginCategory.ENTERTAINMENT => TB("Entertainment"),
PluginCategory.SOCIAL => TB("Social"), PluginCategory.SOCIAL => TB("Social"),
PluginCategory.SHOPPING => TB("Shopping"), PluginCategory.SHOPPING => TB("Shopping"),
@@ -36,6 +36,10 @@ public static class PluginCategoryExtensions
PluginCategory.FICTION => TB("Fiction"), PluginCategory.FICTION => TB("Fiction"),
PluginCategory.WRITING => TB("Writing"), PluginCategory.WRITING => TB("Writing"),
PluginCategory.CONTENT_CREATION => TB("Content Creation"), PluginCategory.CONTENT_CREATION => TB("Content Creation"),
PluginCategory.COMMON => TB("General"),
PluginCategory.AI_STUDIO_DEVELOPMENT => TB("AI Studio Development"),
PluginCategory.CUSTOM => TB("Custom category"),
_ => TB("Unknown plugin category"), _ => TB("Unknown plugin category"),
}; };
@@ -334,6 +334,14 @@ public sealed class PluginConfiguration(bool isInternal, LuaState state, PluginT
// Config: hide some assistants? // Config: hide some assistants?
ManagedConfiguration.TryProcessConfiguration(x => x.App, x => x.HiddenAssistants, this.Id, settingsTable, dryRun); ManagedConfiguration.TryProcessConfiguration(x => x.App, x => x.HiddenAssistants, this.Id, settingsTable, dryRun);
// Config: disable some categories of assistants, built-in ones and plugins alike?
ManagedConfiguration.TryProcessConfiguration(x => x.App, x => x.DisabledAssistantCategories, this.Id, settingsTable, dryRun);
ManagedConfiguration.TryProcessConfiguration(x => x.App, x => x.DisabledCustomAssistantCategories, this.Id, settingsTable, dryRun);
// Config: what happens to the assistants of categories users collapsed or hid?
ManagedConfiguration.TryProcessConfiguration(x => x.AssistantsPage, x => x.CollapsedCategoryAssistants, this.Id, settingsTable, dryRun);
ManagedConfiguration.TryProcessConfiguration(x => x.AssistantsPage, x => x.HiddenCategoryAssistants, this.Id, settingsTable, dryRun);
// Config: prohibit some providers? // Config: prohibit some providers?
ManagedConfiguration.TryProcessConfiguration(x => x.App, x => x.ProhibitedProviders, this.Id, settingsTable, dryRun); ManagedConfiguration.TryProcessConfiguration(x => x.App, x => x.ProhibitedProviders, this.Id, settingsTable, dryRun);
@@ -131,6 +131,32 @@ public static partial class PluginFactory
return wasConfigurationChanged; return wasConfigurationChanged;
} }
/// <summary>
/// Whether your organization deployed this assistant plugin itself.
/// </summary>
/// <remarks>
/// Rules of your organization which keep plugins of others away, e.g., disabled categories, never
/// apply to its own plugins. Two things prove that a plugin is one of them: it is stored below the
/// directory of a configuration plugin, or it declares DEPLOYED_USING_CONFIG_SERVER and your
/// organization approved exactly its code, e.g., when an MDM solution rolls it out. The declaration
/// alone proves nothing, because any plugin from the internet can make it. The approval alone does
/// not either: it states that a plugin is safe, not that the organization wants it.
/// </remarks>
/// <param name="plugin">The assistant plugin in question.</param>
/// <param name="approvals">The approvals of your organization, i.e., DataAssistantPluginAudit.EnterpriseApprovedPlugins.</param>
/// <returns>True when your organization deployed the plugin itself.</returns>
public static bool IsAssistantDeployedByOrganization(PluginAssistants plugin, IEnumerable<DataAssistantPluginEnterpriseApproval> approvals)
{
if (IsOrganizationConfigurationPath(plugin.PluginPath))
return true;
if (!plugin.IsManagedByConfigServer)
return false;
var pluginHash = NormalizeAssistantHash(plugin.ComputeAuditHash());
return pluginHash.Length > 0 && approvals.Any(approval => string.Equals(NormalizeAssistantHash(approval.PluginHash), pluginHash, StringComparison.Ordinal));
}
private static bool IsOrganizationDefaultActivation(Dictionary<string, DataAssistantPluginEnterpriseApproval> approvalsByHash, string pluginHash) private static bool IsOrganizationDefaultActivation(Dictionary<string, DataAssistantPluginEnterpriseApproval> approvalsByHash, string pluginHash)
=> approvalsByHash.TryGetValue(pluginHash, out var approval) && approval is { Activate: true, AllowUserOverride: true }; => approvalsByHash.TryGetValue(pluginHash, out var approval) && approval is { Activate: true, AllowUserOverride: true };
@@ -37,6 +37,9 @@ public sealed class PluginMetadata(PluginBase plugin, string localPath, bool isM
/// <inheritdoc /> /// <inheritdoc />
public PluginCategory[] Categories { get; } = plugin.Categories; public PluginCategory[] Categories { get; } = plugin.Categories;
/// <inheritdoc />
public string[] CustomCategories { get; } = plugin.CustomCategories;
/// <inheritdoc /> /// <inheritdoc />
public PluginTargetGroup[] TargetGroups { get; } = plugin.TargetGroups; public PluginTargetGroup[] TargetGroups { get; } = plugin.TargetGroups;
@@ -3,6 +3,8 @@ using System.Text.Json;
using AIStudio.Assistants.Builder; using AIStudio.Assistants.Builder;
using AIStudio.Chat; using AIStudio.Chat;
using AIStudio.Provider; using AIStudio.Provider;
using AIStudio.Settings;
using AIStudio.Settings.DataModel;
using AIStudio.Tools.PluginSystem; using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.PluginSystem.Assistants; using AIStudio.Tools.PluginSystem.Assistants;
using AIStudio.Tools.ToolCallingSystem; using AIStudio.Tools.ToolCallingSystem;
@@ -10,7 +12,7 @@ using ProviderSettings = AIStudio.Settings.Provider;
namespace AIStudio.Tools.Services; namespace AIStudio.Tools.Services;
public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry, ILogger<AssistantPluginGenerationService> logger) public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry, SettingsManager settingsManager, ILogger<AssistantPluginGenerationService> logger)
{ {
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(AssistantPluginGenerationService).Namespace, nameof(AssistantPluginGenerationService)); private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(AssistantPluginGenerationService).Namespace, nameof(AssistantPluginGenerationService));
@@ -58,7 +60,7 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
if (string.IsNullOrWhiteSpace(context)) if (string.IsNullOrWhiteSpace(context))
return DraftFailure(TA("The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now.")); return DraftFailure(TA("The Assistant-Builder was not able to read the plugin manifest and therefore cannot safely generate your assistant right now."));
var prompt = BuildAssistantDraftPrompt(request, context); var prompt = BuildAssistantDraftPrompt(request, context, settingsManager.ConfigurationData.App);
var markdown = await this.GenerateTextAsync(provider, prompt, TB("Assistant Draft"), BuildDraftSystemPrompt(), token); var markdown = await this.GenerateTextAsync(provider, prompt, TB("Assistant Draft"), BuildDraftSystemPrompt(), token);
if (string.IsNullOrWhiteSpace(markdown)) if (string.IsNullOrWhiteSpace(markdown))
return DraftFailure(TB("The draft model did not return a usable answer.")); return DraftFailure(TB("The draft model did not return a usable answer."));
@@ -121,6 +123,12 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
if (!ResponseMetadataMatchesPlugin(parsedResponse.Assistant, generatedAssistant)) if (!ResponseMetadataMatchesPlugin(parsedResponse.Assistant, generatedAssistant))
return InitialFailure(TB("The generated assistant metadata does not match the generated plugin.")); return InitialFailure(TB("The generated assistant metadata does not match the generated plugin."));
if (!ResponseCategoriesMatchPlugin(parsedResponse.Plugin, generatedAssistant))
return InitialFailure(TB("The categories of the generated assistant do not match the generated plugin."));
if (this.DescribeDisabledCategories(generatedAssistant.Categories, generatedAssistant.CustomCategories) is { Length: > 0 } disabledCategoriesIssue)
return InitialFailure(disabledCategoriesIssue);
if (this.FindUnknownToolIds(generatedAssistant) is { Count: > 0 } unknownToolIds) if (this.FindUnknownToolIds(generatedAssistant) is { Count: > 0 } unknownToolIds)
return InitialFailure(string.Format(TA("The generated assistant plugin asks for tools this AI Studio does not have: '{0}'. Please try again."), string.Join(", ", unknownToolIds))); return InitialFailure(string.Format(TA("The generated assistant plugin asks for tools this AI Studio does not have: '{0}'. Please try again."), string.Join(", ", unknownToolIds)));
@@ -151,6 +159,11 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
return InitialFailure(error.GetMessage(technicalDetails)); return InitialFailure(error.GetMessage(technicalDetails));
} }
// The answer was checked while parsing, so reading it again cannot fail:
AssistantBuilderCategories.TryRead(texts.Categories, texts.CustomCategories, out var categories, out var customCategories);
if (this.DescribeDisabledCategories(categories, customCategories) is { Length: > 0 } disabledCategoriesIssue)
return InitialFailure(disabledCategoriesIssue);
var metadata = new DirectChatLauncherPluginMetadata( var metadata = new DirectChatLauncherPluginMetadata(
request.PluginId, request.PluginId,
DEFAULT_VERSION, DEFAULT_VERSION,
@@ -158,7 +171,8 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
[DEFAULT_AUTHOR], [DEFAULT_AUTHOR],
DEFAULT_SUPPORT_CONTACT, DEFAULT_SUPPORT_CONTACT,
DEFAULT_SOURCE_URL, DEFAULT_SOURCE_URL,
[PluginCategory.CORE], categories,
customCategories,
[PluginTargetGroup.EVERYONE], [PluginTargetGroup.EVERYONE],
IsMaintained: true, IsMaintained: true,
DeprecationMessage: string.Empty, DeprecationMessage: string.Empty,
@@ -241,6 +255,12 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
if (!ResponseMetadataMatchesPlugin(parsedResponse.Assistant, revisedAssistant)) if (!ResponseMetadataMatchesPlugin(parsedResponse.Assistant, revisedAssistant))
return RevisionFailure(TB("The revised assistant metadata does not match the revised plugin.")); return RevisionFailure(TB("The revised assistant metadata does not match the revised plugin."));
if (!ResponseCategoriesMatchPlugin(parsedResponse.Plugin, revisedAssistant))
return RevisionFailure(TB("The categories of the revised assistant do not match the revised plugin."));
if (this.DescribeDisabledCategories(revisedAssistant.Categories, revisedAssistant.CustomCategories) is { Length: > 0 } disabledCategoriesIssue)
return RevisionFailure(disabledCategoriesIssue);
if (this.FindUnknownToolIds(revisedAssistant, plugin) is { Count: > 0 } unknownToolIds) if (this.FindUnknownToolIds(revisedAssistant, plugin) is { Count: > 0 } unknownToolIds)
return RevisionFailure(string.Format(TA("The revised assistant plugin asks for tools this AI Studio does not have: '{0}'. Please try again."), string.Join(", ", unknownToolIds))); return RevisionFailure(string.Format(TA("The revised assistant plugin asks for tools this AI Studio does not have: '{0}'. Please try again."), string.Join(", ", unknownToolIds)));
@@ -333,6 +353,26 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
Return exactly one JSON object. Do not wrap JSON in Markdown or code fences. Return exactly one JSON object. Do not wrap JSON in Markdown or code fences.
"""; """;
/// <summary>
/// The rule which carries the category of the approved draft into the plugin.
/// </summary>
/// <remarks>
/// The draft names the category in a fixed form, see AssistantBuilderCategories. The
/// user may have edited that line, though, so a name which is no key counts as a custom category
/// rather than a reason to give up. AI Studio checks the answer strictly afterward.
/// </remarks>
/// <param name="writesLua">True when the model writes the plugin.lua, false when it only answers with JSON fields.</param>
/// <returns>The rule as a line of a bullet list.</returns>
private static string CategoryRule(bool writesLua)
{
var keys = string.Join(", ", AssistantBuilderCategories.Offered.Select(category => Enum.GetName(category)));
var target = writesLua
? $$"""A key such as BUSINESS becomes CATEGORIES = {"BUSINESS"}. "{{AssistantBuilderCategories.CUSTOM_PREFIX}} <name>" becomes CATEGORIES = {"CUSTOM"} together with CUSTOM_CATEGORIES = {"<name>"}; write CUSTOM_CATEGORIES only then. Repeat the keys as categories and the names as custom_categories in the JSON "plugin" object."""
: $$"""A key such as BUSINESS goes into categories as ["BUSINESS"]. "{{AssistantBuilderCategories.CUSTOM_PREFIX}} <name>" goes into categories as ["CUSTOM"] and its name into custom_categories. Leave custom_categories empty otherwise.""";
return $$"""- Take the category from the "## {{TB("Category")}}" section of the approved draft. {{target}} When the section names anything else than one of these keys, treat it as the name of a custom category. The keys are: {{keys}}.""";
}
private static string BuildLauncherTextsPrompt(AssistantPluginLuaGenerationRequest request, AssistantBuilderChatLaunchRequest chatLaunch) => private static string BuildLauncherTextsPrompt(AssistantPluginLuaGenerationRequest request, AssistantBuilderChatLaunchRequest chatLaunch) =>
$$""" $$"""
Name a direct chat launcher tile for AI Studio, based on the approved draft below. Name a direct chat launcher tile for AI Studio, based on the approved draft below.
@@ -355,11 +395,14 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
"schema_version": "{{LauncherTextsResponse.SCHEMA_VERSION_VALUE}}", "schema_version": "{{LauncherTextsResponse.SCHEMA_VERSION_VALUE}}",
"plugin_name": "...", "plugin_name": "...",
"title": "...", "title": "...",
"description": "..." "description": "...",
"categories": ["..."],
"custom_categories": []
} }
Rules: Rules:
- Take plugin_name and title from the "## {{TB("Name")}}" section of the approved draft. Do not invent a different name and do not use placeholder text. - Take plugin_name and title from the "## {{TB("Name")}}" section of the approved draft. Do not invent a different name and do not use placeholder text.
{{CategoryRule(writesLua: false)}}
- Keep title short enough to read on a tile: two to four words. - Keep title short enough to read on a tile: two to four words.
- Write description as one sentence that says which chat this tile opens and what it is for. Do not describe an input form, a prompt, or a submit button, because a launcher has none. - Write description as one sentence that says which chat this tile opens and what it is for. Do not describe an input form, a prompt, or a submit button, because a launcher has none.
- Write all three texts in the language of the approved draft. - Write all three texts in the language of the approved draft.
@@ -436,7 +479,6 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
AUTHORS = {"{{DEFAULT_AUTHOR}}"} AUTHORS = {"{{DEFAULT_AUTHOR}}"}
SUPPORT_CONTACT = "{{DEFAULT_SUPPORT_CONTACT}}" SUPPORT_CONTACT = "{{DEFAULT_SUPPORT_CONTACT}}"
SOURCE_URL = "{{DEFAULT_SOURCE_URL}}" SOURCE_URL = "{{DEFAULT_SOURCE_URL}}"
CATEGORIES = {"CORE"}
TARGET_GROUPS = {"EVERYONE"} TARGET_GROUPS = {"EVERYONE"}
IS_MAINTAINED = true IS_MAINTAINED = true
DEPRECATION_MESSAGE = "" DEPRECATION_MESSAGE = ""
@@ -457,6 +499,7 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
- Generate one self-contained plugin.lua only. Do not use require(...) or depend on icon.lua, assets, or any other companion file. - Generate one self-contained plugin.lua only. Do not use require(...) or depend on icon.lua, assets, or any other companion file.
- The JSON "plugin" object describes the top-level Lua plugin metadata such as NAME, DESCRIPTION, and CATEGORIES. - The JSON "plugin" object describes the top-level Lua plugin metadata such as NAME, DESCRIPTION, and CATEGORIES.
- Take the plugin NAME and ASSISTANT.Title from the "## {{TB("Name")}}" section of the approved draft. Do not invent a different name and do not use placeholder text. - Take the plugin NAME and ASSISTANT.Title from the "## {{TB("Name")}}" section of the approved draft. Do not invent a different name and do not use placeholder text.
{{CategoryRule(writesLua: true)}}
- A null value in the request JSON means the user did not specify that detail. Never write the word "null" or a field name into the plugin. - A null value in the request JSON means the user did not specify that detail. Never write the word "null" or a field name into the plugin.
- The JSON "assistant" object describes either a form assistant or a direct chat launcher. - The JSON "assistant" object describes either a form assistant or a direct chat launcher.
- The plugin must include all required top-level metadata and the ASSISTANT table. - The plugin must include all required top-level metadata and the ASSISTANT table.
@@ -468,7 +511,7 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
"""; """;
} }
private static string BuildAssistantDraftPrompt(AssistantPluginDraftGenerationRequest request, string context) private static string BuildAssistantDraftPrompt(AssistantPluginDraftGenerationRequest request, string context, DataApp app)
{ {
var draftSections = request.ChatLaunch is null var draftSections = request.ChatLaunch is null
? $$""" ? $$"""
@@ -568,7 +611,11 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
- Treat filled optional guidance as explicit user intent. - Treat filled optional guidance as explicit user intent.
- A null value means the user did not specify that detail. Derive it yourself from the assistant description. Never write the word "null", a field name, or placeholder text into the draft. - A null value means the user did not specify that detail. Derive it yourself from the assistant description. Never write the word "null", a field name, or placeholder text into the draft.
- The "## {{TB("Name")}}" section is mandatory and must always name the assistant. Use assistant_title verbatim when it is not null. When it is null, invent a short, specific name of two to four words that says what the assistant does. - The "## {{TB("Name")}}" section is mandatory and must always name the assistant. Use assistant_title verbatim when it is not null. When it is null, invent a short, specific name of two to four words that says what the assistant does.
- The "## {{TB("Category")}}" section is mandatory and consists of exactly one line and nothing else: either one key from the "Categories" list below, spelled exactly as listed, or "{{AssistantBuilderCategories.CUSTOM_PREFIX}} " followed by the name of a category of the user's own. Use category verbatim when it is not null. When it is null, choose the one key which fits the assistant best. Never invent a custom category yourself, and never use a key which is not in the list.
{{typeRequirements}} {{typeRequirements}}
Categories:
{{AssistantBuilderCategories.ListForPrompt(app)}}
"""; """;
} }
@@ -623,6 +670,7 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
- A null value in the request JSON means that detail is not available. Never write the word "null" or a field name into the plugin. - A null value in the request JSON means that detail is not available. Never write the word "null" or a field name into the plugin.
- Keep ID = "{{plugin.Id}}" exactly. Do not create a new plugin ID. - Keep ID = "{{plugin.Id}}" exactly. Do not create a new plugin ID.
- Keep TYPE = "ASSISTANT". - Keep TYPE = "ASSISTANT".
- Keep CATEGORIES and CUSTOM_CATEGORIES unless the requested change asks for another category. CUSTOM_CATEGORIES lists the names of custom categories and belongs to the key CUSTOM in CATEGORIES only. Repeat the keys as categories and the names as custom_categories in the JSON "plugin" object.
- Set LAST_CHANGED = "{{NowAsLastChanged}}" right after VERSION, replacing any earlier value. - Set LAST_CHANGED = "{{NowAsLastChanged}}" right after VERSION, replacing any earlier value.
- Keep the assistant locally managed. DEPLOYED_USING_CONFIG_SERVER must not be true. - Keep the assistant locally managed. DEPLOYED_USING_CONFIG_SERVER must not be true.
{{builderMetadataRule}} {{builderMetadataRule}}
@@ -809,6 +857,45 @@ public sealed class AssistantPluginGenerationService(ToolRegistry toolRegistry,
requested is not null && actual is not null && requested is not null && actual is not null &&
requested.ToHashSet(StringComparer.Ordinal).SetEquals(actual); requested.ToHashSet(StringComparer.Ordinal).SetEquals(actual);
/// <summary>
/// Whether the categories of the answer are the ones the plugin states.
/// </summary>
/// <remarks>
/// The loader drops what it does not know from CATEGORIES, so a plugin.lua with a misspelled key may
/// still load with fewer categories than the model meant. Comparing it with the strictly checked
/// JSON catches that.
/// </remarks>
/// <param name="metadata">The plugin metadata of the answer.</param>
/// <param name="assistant">The plugin as AI Studio loaded it.</param>
/// <returns>True when both name the same categories.</returns>
private static bool ResponseCategoriesMatchPlugin(AssistantBuilderPluginMetadata? metadata, PluginAssistants assistant) =>
metadata is not null &&
AssistantBuilderCategories.TryRead(metadata.Categories, metadata.CustomCategories, out var categories, out var customCategories) &&
AssistantBuilderCategories.MatchPlugin(assistant, categories, customCategories);
/// <summary>
/// Describes the categories of a new or revised assistant which your organization disabled.
/// </summary>
/// <remarks>
/// The draft offers the model only the categories which are not disabled, but the user may edit the
/// draft, and a revision keeps the categories a plugin had before. See
/// AssistantBuilderCategories.FindDisabled.
/// </remarks>
/// <param name="categories">The categories of the assistant.</param>
/// <param name="customCategories">The names of its custom categories.</param>
/// <returns>The message for the user, or an empty string when your organization disabled none of the categories.</returns>
private string DescribeDisabledCategories(IEnumerable<PluginCategory> categories, IEnumerable<string> customCategories)
{
var disabledCategories = AssistantBuilderCategories.FindDisabled(settingsManager.ConfigurationData.App, categories, customCategories);
return disabledCategories.Count switch
{
0 => string.Empty,
1 => string.Format(TA("Your organization disabled the category '{0}'. Please choose another category for your assistant."), disabledCategories[0].Name),
_ => string.Format(TA("Your organization disabled these categories of your assistant: {0}. Please choose other categories."), string.Join(", ", disabledCategories.Select(category => category.Name))),
};
}
private static bool ResponseMetadataMatchesPlugin(AssistantBuilderAssistantMetadata? metadata, PluginAssistants assistant) private static bool ResponseMetadataMatchesPlugin(AssistantBuilderAssistantMetadata? metadata, PluginAssistants assistant)
{ {
// //
@@ -16,6 +16,10 @@ public sealed class DirectChatService(SettingsManager settingsManager, DataSourc
public async Task<DirectChatStartResult> TryCreateAssistantChatAsync(PluginAssistants assistantPlugin) public async Task<DirectChatStartResult> TryCreateAssistantChatAsync(PluginAssistants assistantPlugin)
{ {
// Every way to a launcher leads through here, the one from the Assistant Builder included:
if (settingsManager.IsDisabledByItsCategories(assistantPlugin))
return new(null, TA("Your organization disabled the categories of this assistant."));
if (assistantPlugin.ChatLaunchConfiguration is not { } launchConfiguration) if (assistantPlugin.ChatLaunchConfiguration is not { } launchConfiguration)
return new(null, TB("The assistant plugin does not contain a valid chat launch configuration.")); return new(null, TB("The assistant plugin does not contain a valid chat launch configuration."));
@@ -3,6 +3,8 @@
- Added Lucide icons to assistant plugins: name an icon as `lucide:` followed by its name on lucide.dev, such as `lucide:house`. The names of MudBlazor icons keep working, so existing plugins need no change. - Added Lucide icons to assistant plugins: name an icon as `lucide:` followed by its name on lucide.dev, such as `lucide:house`. The names of MudBlazor icons keep working, so existing plugins need no change.
- Added the choice whether AI Studio addresses you formally or informally, in languages which have both forms, such as German with "Sie" and "du". You find the option "Form of address" in the app settings, right below the language. The chats of the BeyondFacts Lab address you the same way. - Added the choice whether AI Studio addresses you formally or informally, in languages which have both forms, such as German with "Sie" and "du". You find the option "Form of address" in the app settings, right below the language. The chats of the BeyondFacts Lab address you the same way.
- Added the form of address to configuration plugins, so that organizations can preset or lock whether AI Studio addresses their users formally or informally. - Added the form of address to configuration plugins, so that organizations can preset or lock whether AI Studio addresses their users formally or informally.
- Added the option for organizations to disable categories of assistants, such as entertainment, through configuration plugins. Assistant plugins which an organization deployed itself stay available.
- Added custom categories to assistant plugins: a plugin which fits none of the categories of AI Studio can name its own. AI Studio shows these names as the plugin writes them, in every language.
- Added the Model Comparison assistant, which shows you which of two models helps you better. You compare them blindly, without knowing which model wrote which answer: with the same request sent to both, or while you work on your own tasks over days or weeks. Charts show you which model wins, and a judge model can give you a second opinion based on your own expectations. You find the assistant in the category "General". Thanks, Dominic Neuburg (`donework`), for this contribution. - Added the Model Comparison assistant, which shows you which of two models helps you better. You compare them blindly, without knowing which model wrote which answer: with the same request sent to both, or while you work on your own tasks over days or weeks. Charts show you which model wins, and a judge model can give you a second opinion based on your own expectations. You find the assistant in the category "General". Thanks, Dominic Neuburg (`donework`), for this contribution.
- Improved how well the AI remembers what it looked up in a chat: for its earlier answers, it now knows which web pages it read, which searches it ran, and which sources it used. When you ask a follow-up question, it can read the page again instead of claiming that it never read it. - Improved how well the AI remembers what it looked up in a chat: for its earlier answers, it now knows which web pages it read, which searches it ran, and which sources it used. When you ask a follow-up question, it can read the page again instead of claiming that it never read it.
- Improved follow-up questions about web pages which a tool found, such as the results of a web search: the Read Web Page tool may read these pages again later in the same chat, also after you restart AI Studio and also when it may otherwise read only addresses which stand in the chat. - Improved follow-up questions about web pages which a tool found, such as the results of a web search: the Read Web Page tool may read these pages again later in the same chat, also after you restart AI Studio and also when it may otherwise read only addresses which stand in the chat.
@@ -10,7 +12,12 @@
- Improved the descriptions at the top of all assistants: long words are now hyphenated, so that the justified text shows fewer large gaps. - Improved the descriptions at the top of all assistants: long words are now hyphenated, so that the justified text shows fewer large gaps.
- Improved how AI Studio saves your settings and the projects of the Visual Briefing assistant: it now waits until the data has reached the disk before it replaces the previous version, so that a power failure while saving is far less likely to damage them. - Improved how AI Studio saves your settings and the projects of the Visual Briefing assistant: it now waits until the data has reached the disk before it replaces the previous version, so that a power failure while saving is far less likely to damage them.
- Improved how AI Studio saves chats: if AI Studio crashes while saving a chat, the chat keeps its previous state instead of becoming unreadable. - Improved how AI Studio saves chats: if AI Studio crashes while saving a chat, the chat keeps its previous state instead of becoming unreadable.
- Improved the assistants page: you can collapse a category with a click on its heading, and AI Studio remembers it.
- Improved the assistants page: you can hide a category you do not need with the eye next to its heading. The gear next to the heading of the page shows it again.
- Improved the "Send to ..." menu: it no longer offers the assistants of categories you hid on the assistants page. With the gear on the assistants page, you decide what happens to the assistants of hidden and collapsed categories.
- Changed the icons of AI Studio to Lucide, an open-source icon set. All icons now share one style, and each feature shows the same icon wherever you meet it. - Changed the icons of AI Studio to Lucide, an open-source icon set. All icons now share one style, and each feature shows the same icon wherever you meet it.
- Fixed assistant plugins, which all appeared under "Installed Assistants" on the assistants page. Each one now appears under its own category, such as "Business", next to the built-in assistants of that category.
- Fixed the Assistant Builder, which ignored the category you chose for your assistant. You can now also name a category of your own.
- Fixed assistant plugins which wrote numbers and dates according to the region settings of your computer. Plugins now show them the same way on every computer: a decimal number such as `12.5` keeps its point, and the `DateTime` helper writes the names of months in English. - Fixed assistant plugins which wrote numbers and dates according to the region settings of your computer. Plugins now show them the same way on every computer: a decimal number such as `12.5` keeps its point, and the `DateTime` helper writes the names of months in English.
- Fixed the translation, agenda, and e-mail assistants checking your input again and again in the background, about once a second, even while you weren't typing. - Fixed the translation, agenda, and e-mail assistants checking your input again and again in the background, about once a second, even while you weren't typing.
- Fixed the translation assistant complaining about a missing text before you had typed anything, e.g., right after you switched the live translation on or off. - Fixed the translation assistant complaining about a missing text before you had typed anything, e.g., right after you switched the live translation on or off.
@@ -0,0 +1,61 @@
using AIStudio.Tools;
using AIStudio.Tools.PluginSystem;
using ComponentKind = AIStudio.Tools.Components;
namespace AIStudio.Tests.Assistants;
/// <summary>
/// Checks that every built-in assistant states its category.
/// </summary>
/// <remarks>
/// The assistants page and everything which offers assistants elsewhere decide by the category, e.g.,
/// when an organization disables one. An assistant without a category would escape such a decision, so a
/// new assistant has to get one, see Components.Category.
/// </remarks>
[TestFixture]
public sealed class AssistantCategoryOfComponentsTests
{
/// <summary>
/// The components which are no assistant of their own.
/// </summary>
private static readonly ComponentKind[] NO_ASSISTANTS =
[
ComponentKind.NONE,
ComponentKind.CHAT,
ComponentKind.DYNAMIC_ASSISTANT,
ComponentKind.WRITER,
ComponentKind.APP_SETTINGS,
ComponentKind.AGENT_TEXT_CONTENT_CLEANER,
ComponentKind.AGENT_DATA_SOURCE_SELECTION,
ComponentKind.AGENT_RETRIEVAL_CONTEXT_VALIDATION,
ComponentKind.AGENT_ASSISTANT_PLUGIN_AUDIT,
];
[Test]
public void EveryAssistantHasACategory()
{
var withoutCategory = Enum.GetValues<ComponentKind>()
.Where(component => !NO_ASSISTANTS.Contains(component))
.Where(component => component.Category is PluginCategory.NONE)
.ToList();
Assert.That(withoutCategory, Is.Empty, "Give each of these assistants its category in Components.Category, or list it here when it is no assistant.");
}
[Test]
public void NoAssistantUsesTheCategoryOfConfigurationPlugins()
{
var withCore = Enum.GetValues<ComponentKind>().Where(component => component.Category is PluginCategory.CORE or PluginCategory.CUSTOM).ToList();
Assert.That(withCore, Is.Empty, "Built-in assistants use COMMON instead of CORE, and never a custom category.");
}
[Test]
public void TheComponentsWhichAreNoAssistantHaveNoCategory()
{
var withCategory = NO_ASSISTANTS.Where(component => component.Category is not PluginCategory.NONE).ToList();
Assert.That(withCategory, Is.Empty);
}
}
@@ -0,0 +1,106 @@
using AIStudio.Settings.DataModel;
using AIStudio.Tools;
using AIStudio.Tools.PluginSystem;
namespace AIStudio.Tests.Assistants;
/// <summary>
/// Checks how the categories users collapse or hide on the assistants page affect their assistants.
/// </summary>
/// <remarks>
/// Collapsing a category is about a tidy page, so its assistants stay in the "Send to ..." menu by default.
/// Hiding one says that its assistants do not matter, so they disappear there as well by default. Two
/// options change both, and a hidden category follows its option even when it is collapsed, too.
/// </remarks>
[TestFixture]
public sealed class AssistantCategoryPageSettingsTests
{
private static readonly AssistantCategoryKey BUSINESS = new(PluginCategory.BUSINESS);
private static readonly AssistantCategoryKey SOFTWARE_DEVELOPMENT = new(PluginCategory.SOFTWARE_DEVELOPMENT);
[Test]
public void TheDefaultsKeepCollapsedCategoriesAndDropHiddenOnes()
{
var page = new DataAssistantsPage();
page.SetCategoryCollapsed(BUSINESS, true);
page.SetCategoryHidden(SOFTWARE_DEVELOPMENT, true);
using (Assert.EnterMultipleScope())
{
Assert.That(page.IsCategoryOffering(BUSINESS), Is.True);
Assert.That(page.IsCategoryOffering(SOFTWARE_DEVELOPMENT), Is.False);
Assert.That(page.IsCategoryOffering(new AssistantCategoryKey(PluginCategory.EDUCATION)), Is.True, "A category the user left alone offers its assistants.");
}
}
[Test]
public void TheOptionsTurnBothAround()
{
var page = new DataAssistantsPage
{
CollapsedCategoryAssistants = AssistantOfferBehavior.TREAT_AS_ABSENT,
HiddenCategoryAssistants = AssistantOfferBehavior.KEEP_OFFERING,
};
page.SetCategoryCollapsed(BUSINESS, true);
page.SetCategoryHidden(SOFTWARE_DEVELOPMENT, true);
using (Assert.EnterMultipleScope())
{
Assert.That(page.IsCategoryOffering(BUSINESS), Is.False);
Assert.That(page.IsCategoryOffering(SOFTWARE_DEVELOPMENT), Is.True);
}
}
[Test]
public void AHiddenCategoryFollowsTheOptionForHiddenOnesAlsoWhenItIsCollapsed()
{
var page = new DataAssistantsPage();
page.SetCategoryCollapsed(BUSINESS, true);
page.SetCategoryHidden(BUSINESS, true);
Assert.That(page.IsCategoryOffering(BUSINESS), Is.False);
}
[Test]
public void TheDefaultsOfTheSettingsAreTheOnesOfThePlan()
{
var page = new Data().AssistantsPage;
using (Assert.EnterMultipleScope())
{
Assert.That(page.CollapsedCategoryAssistants, Is.EqualTo(AssistantOfferBehavior.KEEP_OFFERING));
Assert.That(page.HiddenCategoryAssistants, Is.EqualTo(AssistantOfferBehavior.TREAT_AS_ABSENT));
}
}
[Test]
public void CoreIsStoredAsCommon()
{
var page = new DataAssistantsPage();
page.SetCategoryHidden(new AssistantCategoryKey(PluginCategory.CORE), true);
using (Assert.EnterMultipleScope())
{
Assert.That(page.HiddenCategories, Is.EquivalentTo(new[] { PluginCategory.COMMON }));
Assert.That(page.IsCategoryHidden(new AssistantCategoryKey(PluginCategory.COMMON)), Is.True);
}
}
[Test]
public void CustomCategoriesAreComparedWithoutRegardToCase()
{
var page = new DataAssistantsPage();
page.SetCategoryCollapsed(new AssistantCategoryKey(PluginCategory.CUSTOM, "Space Travel"), true);
page.SetCategoryCollapsed(new AssistantCategoryKey(PluginCategory.CUSTOM, "space travel"), true);
var isCollapsedInAnotherCase = page.IsCategoryCollapsed(new AssistantCategoryKey(PluginCategory.CUSTOM, "SPACE TRAVEL"));
page.SetCategoryCollapsed(new AssistantCategoryKey(PluginCategory.CUSTOM, "SPACE TRAVEL"), false);
using (Assert.EnterMultipleScope())
{
Assert.That(isCollapsedInAnotherCase, Is.True);
Assert.That(page.CollapsedCustomCategories, Is.Empty, "Expanding a category removes every spelling of it.");
}
}
}
@@ -0,0 +1,176 @@
using AIStudio.Settings;
using AIStudio.Settings.DataModel;
using AIStudio.Tools;
using AIStudio.Tools.AssistantLaunch;
using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.PluginSystem.Assistants;
using Microsoft.Extensions.Logging.Abstractions;
using ComponentKind = AIStudio.Tools.Components;
namespace AIStudio.Tests.Assistants;
/// <summary>
/// Checks how the categories your organization disabled keep assistants away.
/// </summary>
/// <remarks>
/// Organizations disable categories such as entertainment on their devices. A built-in assistant has one
/// category, a plugin may have several and stays available while one of them is free. Plugins the
/// organization deployed itself are exempt, but only with a proof: a plugin from the internet may declare
/// whatever it likes about itself.
/// </remarks>
[TestFixture]
public sealed class AssistantCategoryRulesTests
{
private static readonly Guid PLUGIN_ID = Guid.Parse("4c8e2a6f-9d1b-4f3a-8e5c-7b2d4f6a8c0e");
private string pluginDirectory = string.Empty;
[SetUp]
public void CreatePluginDirectory()
{
this.pluginDirectory = Path.Combine(Path.GetTempPath(), $"assistant-category-rules-{Guid.NewGuid():N}");
Directory.CreateDirectory(this.pluginDirectory);
}
[TearDown]
public void DeletePluginDirectory()
{
if (Directory.Exists(this.pluginDirectory))
Directory.Delete(this.pluginDirectory, recursive: true);
}
[Test]
public void APluginOfADisabledCategoryIsDisabled()
{
var app = new DataApp { DisabledAssistantCategories = [PluginCategory.ENTERTAINMENT] };
Assert.That(app.DisablesAssistantPlugin(new FakeAssistantPlugin("Quiz", [PluginCategory.ENTERTAINMENT]), isDeployedByOrganization: false), Is.True);
}
[Test]
public void APluginStaysAvailableWhileOneOfItsCategoriesIsFree()
{
var app = new DataApp { DisabledAssistantCategories = [PluginCategory.ENTERTAINMENT] };
Assert.That(app.DisablesAssistantPlugin(new FakeAssistantPlugin("Team quiz", [PluginCategory.ENTERTAINMENT, PluginCategory.BUSINESS]), isDeployedByOrganization: false), Is.False);
}
[Test]
public void APluginYourOrganizationDeployedIsNeverDisabled()
{
var app = new DataApp { DisabledAssistantCategories = [PluginCategory.ENTERTAINMENT] };
Assert.That(app.DisablesAssistantPlugin(new FakeAssistantPlugin("Quiz", [PluginCategory.ENTERTAINMENT]), isDeployedByOrganization: true), Is.False);
}
[TestCase(PluginCategory.CORE, PluginCategory.COMMON)]
[TestCase(PluginCategory.COMMON, PluginCategory.CORE)]
public void CoreAndCommonAreOneCategory(PluginCategory disabledCategory, PluginCategory categoryOfThePlugin)
{
var app = new DataApp { DisabledAssistantCategories = [disabledCategory] };
Assert.That(app.DisablesAssistantPlugin(new FakeAssistantPlugin("Letter writer", [categoryOfThePlugin]), isDeployedByOrganization: false), Is.True, "Both share the heading \"General\", so disabling one disables the other.");
}
[Test]
public void CustomCategoriesAreComparedWithoutRegardToCase()
{
var app = new DataApp { DisabledCustomAssistantCategories = ["fun & games "] };
using (Assert.EnterMultipleScope())
{
Assert.That(app.DisablesAssistantPlugin(new FakeAssistantPlugin("Riddles", [PluginCategory.CUSTOM], ["Fun & Games"]), isDeployedByOrganization: false), Is.True);
Assert.That(app.DisablesAssistantPlugin(new FakeAssistantPlugin("Orbit planner", [PluginCategory.CUSTOM], ["Space Travel"]), isDeployedByOrganization: false), Is.False);
}
}
[Test]
public void DisablingCustomDisablesEveryCustomCategory()
{
var app = new DataApp { DisabledAssistantCategories = [PluginCategory.CUSTOM] };
using (Assert.EnterMultipleScope())
{
Assert.That(app.DisablesAssistantPlugin(new FakeAssistantPlugin("Riddles", [PluginCategory.CUSTOM], ["Fun & Games", "Space Travel"]), isDeployedByOrganization: false), Is.True);
Assert.That(app.DisablesAssistantPlugin(new FakeAssistantPlugin("Orbit planner", [PluginCategory.CUSTOM, PluginCategory.SCIENCE], ["Space Travel"]), isDeployedByOrganization: false), Is.False);
}
}
[Test]
public void ABuiltInAssistantOfADisabledCategoryIsGoneEverywhere()
{
var settingsManager = new SettingsManager(NullLogger<SettingsManager>.Instance, null!);
settingsManager.ConfigurationData.App.DisabledAssistantCategories.Add(PluginCategory.SOFTWARE_DEVELOPMENT);
var destinations = AssistantLaunchService.SelectDestinations(ComponentKind.CHAT, component => settingsManager.IsAssistantVisible(component, withLogging: false));
using (Assert.EnterMultipleScope())
{
Assert.That(settingsManager.IsAssistantVisible(ComponentKind.CODING_ASSISTANT, withLogging: false), Is.False);
Assert.That(settingsManager.IsAssistantVisible(ComponentKind.ERI_ASSISTANT, withLogging: false), Is.False);
Assert.That(settingsManager.IsAssistantVisible(ComponentKind.EMAIL_ASSISTANT, withLogging: false), Is.True);
Assert.That(destinations, Does.Not.Contain(ComponentKind.CODING_ASSISTANT), "An assistant of a disabled category must not be offered in \"Send to …\" either.");
Assert.That(destinations, Does.Contain(ComponentKind.EMAIL_ASSISTANT));
}
}
[TestCase(true, true, ExpectedResult = true, TestName = "TheDeclarationWithAnApprovalOfItsCodeIsAProof")]
[TestCase(true, false, ExpectedResult = false, TestName = "TheDeclarationAloneIsNoProof")]
[TestCase(false, true, ExpectedResult = false, TestName = "AnApprovalWithoutTheDeclarationIsNoProof")]
public async Task<bool> APluginOutsideTheDirectoryOfYourOrganizationNeedsAProof(bool declaresDeployment, bool isApproved)
{
using var plugin = await this.LoadLauncherAsync([PluginCategory.ENTERTAINMENT], declaresDeployment);
DataAssistantPluginEnterpriseApproval[] approvals = isApproved ? [ApprovalOf(plugin)] : [];
return PluginFactory.IsAssistantDeployedByOrganization(plugin, approvals);
}
[Test]
public async Task APluginYourOrganizationRolledOutStaysAvailableInADisabledCategory()
{
var settingsManager = new SettingsManager(NullLogger<SettingsManager>.Instance, null!);
settingsManager.ConfigurationData.App.DisabledAssistantCategories.Add(PluginCategory.ENTERTAINMENT);
using var plugin = await this.LoadLauncherAsync([PluginCategory.ENTERTAINMENT], declaresDeployment: true);
var isDisabledWithoutApproval = settingsManager.IsDisabledByItsCategories(plugin);
settingsManager.ConfigurationData.AssistantPluginAudit.EnterpriseApprovedPlugins.Add(ApprovalOf(plugin));
var isDisabledWithApproval = settingsManager.IsDisabledByItsCategories(plugin);
using (Assert.EnterMultipleScope())
{
Assert.That(isDisabledWithoutApproval, Is.True);
Assert.That(isDisabledWithApproval, Is.False);
}
}
/// <summary>
/// Approves exactly the code of a plugin, spelled in lowercase, as an organization may write the hash.
/// </summary>
private static DataAssistantPluginEnterpriseApproval ApprovalOf(PluginAssistants plugin) => new() { PluginHash = plugin.ComputeAuditHash().ToLowerInvariant() };
/// <summary>
/// Writes a direct chat launcher into the plugin directory of the test and loads it from there, so that
/// its code has a hash.
/// </summary>
private async Task<PluginAssistants> LoadLauncherAsync(PluginCategory[] categories, bool declaresDeployment)
{
var metadata = new DirectChatLauncherPluginMetadata(PLUGIN_ID, "1.0.0", null, ["MindWork AI"], "MindWork AI", "https://github.com/MindWorkAI/AI-Studio",
categories, [], [PluginTargetGroup.EVERYONE], IsMaintained: true, DeprecationMessage: string.Empty, IsAssistantBuilderGenerated: false);
var definition = new DirectChatLauncherDefinition("Launcher for the tests", "Launcher for the tests", "Opens a disappearing chat.", new AssistantChatLaunchConfiguration(string.Empty, null, null, null, null, null));
var lua = DirectChatLauncherLuaWriter.Write(metadata, definition);
if (declaresDeployment)
lua = lua.Replace("DEPLOYED_USING_CONFIG_SERVER = false", "DEPLOYED_USING_CONFIG_SERVER = true", StringComparison.Ordinal);
await File.WriteAllTextAsync(Path.Combine(this.pluginDirectory, "plugin.lua"), lua);
var plugin = await PluginFactory.Load(this.pluginDirectory, lua);
Assert.That(plugin, Is.InstanceOf<PluginAssistants>(), string.Join(" ", plugin.Issues));
var assistantPlugin = (PluginAssistants)plugin;
assistantPlugin.PluginPath = this.pluginDirectory;
Assert.That(assistantPlugin.IsManagedByConfigServer, Is.EqualTo(declaresDeployment), "The test needs the declaration it asked for.");
return assistantPlugin;
}
}
@@ -0,0 +1,135 @@
using AIStudio.Settings.DataModel;
using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.PluginSystem.Assistants;
namespace AIStudio.Tests.Assistants;
/// <summary>
/// Checks how the assistants page groups the assistant plugins by their categories.
/// </summary>
/// <remarks>
/// Every assistant plugin appears under the categories it names, next to the built-in assistants of
/// the same category. The built-in sections lead the page in the order users know, the categories only
/// plugins name follow, and "AI Studio Development" closes the page.
/// </remarks>
[TestFixture]
public sealed class AssistantPageSectionsTests
{
[Test]
public void APluginWithCoreAppearsUnderGeneral()
{
var sections = Build(new FakeAssistantPlugin("Old builder assistant", [PluginCategory.CORE]));
Assert.That(sections.Select(section => section.Category), Is.EqualTo(new[] { new AssistantCategoryKey(PluginCategory.COMMON) }));
}
[Test]
public void APluginAppearsUnderEachOfItsCategories()
{
var plugin = new FakeAssistantPlugin("Market research", [PluginCategory.BUSINESS, PluginCategory.SCIENCE]);
var sections = Build(plugin);
using (Assert.EnterMultipleScope())
{
Assert.That(sections.PluginsOf(new AssistantCategoryKey(PluginCategory.BUSINESS)), Is.EqualTo(new[] { plugin }));
Assert.That(sections.PluginsOf(new AssistantCategoryKey(PluginCategory.SCIENCE)), Is.EqualTo(new[] { plugin }));
}
}
[Test]
public void APluginAppearsOncePerSection()
{
var plugin = new FakeAssistantPlugin("Everyday helper", [PluginCategory.CORE, PluginCategory.COMMON]);
var sections = Build(plugin);
using (Assert.EnterMultipleScope())
{
Assert.That(sections, Has.Count.EqualTo(1));
Assert.That(sections[0].Assistants, Is.EqualTo(new[] { plugin }), "CORE and COMMON share the section \"General\".");
}
}
[Test]
public void CustomCategoriesWhichDifferOnlyInTheirCaseShareOneSection()
{
var first = new FakeAssistantPlugin("Orbit planner", [PluginCategory.CUSTOM], ["Space Travel"]);
var second = new FakeAssistantPlugin("Launch checklist", [PluginCategory.CUSTOM], ["space travel"]);
var sections = Build(first, second);
using (Assert.EnterMultipleScope())
{
Assert.That(sections, Has.Count.EqualTo(1));
Assert.That(sections[0].Category.Name, Is.EqualTo("Space Travel"), "The section keeps the spelling it met first.");
Assert.That(sections[0].Assistants, Is.EqualTo(new[] { second, first }), "The plugins of a section are sorted by title.");
}
}
[Test]
public void TheSectionsFollowTheOrderOfThePage()
{
var sections = Build(
new FakeAssistantPlugin("Log helper", [PluginCategory.AI_STUDIO_DEVELOPMENT]),
new FakeAssistantPlugin("Orbit planner", [PluginCategory.CUSTOM], ["Space Travel"]),
new FakeAssistantPlugin("Quiz", [PluginCategory.ENTERTAINMENT]),
new FakeAssistantPlugin("Code reviewer", [PluginCategory.SOFTWARE_DEVELOPMENT]),
new FakeAssistantPlugin("Lab notes", [PluginCategory.SCIENCE]),
new FakeAssistantPlugin("Flash cards", [PluginCategory.EDUCATION]),
new FakeAssistantPlugin("Invoice checker", [PluginCategory.BUSINESS]),
new FakeAssistantPlugin("Letter writer", [PluginCategory.COMMON]),
new FakeAssistantPlugin("Deep space notes", [PluginCategory.CUSTOM], ["Deep Space"]));
var expected = new[]
{
new AssistantCategoryKey(PluginCategory.COMMON),
new AssistantCategoryKey(PluginCategory.BUSINESS),
new AssistantCategoryKey(PluginCategory.EDUCATION),
new AssistantCategoryKey(PluginCategory.SOFTWARE_DEVELOPMENT),
new AssistantCategoryKey(PluginCategory.ENTERTAINMENT),
new AssistantCategoryKey(PluginCategory.SCIENCE),
new AssistantCategoryKey(PluginCategory.CUSTOM, "Deep Space"),
new AssistantCategoryKey(PluginCategory.CUSTOM, "Space Travel"),
new AssistantCategoryKey(PluginCategory.AI_STUDIO_DEVELOPMENT),
};
Assert.That(sections.Select(section => section.Category), Is.EqualTo(expected));
}
[Test]
public void OnlyTheSectionsOfBuiltInAssistantsCountAsBuiltIn()
{
using (Assert.EnterMultipleScope())
{
Assert.That(AssistantPageSections.IsBuiltIn(new AssistantCategoryKey(PluginCategory.CORE)), Is.True);
Assert.That(AssistantPageSections.IsBuiltIn(new AssistantCategoryKey(PluginCategory.AI_STUDIO_DEVELOPMENT)), Is.True);
Assert.That(AssistantPageSections.IsBuiltIn(new AssistantCategoryKey(PluginCategory.SCIENCE)), Is.False);
Assert.That(AssistantPageSections.IsBuiltIn(new AssistantCategoryKey(PluginCategory.CUSTOM, "General")), Is.False, "A custom category never takes the place of a category of AI Studio, whatever its name.");
}
}
[Test]
public void TheSettingsOfferTheShownAndTheHiddenCategoriesInTheOrderOfThePage()
{
var app = new DataApp { DisabledAssistantCategories = [PluginCategory.ENTERTAINMENT] };
var page = new DataAssistantsPage
{
HiddenCategories = [PluginCategory.SCIENCE, PluginCategory.ENTERTAINMENT, PluginCategory.BUSINESS],
HiddenCustomCategories = ["space travel"],
};
var categories = AssistantPageSections.SelectForSettings(
[new AssistantCategoryKey(PluginCategory.AI_STUDIO_DEVELOPMENT), new AssistantCategoryKey(PluginCategory.CORE), new AssistantCategoryKey(PluginCategory.CUSTOM, "Space Travel")],
app,
page);
Assert.That(categories, Is.EqualTo(new[]
{
new AssistantCategoryKey(PluginCategory.COMMON),
new AssistantCategoryKey(PluginCategory.BUSINESS),
new AssistantCategoryKey(PluginCategory.SCIENCE),
new AssistantCategoryKey(PluginCategory.CUSTOM, "Space Travel"),
new AssistantCategoryKey(PluginCategory.AI_STUDIO_DEVELOPMENT),
}), "A category your organization disabled gets no switch, since no switch of the user brings it back.");
}
private static IReadOnlyList<AssistantPageSection<FakeAssistantPlugin>> Build(params FakeAssistantPlugin[] plugins) => AssistantPageSections.Build(plugins, plugin => plugin.Name);
}
@@ -0,0 +1,198 @@
using System.Text.Json;
using AIStudio.Assistants.Builder;
using AIStudio.Settings.DataModel;
using AIStudio.Tools;
using AIStudio.Tools.PluginSystem;
namespace AIStudio.Tests.Assistants.Builder;
/// <summary>
/// Checks which categories the Assistant Builder offers and how its draft names them.
/// </summary>
/// <remarks>
/// The builder offers every category of AI Studio but CORE, which belongs to configuration and language
/// plugins, in the order of the assistants page. The draft names the choice in a fixed form, so that the
/// step which writes the plugin can take it over.
/// </remarks>
[TestFixture]
public sealed class AssistantBuilderCategoriesTests
{
[Test]
public void TheBuilderOffersEveryCategoryButCore()
{
var expected = Enum.GetValues<PluginCategory>().Where(category => category is not (PluginCategory.NONE or PluginCategory.CORE or PluginCategory.CUSTOM));
Assert.That(AssistantBuilderCategories.Offered, Is.EquivalentTo(expected));
}
[Test]
public void TheCategoriesFollowTheOrderOfTheAssistantsPage()
{
var offered = AssistantBuilderCategories.Offered;
using (Assert.EnterMultipleScope())
{
Assert.That(offered.Take(4), Is.EqualTo(new[] { PluginCategory.COMMON, PluginCategory.BUSINESS, PluginCategory.EDUCATION, PluginCategory.SOFTWARE_DEVELOPMENT }));
Assert.That(offered[^1], Is.EqualTo(PluginCategory.AI_STUDIO_DEVELOPMENT));
}
}
[TestCase(PluginCategory.NONE, "", "")]
[TestCase(PluginCategory.BUSINESS, "", "BUSINESS")]
[TestCase(PluginCategory.SOFTWARE_DEVELOPMENT, "ignored", "SOFTWARE_DEVELOPMENT")]
[TestCase(PluginCategory.CUSTOM, " Space Travel ", "CUSTOM: Space Travel")]
public void TheDraftNamesTheCategoryInItsFixedForm(PluginCategory category, string customName, string expected)
{
Assert.That(AssistantBuilderCategories.FormatForDraft(category, customName), Is.EqualTo(expected));
}
[Test]
public void ThePromptListsEveryOfferedKey()
{
var lines = AssistantBuilderCategories.ListForPrompt(new DataApp()).Split('\n');
Assert.That(lines.Select(line => line.Split(':')[0].TrimStart('-', ' ')), Is.EqualTo(AssistantBuilderCategories.Offered.Select(category => Enum.GetName(category))));
}
[Test]
public void TheBuilderLeavesOutWhatYourOrganizationDisabled()
{
var app = new DataApp { DisabledAssistantCategories = [PluginCategory.ENTERTAINMENT, PluginCategory.CORE, PluginCategory.CUSTOM] };
var offered = AssistantBuilderCategories.OfferedUnder(app);
var listedKeys = AssistantBuilderCategories.ListForPrompt(app).Split('\n').Select(line => line.Split(':')[0].TrimStart('-', ' '));
using (Assert.EnterMultipleScope())
{
Assert.That(offered, Does.Not.Contain(PluginCategory.ENTERTAINMENT));
Assert.That(offered, Does.Not.Contain(PluginCategory.COMMON), "CORE and COMMON are one category.");
Assert.That(offered, Does.Contain(PluginCategory.BUSINESS));
Assert.That(listedKeys, Is.EqualTo(offered.Select(category => Enum.GetName(category))), "The model must not choose a disabled category either.");
Assert.That(AssistantBuilderCategories.IsCustomOfferedUnder(app), Is.False);
Assert.That(AssistantBuilderCategories.IsCustomOfferedUnder(new DataApp()), Is.True);
}
}
[Test]
public void EveryDisabledCategoryOfAnAssistantIsFound()
{
var app = new DataApp
{
DisabledAssistantCategories = [PluginCategory.ENTERTAINMENT],
DisabledCustomAssistantCategories = ["fun & games"],
};
var disabled = AssistantBuilderCategories.FindDisabled(app, [PluginCategory.ENTERTAINMENT, PluginCategory.BUSINESS, PluginCategory.CUSTOM], ["Fun & Games", "Space Travel"]);
Assert.That(disabled, Is.EqualTo(new[] { new AssistantCategoryKey(PluginCategory.ENTERTAINMENT), new AssistantCategoryKey(PluginCategory.CUSTOM, "Fun & Games") }),
"The builder refuses a disabled category even when another one is free: the user would build something the organization does not want.");
}
[Test]
public void ValidCategoriesAreRead()
{
var isRead = AssistantBuilderCategories.TryRead(["BUSINESS", "CUSTOM", "BUSINESS"], [" Space Travel ", "space travel"], out var categories, out var customCategories);
using (Assert.EnterMultipleScope())
{
Assert.That(isRead, Is.True);
Assert.That(categories, Is.EqualTo(new[] { PluginCategory.BUSINESS, PluginCategory.CUSTOM }));
Assert.That(customCategories, Is.EqualTo(new[] { "Space Travel" }));
}
}
[Test]
public void CoreStaysValidForRevisionsOfOlderPlugins()
{
Assert.That(AssistantBuilderCategories.TryRead(["CORE"], [], out _, out _), Is.True);
}
[TestCase(new string[0], new string[0], TestName = "NoCategory")]
[TestCase(new[] { "business" }, new string[0], TestName = "AnotherSpelling")]
[TestCase(new[] { "1" }, new string[0], TestName = "ANumber")]
[TestCase(new[] { "NONE" }, new string[0], TestName = "None")]
[TestCase(new[] { "BUSINESS, SCIENCE" }, new string[0], TestName = "TwoKeysInOne")]
[TestCase(new[] { "MARKETING" }, new string[0], TestName = "AnUnknownKey")]
[TestCase(new[] { "CUSTOM" }, new string[0], TestName = "CustomWithoutAName")]
[TestCase(new[] { "BUSINESS" }, new[] { "Space Travel" }, TestName = "ANameWithoutCustom")]
[TestCase(new[] { "CUSTOM" }, new[] { " " }, TestName = "AnEmptyName")]
public void AnythingTheLoaderWouldNotAcceptIsRefused(string[] categoryNames, string[] customNames)
{
Assert.That(AssistantBuilderCategories.TryRead(categoryNames, customNames, out _, out _), Is.False);
}
[Test]
public async Task TheSchemaListsExactlyTheCategoriesOfAIStudio()
{
var schema = await AppResources.ReadTextAsync("Assistants/Builder/AssistantBuilderLuaResponse.schema.json");
using var document = JsonDocument.Parse(schema);
var keys = document.RootElement.GetProperty("properties").GetProperty("plugin").GetProperty("properties").GetProperty("categories").GetProperty("items").GetProperty("enum")
.EnumerateArray()
.Select(key => key.GetString())
.ToList();
var expected = Enum.GetValues<PluginCategory>().Where(category => category is not PluginCategory.NONE).Select(category => Enum.GetName(category));
Assert.That(keys, Is.EquivalentTo(expected), "Every category of AI Studio but NONE belongs into the schema, so that a model may name it.");
}
[Test]
public void AnAnswerWithAnUnknownCategoryIsRefused()
{
var isParsed = LuaResponse.TryParse($$"""
{
"schema_version": "{{LuaResponse.SCHEMA_VERSION_VALUE}}",
"plugin": { "name": "Orbit planner", "description": "Plans orbits.", "categories": ["SPACE"] },
"assistant": { "kind": "FORM", "title": "Orbit planner", "description": "Plans orbits.", "system_prompt": "Plan orbits.", "submit_text": "Plan", "allow_ai_studio_profiles": true },
"full_lua": "ID = \"00000000-0000-0000-0000-000000000000\""
}
""", out _, out var error, out _);
using (Assert.EnterMultipleScope())
{
Assert.That(isParsed, Is.False);
Assert.That(error, Is.EqualTo(LuaResponseParseError.INVALID_CATEGORIES));
}
}
[Test]
public void ALauncherAnswerWithACustomCategoryWithoutItsNameIsRefused()
{
var isParsed = LauncherTextsResponse.TryParse($$"""
{
"schema_version": "{{LauncherTextsResponse.SCHEMA_VERSION_VALUE}}",
"plugin_name": "Weekly report",
"title": "Weekly report",
"description": "Opens the chat for the weekly report.",
"categories": ["CUSTOM"],
"custom_categories": []
}
""", out _, out var error, out _);
using (Assert.EnterMultipleScope())
{
Assert.That(isParsed, Is.False);
Assert.That(error, Is.EqualTo(LuaResponseParseError.INVALID_CATEGORIES));
}
}
[Test]
public void ALauncherAnswerWithItsCategoryIsRead()
{
var isParsed = LauncherTextsResponse.TryParse($$"""
{
"schema_version": "{{LauncherTextsResponse.SCHEMA_VERSION_VALUE}}",
"plugin_name": "Weekly report",
"title": "Weekly report",
"description": "Opens the chat for the weekly report.",
"categories": ["BUSINESS"],
"custom_categories": []
}
""", out var response, out var error, out _);
using (Assert.EnterMultipleScope())
{
Assert.That(isParsed, Is.True, error.ToString());
Assert.That(response.Categories, Is.EqualTo(new[] { "BUSINESS" }));
}
}
}
@@ -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;
}
@@ -1,5 +1,7 @@
using AIStudio.Settings.DataModel;
using AIStudio.Tools; using AIStudio.Tools;
using AIStudio.Tools.AssistantLaunch; using AIStudio.Tools.AssistantLaunch;
using AIStudio.Tools.PluginSystem;
namespace AIStudio.Tests.Tools.AssistantLaunch; namespace AIStudio.Tests.Tools.AssistantLaunch;
@@ -55,6 +57,30 @@ public sealed class AssistantLaunchServiceTests
Assert.That(destinations, Does.Not.Contain(AIStudio.Tools.Components.SLIDE_BUILDER_ASSISTANT)); Assert.That(destinations, Does.Not.Contain(AIStudio.Tools.Components.SLIDE_BUILDER_ASSISTANT));
} }
[TestCase(false, AssistantOfferBehavior.KEEP_OFFERING, AssistantOfferBehavior.TREAT_AS_ABSENT, ExpectedResult = true, TestName = "ACollapsedCategoryKeepsItsAssistantsByDefault")]
[TestCase(true, AssistantOfferBehavior.KEEP_OFFERING, AssistantOfferBehavior.TREAT_AS_ABSENT, ExpectedResult = false, TestName = "AHiddenCategoryDropsItsAssistantsByDefault")]
[TestCase(false, AssistantOfferBehavior.TREAT_AS_ABSENT, AssistantOfferBehavior.KEEP_OFFERING, ExpectedResult = false, TestName = "ACollapsedCategoryDropsItsAssistantsWhenTheUserSaysSo")]
[TestCase(true, AssistantOfferBehavior.TREAT_AS_ABSENT, AssistantOfferBehavior.KEEP_OFFERING, ExpectedResult = true, TestName = "AHiddenCategoryKeepsItsAssistantsWhenTheUserSaysSo")]
public bool TheMenuFollowsTheOptionsForCollapsedAndHiddenCategories(bool isHidden, AssistantOfferBehavior collapsedCategoryAssistants, AssistantOfferBehavior hiddenCategoryAssistants)
{
var page = new DataAssistantsPage
{
CollapsedCategoryAssistants = collapsedCategoryAssistants,
HiddenCategoryAssistants = hiddenCategoryAssistants
};
var business = new AssistantCategoryKey(PluginCategory.BUSINESS);
if (isHidden)
page.SetCategoryHidden(business, true);
else
page.SetCategoryCollapsed(business, true);
var destinations = AssistantLaunchService.SelectDestinations(AIStudio.Tools.Components.CHAT, page.IsOfferingAssistant);
Assert.That(destinations, Does.Contain(AIStudio.Tools.Components.TRANSLATION_ASSISTANT), "An assistant of another category stays in any case.");
return destinations.Contains(AIStudio.Tools.Components.EMAIL_ASSISTANT);
}
[Test] [Test]
public void ShorterNamesComeFirst() public void ShorterNamesComeFirst()
{ {
@@ -91,6 +91,8 @@ public sealed class DataBackupContentsTests
public PluginCategory[] Categories => []; public PluginCategory[] Categories => [];
public string[] CustomCategories => [];
public PluginTargetGroup[] TargetGroups => []; public PluginTargetGroup[] TargetGroups => [];
public bool IsMaintained => true; public bool IsMaintained => true;
@@ -0,0 +1,64 @@
using AIStudio.Tools.PluginSystem;
using AIStudio.Tools.PluginSystem.Assistants;
namespace AIStudio.Tests.Tools.PluginSystem;
/// <summary>
/// Checks that AI Studio writes the categories of a direct chat launcher so that they load back.
/// </summary>
/// <remarks>
/// AI Studio writes the plugin.lua of a launcher itself, when the Assistant Builder creates one and
/// whenever a user changes its chat settings. Its categories decide where the assistants page shows it,
/// so they have to survive both.
/// </remarks>
[TestFixture]
public sealed class DirectChatLauncherCategoriesTests
{
private static readonly Guid PLUGIN_ID = Guid.Parse("5b7d9f1a-3c5e-4a7b-8d9f-1b3d5f7a9c2e");
[Test]
public async Task CustomCategoriesLoadBack()
{
var lua = DirectChatLauncherLuaWriter.Write(CreateMetadata([PluginCategory.BUSINESS, PluginCategory.CUSTOM], ["Space Travel"]), CreateDefinition());
using var plugin = await PluginFactory.Load(null, lua);
using (Assert.EnterMultipleScope())
{
Assert.That(plugin.IsValid, Is.True, string.Join(" ", plugin.Issues));
Assert.That(plugin.Categories, Is.EqualTo(new[] { PluginCategory.BUSINESS, PluginCategory.CUSTOM }));
Assert.That(plugin.CustomCategories, Is.EqualTo(new[] { "Space Travel" }));
}
}
[Test]
public async Task ALauncherWithoutCustomCategoriesWritesNoTableForThem()
{
var lua = DirectChatLauncherLuaWriter.Write(CreateMetadata([PluginCategory.EDUCATION], []), CreateDefinition());
using var plugin = await PluginFactory.Load(null, lua);
using (Assert.EnterMultipleScope())
{
Assert.That(lua, Does.Not.Contain("CUSTOM_CATEGORIES"));
Assert.That(plugin.IsValid, Is.True, string.Join(" ", plugin.Issues));
Assert.That(plugin.Categories, Is.EqualTo(new[] { PluginCategory.EDUCATION }));
}
}
[Test]
public async Task CustomWithoutItsNamesFallsBackInsteadOfBreakingThePlugin()
{
var lua = DirectChatLauncherLuaWriter.Write(CreateMetadata([PluginCategory.CUSTOM], []), CreateDefinition());
using var plugin = await PluginFactory.Load(null, lua);
using (Assert.EnterMultipleScope())
{
Assert.That(plugin.IsValid, Is.True, string.Join(" ", plugin.Issues));
Assert.That(plugin.Categories, Is.EqualTo(new[] { PluginCategory.COMMON }), "A launcher which lost the names of its custom categories lands under \"General\".");
}
}
private static DirectChatLauncherPluginMetadata CreateMetadata(PluginCategory[] categories, string[] customCategories) => new(PLUGIN_ID, "1.0.0", null, ["MindWork AI"], "MindWork AI",
"https://github.com/MindWorkAI/AI-Studio", categories, customCategories, [PluginTargetGroup.EVERYONE], IsMaintained: true, DeprecationMessage: string.Empty, IsAssistantBuilderGenerated: true);
private static DirectChatLauncherDefinition CreateDefinition() => new("Launcher for the tests", "Launcher for the tests", "Opens a disappearing chat.", new AssistantChatLaunchConfiguration(string.Empty, null, null, null, null, null));
}
@@ -108,6 +108,8 @@ public sealed class LeftOverConfigurationObjectsTests
public PluginCategory[] Categories => []; public PluginCategory[] Categories => [];
public string[] CustomCategories => [];
public PluginTargetGroup[] TargetGroups => []; public PluginTargetGroup[] TargetGroups => [];
public bool IsMaintained => true; public bool IsMaintained => true;
@@ -0,0 +1,179 @@
using AIStudio.Tools.PluginSystem;
namespace AIStudio.Tests.Tools.PluginSystem;
/// <summary>
/// Checks how a plugin states its categories, its custom ones included.
/// </summary>
/// <remarks>
/// The assistants page shows each assistant under its categories. A plugin may also name categories of
/// its own: it declares CUSTOM in CATEGORIES and lists their names in CUSTOM_CATEGORIES. Both belong
/// together, so a plugin which states only one of them is invalid, and its authors notice it right away.
/// </remarks>
[TestFixture]
public sealed class PluginCategoriesTests
{
private static readonly Guid PLUGIN_ID = Guid.Parse("8d2e4b6a-1c3f-4a5e-9b7d-0f2a4c6e8b1d");
[Test]
public async Task TheNewCategoriesAreRead()
{
using var plugin = await LoadModelPlugin("""CATEGORIES = {"COMMON", "AI_STUDIO_DEVELOPMENT"}""");
using (Assert.EnterMultipleScope())
{
Assert.That(plugin.IsValid, Is.True, string.Join(" ", plugin.Issues));
Assert.That(plugin.Categories, Is.EqualTo(new[] { PluginCategory.COMMON, PluginCategory.AI_STUDIO_DEVELOPMENT }));
Assert.That(plugin.CustomCategories, Is.Empty);
}
}
[Test]
public async Task CustomCategoriesAreRead()
{
using var plugin = await LoadModelPlugin("""
CATEGORIES = {"SCIENCE", "CUSTOM"}
CUSTOM_CATEGORIES = {"Space Travel", " Deep Space "}
""");
using (Assert.EnterMultipleScope())
{
Assert.That(plugin.IsValid, Is.True, string.Join(" ", plugin.Issues));
Assert.That(plugin.Categories, Is.EqualTo(new[] { PluginCategory.SCIENCE, PluginCategory.CUSTOM }));
Assert.That(plugin.CustomCategories, Is.EqualTo(new[] { "Space Travel", "Deep Space" }), "Names are trimmed, so that equal names share one heading.");
}
}
[Test]
public async Task ASingleCustomCategoryIsRead()
{
using var plugin = await LoadModelPlugin("""
CATEGORIES = {"CUSTOM"}
CUSTOM_CATEGORIES = {"Space Travel"}
""");
using (Assert.EnterMultipleScope())
{
Assert.That(plugin.IsValid, Is.True, string.Join(" ", plugin.Issues));
Assert.That(plugin.CustomCategories, Is.EqualTo(new[] { "Space Travel" }));
}
}
[Test]
public async Task NamesWhichDifferOnlyInTheirCaseAreMerged()
{
using var plugin = await LoadModelPlugin("""
CATEGORIES = {"CUSTOM"}
CUSTOM_CATEGORIES = {"Space Travel", "space travel", "Deep Space"}
""");
using (Assert.EnterMultipleScope())
{
Assert.That(plugin.IsValid, Is.True, string.Join(" ", plugin.Issues));
Assert.That(plugin.CustomCategories, Is.EqualTo(new[] { "Space Travel", "Deep Space" }), "The first spelling wins.");
}
}
[Test]
public async Task AnEmptyTableWithoutCustomIsNoIssue()
{
using var plugin = await LoadModelPlugin("""
CATEGORIES = {"BUSINESS"}
CUSTOM_CATEGORIES = {}
""");
Assert.That(plugin.IsValid, Is.True, string.Join(" ", plugin.Issues));
}
[TestCase("""CATEGORIES = {"CUSTOM"}""", TestName = "CustomWithoutTheTable")]
[TestCase("""
CATEGORIES = {"CUSTOM"}
CUSTOM_CATEGORIES = {}
""", TestName = "CustomWithAnEmptyTable")]
[TestCase("""
CATEGORIES = {"BUSINESS"}
CUSTOM_CATEGORIES = {"Space Travel"}
""", TestName = "NamesWithoutCustom")]
[TestCase("""
CATEGORIES = {"CUSTOM"}
CUSTOM_CATEGORIES = {"Space Travel", " "}
""", TestName = "AnEmptyName")]
[TestCase("""
CATEGORIES = {"CUSTOM"}
CUSTOM_CATEGORIES = {"Space Travel", 42}
""", TestName = "ANameWhichIsNoText")]
[TestCase("""
CATEGORIES = {"CUSTOM"}
CUSTOM_CATEGORIES = "Space Travel"
""", TestName = "ANameInsteadOfATable")]
public async Task AnIncompleteDeclarationMakesThePluginInvalid(string categoriesLines)
{
using var plugin = await LoadModelPlugin(categoriesLines);
using (Assert.EnterMultipleScope())
{
Assert.That(plugin.IsValid, Is.False);
Assert.That(plugin.Issues, Has.Some.Contains("CUSTOM"));
}
}
[TestCase("""CATEGORIES = {"1"}""", TestName = "ANumberIsNoCategory")]
[TestCase("""CATEGORIES = {"BUSINESS, SCIENCE"}""", TestName = "TwoNamesInOneAreNoCategory")]
[TestCase("""CATEGORIES = {"NONE"}""", TestName = "NoneIsNoCategory")]
public async Task OnlyTheNameOfACategoryCounts(string categoriesLine)
{
using var plugin = await LoadModelPlugin(categoriesLine);
using (Assert.EnterMultipleScope())
{
Assert.That(plugin.IsValid, Is.False, "Enum.TryParse would turn such a value into a category nobody named.");
Assert.That(plugin.Issues, Has.Some.Contains("CATEGORIES"));
}
}
[Test]
public async Task TheCaseOfANameDoesNotMatter()
{
using var plugin = await LoadModelPlugin("""CATEGORIES = {" business "}""");
using (Assert.EnterMultipleScope())
{
Assert.That(plugin.IsValid, Is.True, string.Join(" ", plugin.Issues));
Assert.That(plugin.Categories, Is.EqualTo(new[] { PluginCategory.BUSINESS }), "Plugins read names like configuration plugins do.");
}
}
[TestCase("""TARGET_GROUPS = {"1"}""", TestName = "ANumberIsNoTargetGroup")]
[TestCase("""TARGET_GROUPS = {"EVERYONE, STUDENTS"}""", TestName = "TwoNamesInOneAreNoTargetGroup")]
public async Task OnlyTheNameOfATargetGroupCounts(string targetGroupsLine)
{
using var plugin = await LoadModelPlugin("""CATEGORIES = {"BUSINESS"}""", targetGroupsLine);
using (Assert.EnterMultipleScope())
{
Assert.That(plugin.IsValid, Is.False);
Assert.That(plugin.Issues, Has.Some.Contains("TARGET_GROUPS"));
}
}
/// <summary>
/// Loads a model plugin, the plugin type with the fewest fields beyond the ones every plugin has.
/// </summary>
/// <param name="categoriesLines">The Lua lines which state CATEGORIES and, optionally, CUSTOM_CATEGORIES.</param>
/// <param name="targetGroupsLine">The Lua line which states TARGET_GROUPS.</param>
private static Task<PluginBase> LoadModelPlugin(string categoriesLines, string targetGroupsLine = """TARGET_GROUPS = {"EVERYONE"}""") => PluginFactory.Load(null, $$"""
ID = "{{PLUGIN_ID}}"
NAME = "Models for the tests"
DESCRIPTION = "A model plugin which declares no models."
VERSION = "1.0.0"
TYPE = "MODEL"
AUTHORS = {"MindWork AI"}
SUPPORT_CONTACT = "MindWork AI"
SOURCE_URL = "https://github.com/MindWorkAI/AI-Studio"
{{categoriesLines}}
{{targetGroupsLine}}
IS_MAINTAINED = true
DEPRECATION_MESSAGE = ""
MODELS = {}
""");
}
@@ -116,7 +116,7 @@ public sealed class PluginLastChangedTests
"""); """);
private static DirectChatLauncherPluginMetadata CreateLauncherMetadata(DateTimeOffset? lastChanged) => new(PLUGIN_ID, "1.0.0", lastChanged, ["MindWork AI"], "MindWork AI", private static DirectChatLauncherPluginMetadata CreateLauncherMetadata(DateTimeOffset? lastChanged) => new(PLUGIN_ID, "1.0.0", lastChanged, ["MindWork AI"], "MindWork AI",
"https://github.com/MindWorkAI/AI-Studio", [PluginCategory.CORE], [PluginTargetGroup.EVERYONE], IsMaintained: true, DeprecationMessage: string.Empty, IsAssistantBuilderGenerated: false); "https://github.com/MindWorkAI/AI-Studio", [PluginCategory.CORE], [], [PluginTargetGroup.EVERYONE], IsMaintained: true, DeprecationMessage: string.Empty, IsAssistantBuilderGenerated: false);
private static DirectChatLauncherDefinition CreateLauncherDefinition() => new("Launcher for the tests", "Launcher for the tests", "Opens a disappearing chat.", new AssistantChatLaunchConfiguration(string.Empty, null, null, null, null, null)); private static DirectChatLauncherDefinition CreateLauncherDefinition() => new("Launcher for the tests", "Launcher for the tests", "Opens a disappearing chat.", new AssistantChatLaunchConfiguration(string.Empty, null, null, null, null, null));
} }