mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 05:07:21 +00:00
Added material to the BeyondFacts Lab (#1180)
This commit is contained in:
1 parent
22d94eb8fd
commit
9f2280bed7
58 files changed
+3932
-120
No files matched your search
@@ -46,6 +46,15 @@ public readonly record struct FileExtractionResult(FileExtractionOutcome Outcome
|
||||
/// </summary>
|
||||
public bool HasFilteredPromptInjections => this.PromptInjectionRedactedCount > 0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the content holds only the beginning of the file, because the caller limited
|
||||
/// how many characters it keeps.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Not a failure either: the beginning is intact, and the caller asked for no more of it.
|
||||
/// </remarks>
|
||||
public bool IsShortened { get; init; }
|
||||
|
||||
public static FileExtractionResult Success(string content, string? detectedFormat = null) => new(FileExtractionOutcome.SUCCESS, content, FileExtractionErrorCode.NONE, null, NO_FAILED_PAGES, detectedFormat);
|
||||
|
||||
public static FileExtractionResult Partial(string content, IReadOnlyList<int> failedPages, string? detectedFormat = null) => new(FileExtractionOutcome.PARTIAL, content, FileExtractionErrorCode.PAGE_EXTRACTION_FAILED, null, failedPages, detectedFormat);
|
||||
|
||||
Reference in new issue
Block a user