Add file attachment model and types

This commit is contained in:
Thorsten Sommer 2025-12-28 14:32:49 +01:00
parent 4be5002088
commit daa942a7dd
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,6 @@
namespace AIStudio.Chat;
/// <summary>
/// Represents an immutable file attachment with details about its type, name, path, and size.
/// </summary>
public readonly record struct FileAttachment(FileAttachmentType Type, string FileName, string FilePath, long FileSize);

View File

@ -0,0 +1,22 @@
namespace AIStudio.Chat;
/// <summary>
/// Represents different types of file attachments.
/// </summary>
public enum FileAttachmentType
{
/// <summary>
/// Document file types, such as .pdf, .docx, .txt, etc.
/// </summary>
DOCUMENT,
/// <summary>
/// All image file types, such as .jpg, .png, .gif, etc.
/// </summary>
IMAGE,
/// <summary>
/// All audio file types, such as .mp3, .wav, .aac, etc.
/// </summary>
AUDIO,
}