Class AttachmentFile
- Assembly
- FoundationaLLM.Common.dll
Attachment resource.
public class AttachmentFile : ResourceBase
- Inheritance
-
AttachmentFile
- Inherited Members
- Extension Methods
Properties
Content
File stream of the attachment contents.
[JsonPropertyName("content")]
public byte[]? Content { get; set; }
Property Value
- byte[]
ContentType
The mime content type of the attachment.
[JsonPropertyName("content_type")]
public string? ContentType { get; set; }
Property Value
OriginalFileName
The original name of the file (as it was uploaded).
[JsonPropertyName("original_file_name")]
public required string OriginalFileName { get; set; }
Property Value
Path
Path for the attachment, starting with the container name.
[JsonPropertyName("path")]
public string Path { get; set; }
Property Value
SecondaryProvider
Gets or sets the secondary provider of the attachment.
[JsonPropertyName("secondary_provider")]
public string? SecondaryProvider { get; set; }
Property Value
Remarks
The only secondary provider currently supported is FoundationaLLM.AzureOpenAI.
SecondaryProviderObjectId
Gets or sets the object identifier of the secondary provider of the attachment.
[JsonPropertyName("secondary_provider_object_id")]
public string? SecondaryProviderObjectId { get; set; }
Property Value
Remarks
The only secondary provider currently supported is FoundationaLLM.AzureOpenAI. In this case, the object identifier is the Azure OpenAI file identifier.
Type
The type of the resource.
[JsonIgnore]
public override string? Type { get; set; }