Search Results for

    Show / Hide Table of Contents

    Class FilePrompt

    Inheritance
    object
    FilePrompt
    EmbeddingPrompt
    Implements
    ILoadablePrompt
    IPrompt
    IValidatable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class FilePrompt : ILoadablePrompt, IPrompt, IValidatable

    Constructors

    | Edit this page View Source

    FilePrompt()

    Declaration
    public FilePrompt()
    | Edit this page View Source

    FilePrompt(FileSource)

    Declaration
    public FilePrompt(FileSource source)
    Parameters
    Type Name Description
    FileSource source

    Properties

    | Edit this page View Source

    Source

    Declaration
    [DomainProperty("file_source")]
    public FileSource Source { get; set; }
    Property Value
    Type Description
    FileSource

    Methods

    | Edit this page View Source

    ArePromptFilesRequireLoading()

    Declaration
    public bool ArePromptFilesRequireLoading()
    Returns
    Type Description
    bool
    | Edit this page View Source

    FromBytes(byte[], MimeType)

    Declaration
    public static FilePrompt FromBytes(byte[] bytes, MimeType type)
    Parameters
    Type Name Description
    byte[] bytes
    MimeType type
    Returns
    Type Description
    FilePrompt
    | Edit this page View Source

    GetPromptFiles()

    Declaration
    public IFile[] GetPromptFiles()
    Returns
    Type Description
    IFile[]
    | Edit this page View Source

    GetPromptText()

    Declaration
    public virtual string GetPromptText()
    Returns
    Type Description
    string
    | Edit this page View Source

    IsValid()

    Declaration
    public virtual bool IsValid()
    Returns
    Type Description
    bool
    | Edit this page View Source

    LoadPromptFilesAsync()

    Declaration
    public UniTask LoadPromptFilesAsync()
    Returns
    Type Description
    UniTask
    | Edit this page View Source

    Validate()

    Validates the object's parameters and throws if invalid.

    Declaration
    public virtual void Validate()

    Implements

    ILoadablePrompt
    IPrompt
    IValidatable

    Extension Methods

    PixelArtBridgeExtensions.GENPixelEstimateSkeleton(FilePrompt)
    PixelArtBridgeExtensions.GENPixelRemoveBG(FilePrompt)
    UnifiedApiCallerExtensions.FileToText(FilePrompt)
    UnifiedApiCallerExtensions.GENOcr(FilePrompt)
    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