mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 21:12:11 +00:00
adding the optional fallback provider to the audit service
This commit is contained in:
parent
fec7e78e34
commit
8420fc13b1
@ -7,9 +7,12 @@ namespace AIStudio.Tools.PluginSystem.Assistants;
|
||||
/// </summary>
|
||||
public sealed class AssistantPluginAuditService(AssistantAuditAgent auditAgent)
|
||||
{
|
||||
public async Task<PluginAssistantAudit> RunAuditAsync(PluginAssistants plugin, CancellationToken token = default)
|
||||
/// <summary>
|
||||
/// Runs an assistant plugin audit, optionally falling back to the supplied provider when no audit provider is configured.
|
||||
/// </summary>
|
||||
public async Task<PluginAssistantAudit> RunAuditAsync(PluginAssistants plugin, CancellationToken token = default, Settings.Provider? fallbackProvider = null)
|
||||
{
|
||||
var result = await auditAgent.AuditAsync(plugin, token);
|
||||
var result = await auditAgent.AuditAsync(plugin, token, fallbackProvider);
|
||||
var provider = auditAgent.ProviderSettings;
|
||||
var promptPreview = await plugin.BuildAuditPromptPreviewAsync(token);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user