Renamed the settings of AI tasks (#1239)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-27 12:08:00 +01:00
1 parent d19d3d431b
commit a117074972
109 files changed
+3929 -538

No files matched your search

+13 -1
View File
@@ -13,7 +13,7 @@ namespace AIStudio.Tests.Tools;
/// Checks the User-Agent which AI Studio sends to self-hosted servers.
/// </summary>
/// <remarks>
/// Operators of a gateway such as LiteLLM read it in their logs to see which assistant or agent sent a
/// Operators of a gateway such as LiteLLM read it in their logs to see which assistant or AI task sent a
/// request. It has to stay a valid header value whatever a plugin calls its assistant, because an
/// invalid one would either break the request or silently vanish from the logs. Who receives it at all
/// is a privacy question: nobody without the consent of the user, and a cloud provider never.
@@ -60,6 +60,18 @@ public sealed class AppUserAgentTests
Assert.That(userAgent, Is.EqualTo($"{AppUserAgent.BASE} Component/TRANSLATION_ASSISTANT"));
}
/// <summary>
/// Operators filter their logs by these names, which the wiki lists, so renaming one has to be deliberate.
/// </summary>
[TestCase(AIStudio.Tools.Components.AI_TASK_TEXT_CONTENT_CLEANER, "AI_TASK_TEXT_CONTENT_CLEANER")]
[TestCase(AIStudio.Tools.Components.AI_TASK_DATA_SOURCE_SELECTION, "AI_TASK_DATA_SOURCE_SELECTION")]
[TestCase(AIStudio.Tools.Components.AI_TASK_RETRIEVAL_CONTEXT_VALIDATION, "AI_TASK_RETRIEVAL_CONTEXT_VALIDATION")]
[TestCase(AIStudio.Tools.Components.AI_TASK_ASSISTANT_PLUGIN_AUDIT, "AI_TASK_ASSISTANT_PLUGIN_AUDIT")]
public void AnAITaskIsNamedAsAnAITask(AIStudio.Tools.Components component, string expectedName)
{
Assert.That(AppUserAgent.ForComponent(component), Is.EqualTo($"{AppUserAgent.BASE} Component/{expectedName}"));
}
[Test]
public void NoComponentKeepsTheBase()
{