Class FileContentData
Inheritance
FileContentData
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class FileContentData : IContentData, IBase64Source, IFileProvider, IUrlSource
Properties
|
Edit this page
View Source
Base64String
Optional. The base64 encoded file data, used when passing the file to the model as a string.
Declaration
public string Base64String { get; set; }
Property Value
|
Edit this page
View Source
FileBytes
Optional. The raw bytes of the file data.
Declaration
public byte[] FileBytes { get; set; }
Property Value
|
Edit this page
View Source
FileId
Optional. The ID of an uploaded file to use as input.
Declaration
public string FileId { get; set; }
Property Value
|
Edit this page
View Source
Filename
Optional. The name of the file, used when passing the file to the model as a string.
Declaration
public string Filename { get; set; }
Property Value
|
Edit this page
View Source
Quote
The specific quote in the file.
Declaration
public string Quote { get; set; }
Property Value
|
Edit this page
View Source
Url
The URL of the file to be sent to the model.
Declaration
public string Url { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetBase64String()
Declaration
public string GetBase64String()
Returns
|
Edit this page
View Source
GetDownloadUrl()
Declaration
public string GetDownloadUrl()
Returns
|
Edit this page
View Source
GetFileAsync(string, bool)
Declaration
public UniTask<IFile> GetFileAsync(string fullPath, bool overwrite = true)
Parameters
| Type |
Name |
Description |
| string |
fullPath |
|
| bool |
overwrite |
|
Returns
| Type |
Description |
| UniTask<IFile> |
|
|
Edit this page
View Source
IsBase64()
Declaration
Returns
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods