Table of Contents

Class AnthropicFile

public class AnthropicFile : ClaudeResponse, IUploadedFile, IProviderData, IData
Inheritance
object
AnthropicFile
Implements
IData
Inherited Members
Extension Methods

Properties

Api

public Api Api { get; }

Property Value

Api

ByteSize

Gets the total size of the file in bytes.

  • Useful for validating upload/download sizes.
  • May differ depending on provider’s storage format.
public int ByteSize { get; set; }

Property Value

int

Downloadable

public bool Downloadable { get; set; }

Property Value

bool

ExpiresAt

Gets the timestamp when the file will expire (if applicable).

  • Some providers set expiration dates for temporary files.
  • May return null if the file does not expire.
public UnixTime ExpiresAt { get; }

Property Value

UnixTime

MimeType

Gets the MIME type of the file as detected or declared during upload.

  • Examples: application/json, image/png, audio/wav.
  • Can be used to determine how to process or preview the file.
public MimeType MimeType { get; }

Property Value

MimeType

MimeTypeString

public string MimeTypeString { get; set; }

Property Value

string

Name

public string Name { get; set; }

Property Value

string

Methods

GetMetadata()

Builds a serializable metadata object for this file.

  • Encapsulates file properties for persistence or logging.
  • Useful for caching file data locally or transmitting through APIs.
public SerializableMetadata GetMetadata()

Returns

SerializableMetadata