@using AIStudio.Agents.AssistantAudit @inherits MSGComponentBase @if (this.plugin is null) { @T("The assistant plugin could not be resolved for auditing.") } else { @T("The audit uses a simulated prompt preview. Empty or placeholder values in the preview are expected during this security check.") @this.plugin.Name @this.plugin.Description @T("Audit provider"): @this.ProviderLabel @T("Required minimum level"): @this.MinimumLevelLabel @if (this.audit is not null) { @this.audit.Level.GetName(): @this.audit.Summary @if (this.audit.Findings.Count > 0) { @foreach (var finding in this.audit.Findings) {
@finding.Category @if (!string.IsNullOrWhiteSpace(finding.Location)) { (@finding.Location) }
@finding.Description
@if (!string.IsNullOrWhiteSpace(finding.Recommendation)) {
@finding.Recommendation
}
}
} }
}
@(this.audit is null ? T("Cancel") : T("Close")) @T("Run Audit") @T("Enable Plugin")