using System.Collections.Generic;
namespace xAiModels.Models
{
///
/// Holds File Extraction Result ...
///
public class XFileExtractionResult
{
///
/// Extracted String Content ...
///
public string Text { get; set; } = string.Empty;
///
/// Extracted Images for Vision Model ...
///
public IList Images { get; set; } = [];
///
/// Extracted Content from Audio File ...
///
public string AudioTranscript { get; set; } = string.Empty;
///
/// Main File Name ...
///
public string FileName { get; set; }
///
/// Main File MIME Type ...
///
public string MimeType { get; set; }
///
/// Specified Fallback done using Images or not ...
///
public bool UsedImageFallback { get; set; } = false;
///
/// Error Message ...
///
public string ErrorMessage { get; set; }
}
///
/// Extracted Image ...
///
public class XExtractedImage
{
///
/// Content as Byte ...
///
public byte[] Bytes { get; set; }
///
/// MIME Type of Image ...
///
public string MimeType { get; set; } = "image/png";
///
/// for PDF Files ...
///
public int? PageNumber { get; set; }
///
/// Describe Image ...
///
public string Description { get; set; }
}
}