AI-Studio/app/MindWork AI Studio/Assistants/BatchProcessing/BatchProcessingFileResult.cs
j-erler bb8f6f13f0
Some checks are pending
Build and Release / Collect Flatpak artifacts (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Sync Flatpak repo (push) Blocked by required conditions
Added the Batch Processing Assistant (#901)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
2026-08-11 20:14:21 +02:00

59 lines
2.0 KiB
C#

namespace AIStudio.Assistants.BatchProcessing;
/// <summary>
/// The result of processing one file within a batch run.
/// </summary>
public sealed class BatchProcessingFileResult
{
/// <summary>
/// The absolute path of the processed file.
/// </summary>
public required string FilePath { get; init; }
/// <summary>
/// The file name of the processed file.
/// </summary>
public required string FileName { get; init; }
/// <summary>
/// The path of the file relative to the input folder. For files directly
/// inside the input folder, this is the file name.
/// </summary>
/// <remarks>
/// This is the identity of the document within a batch run: it is written
/// to the log and is used to recognize the document when a previous run is
/// continued. The file name alone would not be sufficient, because two
/// subfolders may contain a document of the same name.
/// </remarks>
public required string RelativePath { get; init; }
/// <summary>
/// The processing state of the file.
/// </summary>
public BatchProcessingFileStatus Status { get; set; } = BatchProcessingFileStatus.QUEUED;
/// <summary>
/// An optional message, e.g., the error message when the processing failed.
/// </summary>
public string Message { get; set; } = string.Empty;
/// <summary>
/// The AI answer for this file.
/// </summary>
public string ResultText { get; set; } = string.Empty;
/// <summary>
/// The model which produced the answer for this file.
/// </summary>
/// <remarks>
/// We store the model per file instead of reading the currently selected
/// model when writing the results table. Otherwise, changing the model
/// between two batch runs would relabel the rows of the previous run.
/// </remarks>
public string ModelName { get; set; } = string.Empty;
/// <summary>
/// The time when the processing of this file finished.
/// </summary>
public DateTimeOffset ProcessedAt { get; set; }
}