mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 20:01:37 +00:00
Add file attachment model and types
This commit is contained in:
parent
4be5002088
commit
daa942a7dd
6
app/MindWork AI Studio/Chat/FileAttachment.cs
Normal file
6
app/MindWork AI Studio/Chat/FileAttachment.cs
Normal 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);
|
||||
22
app/MindWork AI Studio/Chat/FileAttachmentType.cs
Normal file
22
app/MindWork AI Studio/Chat/FileAttachmentType.cs
Normal 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,
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user