Class AnthropicFile
Inheritance
AnthropicFile
Assembly: Glitch9.AIDevKit.Provider.Anthropic.dll
Syntax
public sealed class AnthropicFile : ClaudeResponse, IUploadedFile, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable
Properties
|
Edit this page
View Source
Api
Declaration
[JsonIgnore]
public Api Api { get; }
Property Value
|
Edit this page
View Source
ByteSize
Gets the file size in bytes.
This value is useful for validating upload/download limits and storage usage.
Declaration
[JsonProperty("size_bytes")]
public int ByteSize { get; set; }
Property Value
|
Edit this page
View Source
Downloadable
Declaration
[JsonProperty("downloadable")]
public bool Downloadable { get; set; }
Property Value
|
Edit this page
View Source
ExpiresAt
Gets the file expiration timestamp, if the provider defines one.
Returns null when the file has no expiration policy.
Declaration
[JsonIgnore]
public UnixTime? ExpiresAt { get; }
Property Value
|
Edit this page
View Source
MimeType
Gets the MIME type associated with the file.
This can be used to select preview, parsing, or processing paths.
Declaration
[JsonIgnore]
public MimeType MimeType { get; }
Property Value
|
Edit this page
View Source
MimeTypeString
Declaration
[JsonProperty("mime_type")]
public string MimeTypeString { get; set; }
Property Value
|
Edit this page
View Source
Name
Gets the name of this object.
Declaration
[JsonProperty("filename")]
public string Name { get; set; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public SerializableMetadata GetMetadata()
Returns
Implements
Extension Methods