Moved the background agents to AI operations (#1215)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-21 19:47:10 +01:00
1 parent 8a4a26503b
commit c50a93cd17
139 files changed
+4069 -2340

No files matched your search

@@ -1,5 +1,5 @@
using System.Text;
using AIStudio.Agents.AssistantAudit;
using AIStudio.AIOperations.PluginAudit;
using AIStudio.Components;
using AIStudio.Provider;
using AIStudio.Tools.PluginSystem;
@@ -200,11 +200,11 @@ public partial class AssistantPluginRevisionDialog : MSGComponentBase
{
//
// The provider the user picked for the revision serves as the fallback: it is used only
// when nothing is configured for the audit agent, and only when it is trusted enough for
// when nothing is configured for the audit, and only when it is trusted enough for
// an audit. Without it, a revised plugin could not be checked at all here.
//
var audit = await this.AssistantPluginAuditService.RunAuditAsync(updatedPlugin, fallbackProvider: this.providerSettings);
if (audit.Level is AssistantAuditLevel.UNKNOWN)
var audit = await this.AssistantPluginAuditService.RunAuditAsync(updatedPlugin, providerAtHand: this.providerSettings);
if (audit.Level is PluginAuditLevel.UNKNOWN)
return audit;
UpsertAudit(this.SettingsManager.ConfigurationData.AssistantPluginAudits, audit);