AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class FileContentPart

    Inheritance
    object
    ContentPart
    FileContentPart
    FileBase64ContentPart
    FileIdContentPart
    Inherited Members
    ContentPart.Type
    ContentPart.IsBase64
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class FileContentPart : ContentPart

    Properties

    File

    Declaration
    public FileRef File { get; set; }
    Property Value
    Type Description
    FileRef

    Methods

    FromBase64(string, MIMEType)

    Declaration
    public static FileBase64ContentPart FromBase64(string base64File, MIMEType mimeType)
    Parameters
    Type Name Description
    string base64File
    MIMEType mimeType
    Returns
    Type Description
    FileBase64ContentPart

    FromBase64(string, string)

    Declaration
    public static FileBase64ContentPart FromBase64(string base64File, string filename)
    Parameters
    Type Name Description
    string base64File
    string filename
    Returns
    Type Description
    FileBase64ContentPart

    FromId(string)

    Declaration
    public static FileBase64ContentPart FromId(string fileId)
    Parameters
    Type Name Description
    string fileId
    Returns
    Type Description
    FileBase64ContentPart

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()
    In this article
    Back to top Generated by DocFX