namespace AIStudio.Tools.Security; /// /// What the runtime filtered out of one piece of external content. /// /// Where the content came from, so the user can tell which file or page it was. /// The passages that were removed. Capped by the runtime. /// How many passages were removed in total, which may exceed the number of findings. public sealed record PromptInjectionScanResult(PromptInjectionSource Source, IReadOnlyList Findings, int RedactedCount) { /// /// Gets a value indicating whether anything was filtered out of this content. /// /// /// The content itself stays usable either way: passages are removed, the content around /// them is not rejected. /// public bool WasFiltered => this.RedactedCount > 0; }