AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class TextPrompt

    A simple text prompt.
    This class is used to pass a simple text prompt to the model for generation tasks.
    It can be used for text generation, image generation, and other tasks that require a text prompt.
    The text can be formatted using Markdown or other formatting options.

    Inheritance
    object
    PromptBase
    TextPrompt
    Implements
    IPrompt
    Inherited Members
    PromptBase.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class TextPrompt : PromptBase, IPrompt

    Constructors

    TextPrompt(string, string)

    Declaration
    public TextPrompt(string text, string formattedText = null)
    Parameters
    Type Name Description
    string text
    string formattedText

    Fields

    formattedText

    Declaration
    public string formattedText
    Field Value
    Type Description
    string

    text

    Declaration
    public string text
    Field Value
    Type Description
    string

    Methods

    GetText()

    Declaration
    public override string GetText()
    Returns
    Type Description
    string
    Overrides
    PromptBase.GetText()

    Operators

    implicit operator string(TextPrompt)

    Declaration
    public static implicit operator string(TextPrompt prompt)
    Parameters
    Type Name Description
    TextPrompt prompt
    Returns
    Type Description
    string

    implicit operator TextPrompt(string)

    Declaration
    public static implicit operator TextPrompt(string prompt)
    Parameters
    Type Name Description
    string prompt
    Returns
    Type Description
    TextPrompt

    Implements

    IPrompt

    Extension Methods

    GenerativeTaskExtensions.GENCode(TextPrompt)
    GenerativeTaskExtensions.GENImage(TextPrompt)
    GenerativeTaskExtensions.GENModeration(TextPrompt, IEnumerable<SafetySetting>)
    GenerativeTaskExtensions.GENResponse(TextPrompt)
    GenerativeTaskExtensions.GENSpeech(TextPrompt)
    GenerativeTaskExtensions.GENStruct<T>(TextPrompt)
    In this article
    Back to top Generated by DocFX