Search Results for

    Show / Hide Table of Contents

    Class MistralFileSchema

    Inheritance
    object
    MistralFileSchema
    Implements
    IUploadedFile
    IAIResource
    IData
    IHasId<string>
    IHasName
    IDeprecatable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Mistral
    Assembly: Glitch9.AIDevKit.Provider.Mistral.dll
    Syntax
    public class MistralFileSchema : IUploadedFile, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable

    Properties

    | Edit this page View Source

    Api

    Declaration
    [JsonIgnore]
    public Api Api { get; }
    Property Value
    Type Description
    Api
    | Edit this page View Source

    ByteSize

    Required. The size of the file, in bytes.

    Declaration
    [JsonProperty("bytes")]
    public int ByteSize { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    CreatedAt

    Required. The UNIX timestamp (in seconds) of the event.

    Declaration
    [JsonProperty("created_at")]
    public UnixTime? CreatedAt { get; set; }
    Property Value
    Type Description
    UnixTime?
    | 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; set; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    Id

    Required. The unique identifier of the file.

    Declaration
    [JsonProperty("id")]
    public string Id { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    MimeType

    Optional.

    Declaration
    [JsonProperty("mimetype")]
    public MimeType MimeType { get; set; }
    Property Value
    Type Description
    MimeType
    | Edit this page View Source

    Name

    Required. The name of the uploaded file.

    Declaration
    [JsonProperty("filename")]
    public string Name { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    NumLines

    Optional.

    Declaration
    [JsonProperty("num_lines")]
    public int? NumLines { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    Object

    Required. The object type, which is always "file".

    Declaration
    [JsonProperty("object")]
    public string Object { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Purpose

    Required.

    Declaration
    [JsonProperty("purpose")]
    public UploadPurpose Purpose { get; set; }
    Property Value
    Type Description
    UploadPurpose
    | Edit this page View Source

    SampleType

    Required.

    Declaration
    [JsonProperty("sample_type")]
    public string SampleType { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Signature

    Optional.

    Declaration
    [JsonProperty("signature")]
    public string Signature { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Source

    Required.

    Declaration
    [JsonProperty("source")]
    public string Source { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    GetMetadata()

    Declaration
    public SerializableMetadata GetMetadata()
    Returns
    Type Description
    SerializableMetadata

    Implements

    IUploadedFile
    IAIResource
    IData
    IHasId<TId>
    IHasName
    IDeprecatable

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    CoreLibTypeExtensions.GetNameOrDash(IData)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation