Search Results for

    Show / Hide Table of Contents

    Class AI21FileUploadRequest

    Inheritance
    object
    AI21FileUploadRequest
    Implements
    IMultipartFormRequest
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.AI21Labs
    Assembly: Glitch9.AIDevKit.Provider.AI21.dll
    Syntax
    public sealed class AI21FileUploadRequest : IMultipartFormRequest

    Properties

    | Edit this page View Source

    File

    Raw file bytes. Every uploaded file must have a unique file name. Specifying file labels will find only files with both the specified name and label.

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

    Labels

    Arbitrary string labels that describe the contents of this file. Labels are case-sensitive. Specifying labels or labels + name will return only files with both any of the specified labels and the specified name.

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

    PublicUrl

    A public URL associated with the file, if any. Only used as metadata, to indicate the location of the source file. For example, if implementing a search engine against a website, specifying a URL for each uploaded file is a simple way to present the link to the file in the search results presented to the user.

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

    Implements

    IMultipartFormRequest

    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)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation