Table of Contents

Class FileContentPart

Namespace
Glitch9.AIDevKit
public class FileContentPart : ChatContentPart
Inheritance
object
FileContentPart
Derived
Inherited Members

Properties

File

public FileContentData File { get; set; }

Property Value

FileContentData

Methods

FromBase64(string, MIMEType)

public static FileBase64ContentPart FromBase64(string base64File, MIMEType mimeType)

Parameters

base64File string
mimeType MIMEType

Returns

FileBase64ContentPart

FromBase64(string, string)

public static FileBase64ContentPart FromBase64(string base64File, string filename)

Parameters

base64File string
filename string

Returns

FileBase64ContentPart

FromId(string)

public static FileBase64ContentPart FromId(string fileId)

Parameters

fileId string

Returns

FileBase64ContentPart

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.